diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-06 11:46:40 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-06 11:46:40 +0000 |
commit | eae52ad493f582222b4f2b748c0043c42bb851cb (patch) | |
tree | 0cc9aa41b31d831984e39cb2b14ab2cc05a0f83d /utils.c | |
parent | 58fae4ea901aed6b093c5a336eb09abe6efe5880 (diff) |
switch to the more usual log.c
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -24,7 +24,7 @@ #include <openssl/x509_vfy.h> #include <openssl/x509v3.h> -#include "logger.h" +#include "log.h" int starts_with(const char *str, const char *prefix) @@ -119,8 +119,7 @@ gen_certificate(const char *hostname, const char *certpath, const char *keypath) FILE *f; const unsigned char *host = (const unsigned char*)hostname; - log_notice(NULL, - "generating new certificate for %s (it could take a while)", + log_info("generating new certificate for %s (it could take a while)", host); if ((pkey = EVP_PKEY_new()) == NULL) @@ -174,7 +173,7 @@ gen_certificate(const char *hostname, const char *certpath, const char *keypath) X509_free(x509); RSA_free(rsa); - log_notice(NULL, "certificate successfully generated"); + log_info("certificate successfully generated"); } X509_STORE * |