aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-06-10 10:25:54 +0000
committerOmar Polo <op@omarpolo.com>2024-06-10 10:25:54 +0000
commit3d06af043cdbb58d9ef31ad8f9e5a8f46660e79f (patch)
treeb784c8d539feed612ed4bd4f3091537fa4eed01d /utils.c
parent1001cc1a1f5ead4da07ecf2162a0c7cf82fd6ded (diff)
style
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 313fc13..a3d866c 100644
--- a/utils.c
+++ b/utils.c
@@ -248,7 +248,7 @@ gencert(const char *hostname, const char *certpath, const char *keypath,
ASN1_INTEGER_set(X509_get_serialNumber(x509), 0);
X509_gmtime_adj(X509_get_notBefore(x509), 0);
X509_gmtime_adj(X509_get_notAfter(x509), 315360000L); /* 10 years */
- X509_set_version(x509, 2); // v3
+ X509_set_version(x509, 2); /* v3 */
if (!X509_set_pubkey(x509, pkey)) {
log_warnx("couldn't set the public key");