Recent activity

[PATCH 2/3] Support TLS_CLIENT_SERIAL_NUMBER in CGI a month ago

From dece to ~sircmpwn/gmni-devel

---
 doc/gmnisrvini.scd |  3 +++
 src/serve.c        | 17 +++++++++++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/doc/gmnisrvini.scd b/doc/gmnisrvini.scd
index 2c82b53..926529f 100644
--- a/doc/gmnisrvini.scd
+++ b/doc/gmnisrvini.scd
@@ -181,6 +181,9 @@ The following environment variables will be set:
|  *TLS_CLIENT_HASH*
:  SHA256:BD3A388021A92017B781504A3D24F324BF9DE11CE72606AB445D98A8EB00C5A8
:  Unique fingerprint of the client certificate.
|  *TLS_CLIENT_SERIAL_NUMBER*
[message trimmed]

[PATCH 3/3] Support REMOTE_USER in CGI a month ago

From dece to ~sircmpwn/gmni-devel

---
 doc/gmnisrvini.scd |  3 +++
 src/serve.c        | 18 +++++++++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/doc/gmnisrvini.scd b/doc/gmnisrvini.scd
index 926529f..5aed3e6 100644
--- a/doc/gmnisrvini.scd
+++ b/doc/gmnisrvini.scd
@@ -184,6 +184,9 @@ The following environment variables will be set:
|  *TLS_CLIENT_SERIAL_NUMBER*
:  717823108622037499122666796829184010024179612962
:  Serial number (decimal) of the client certificate.
|  *REMOTE_USER*
[message trimmed]

[PATCH 1/3] Use strncpy to build TLS_CLIENT_HASH a month ago

From dece to ~sircmpwn/gmni-devel

strncat on an uninitialized array leads to issues.
---
 src/serve.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/serve.c b/src/serve.c
index b2d114e..da17f96 100644
--- a/src/serve.c
+++ b/src/serve.c
@@ -215,7 +215,7 @@ serve_cgi(struct gmnisrv_client *client, const char *path,
				// +7 for "SHA256:" prefix
				// +1 for null char
				char hex_digest[32*2 + 7 + 1];
				strncat(hex_digest, "SHA256:", 8);
[message trimmed]