~sircmpwn/gmni-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Fix integer overflow error in tls.c

bacardi55
Details
Message ID
<20210323190420.394572-1-bac@rdi55.pl>
DKIM signature
pass
Download raw message
Patch: +1 -1
---
 src/tls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tls.c b/src/tls.c
index 025f0fc..a98dfe0 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -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";
-- 
2.25.1
Details
Message ID
<CA5KEGVEV3CK.2NYYWGW32F8C3@taiga>
In-Reply-To
<20210323190420.394572-1-bac@rdi55.pl> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks!

To git@git.sr.ht:~sircmpwn/gmnisrv
   8b65e30..f23ec10  master -> master
Reply to thread Export thread (mbox)