summaryrefslogtreecommitdiff
path: root/src/connection.h
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2020-10-11 17:11:42 +0300
committerGitHub <noreply@github.com>2020-10-11 17:11:42 +0300
commit0aec98dce2acbd280ad8ff4feac631e8afa833b1 (patch)
treeaea73b0fa5b0f78108533384fa04604b5b82f637 /src/connection.h
parent907da0580b57013c9e5c38b27f351597c72e4e25 (diff)
downloadredis-0aec98dce2acbd280ad8ff4feac631e8afa833b1.tar.gz
Module API: Add RM_GetClientCertificate(). (#7866)
This API function makes it possible to retrieve the X.509 certificate used by clients to authenticate TLS connections.
Diffstat (limited to 'src/connection.h')
-rw-r--r--src/connection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.h b/src/connection.h
index e00d2ea17..03281a3d9 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -230,6 +230,7 @@ int connSockName(connection *conn, char *ip, size_t ip_len, int *port);
const char *connGetInfo(connection *conn, char *buf, size_t buf_len);
/* Helpers for tls special considerations */
+sds connTLSGetPeerCert(connection *conn);
int tlsHasPendingData();
int tlsProcessPendingData();