From: Remi Tricot-Le Breton Date: Tue, 8 Feb 2022 16:45:52 +0000 (+0100) Subject: CLEANUP: ssl: Remove unused ssl_sock_create_cert function X-Git-Tag: v2.6-dev2~197 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36f80f6e0b648b7d4511f9de6c17bdfb75177030;p=thirdparty%2Fhaproxy.git CLEANUP: ssl: Remove unused ssl_sock_create_cert function This function is not used anymore, it can be removed. --- diff --git a/include/haproxy/ssl_sock.h b/include/haproxy/ssl_sock.h index 657d8967ac..e80ad2dd4c 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 955d345a1f..d1dcafbe7c 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. */