diff options
author | Omar Polo <op@omarpolo.com> | 2021-04-13 06:59:54 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-04-13 06:59:54 +0000 |
commit | 89541eeec019626df4651f44b90df6a31a844dab (patch) | |
tree | 1929cc294de02a0ff6bdfe20a2a5d97cb4ebb0b0 /server.c | |
parent | b211d0f7d9908de446e1ab4873a3191d53ebf00b (diff) |
define TLS_VERSION, TLS_CIPHER and TLS_CIPHER_STRENGTH for CGI scripts
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -702,7 +702,12 @@ start_cgi(const char *spath, const char *relpath, struct client *c) strlcpy(req.issuer, t, sizeof(req.issuer)); if ((t = tls_peer_cert_hash(c->ctx)) != NULL) strlcpy(req.hash, t, sizeof(req.hash)); + if ((t = tls_conn_version(c->ctx)) != NULL) + strlcpy(req.version, t, sizeof(req.version)); + if ((t = tls_conn_cipher(c->ctx)) != NULL) + strlcpy(req.cipher, t, sizeof(req.cipher)); + req.cipher_strength = tls_conn_cipher_strength(c->ctx); req.notbefore = tls_peer_cert_notbefore(c->ctx); req.notafter = tls_peer_cert_notafter(c->ctx); |