aboutsummaryrefslogtreecommitdiff
path: root/src/event/ngx_event_openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/ngx_event_openssl.c')
-rw-r--r--src/event/ngx_event_openssl.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
index 5a724af26..3a7835ef6 100644
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -1009,6 +1009,20 @@ ngx_ssl_cleanup_ctx(void *data)
}
+u_char *
+ngx_ssl_get_protocol(ngx_connection_t *c)
+{
+ return (u_char *) SSL_get_version(c->ssl->connection);
+}
+
+
+u_char *
+ngx_ssl_get_cipher_name(ngx_connection_t *c)
+{
+ return (u_char *) SSL_get_cipher_name(c->ssl->connection);
+}
+
+
static void *
ngx_openssl_create_conf(ngx_cycle_t *cycle)
{