mirror of
https://git.sr.ht/~sircmpwn/gmnisrv
synced 2025-01-03 14:57:39 -05:00
Fix integer overflow error in tls.c
This commit is contained in:
parent
f23ec10a6d
commit
8b65e303b0
@ -44,7 +44,7 @@ tls_host_gencert(struct gmnisrv_tls *tlsconf, struct gmnisrv_host *host,
|
||||
X509_set_version(x509, 2);
|
||||
ASN1_INTEGER_set(X509_get_serialNumber(x509), 1);
|
||||
X509_gmtime_adj(X509_get_notBefore(x509), 0);
|
||||
X509_gmtime_adj(X509_get_notAfter(x509), 31536000L * 200); // 200 years
|
||||
X509_gmtime_adj(X509_get_notAfter(x509), LONG_MAX);
|
||||
X509_set_pubkey(x509, pkey);
|
||||
|
||||
char *organization = "gmnisrv";
|
||||
|
Loading…
Reference in New Issue
Block a user