~sircmpwn/gmni-devel

Fix integer overflow error in tls.c v1 APPLIED

bacardi55
bacardi55: 1
 Fix integer overflow error in tls.c

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/gmni-devel/patches/21417/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Fix integer overflow error in tls.c Export this patch

bacardi55
---
 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
Thanks!

To git@git.sr.ht:~sircmpwn/gmnisrv
   8b65e30..f23ec10  master -> master