From 36f80f6e0b648b7d4511f9de6c17bdfb75177030 Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Tue, 8 Feb 2022 17:45:52 +0100 Subject: [PATCH] CLEANUP: ssl: Remove unused ssl_sock_create_cert function This function is not used anymore, it can be removed. --- include/haproxy/ssl_sock.h | 1 - src/ssl_sock.c | 8 -------- 2 files changed, 9 deletions(-) diff --git a/include/haproxy/ssl_sock.h b/include/haproxy/ssl_sock.h index 657d8967a..e80ad2dd4 100644 --- a/include/haproxy/ssl_sock.h +++ b/include/haproxy/ssl_sock.h @@ -108,7 +108,6 @@ int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *arg); #endif #endif -SSL_CTX *ssl_sock_create_cert(struct connection *conn, const char *servername, unsigned int key); SSL_CTX *ssl_sock_assign_generated_cert(unsigned int key, struct bind_conf *bind_conf, SSL *ssl); SSL_CTX *ssl_sock_get_generated_cert(unsigned int key, struct bind_conf *bind_conf); int ssl_sock_set_generated_cert(SSL_CTX *ctx, unsigned int key, struct bind_conf *bind_conf); diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 955d345a1..d1dcafbe7 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -2234,14 +2234,6 @@ ssl_sock_do_create_cert(const char *servername, struct bind_conf *bind_conf, SSL return NULL; } -SSL_CTX * -ssl_sock_create_cert(struct connection *conn, const char *servername, unsigned int key) -{ - struct bind_conf *bind_conf = __objt_listener(conn->target)->bind_conf; - struct ssl_sock_ctx *ctx = conn->xprt_ctx; - - return ssl_sock_do_create_cert(servername, bind_conf, ctx->ssl); -} /* Do a lookup for a certificate in the LRU cache used to store generated * certificates and immediately assign it to the SSL session if not null. */