Skip to content

Commit 336c4bb

Browse files
committed
CLEANUP: ssl: remove the shsess_* macros
The shsess_* macros where already defined in proto/ssl_sock.h, remove them from ssl_sock.c
1 parent 7fd8b45 commit 336c4bb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/ssl_sock.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -531,14 +531,6 @@ const char *SSL_SOCK_KEYTYPE_NAMES[] = {
531531
static struct shared_context *ssl_shctx = NULL; /* ssl shared session cache */
532532
static struct eb_root *sh_ssl_sess_tree; /* ssl shared session tree */
533533

534-
#define sh_ssl_sess_tree_delete(s) ebmb_delete(&(s)->key);
535-
536-
#define sh_ssl_sess_tree_insert(s) (struct sh_ssl_sess_hdr *)ebmb_insert(sh_ssl_sess_tree, \
537-
&(s)->key, SSL_MAX_SSL_SESSION_ID_LENGTH);
538-
539-
#define sh_ssl_sess_tree_lookup(k) (struct sh_ssl_sess_hdr *)ebmb_lookup(sh_ssl_sess_tree, \
540-
(k), SSL_MAX_SSL_SESSION_ID_LENGTH);
541-
542534
/* Dedicated callback functions for heartbeat and clienthello.
543535
*/
544536
#ifdef TLS1_RT_HEARTBEAT
@@ -612,7 +604,6 @@ SSL *ssl_sock_get_ssl_object(struct connection *conn)
612604

613605
return ((struct ssl_sock_ctx *)(conn->xprt_ctx))->ssl;
614606
}
615-
616607
/*
617608
* This function gives the detail of the SSL error. It is used only
618609
* if the debug mode and the verbose mode are activated. It dump all

0 commit comments

Comments
 (0)