]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl: Remove unused ssl_sock_create_cert function
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 8 Feb 2022 16:45:52 +0000 (17:45 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 9 Feb 2022 10:15:44 +0000 (11:15 +0100)
This function is not used anymore, it can be removed.

include/haproxy/ssl_sock.h
src/ssl_sock.c

index 657d8967ac56d2ab31f061646843652da92cabd1..e80ad2dd4c1617e1af0abb9b40749fff91fa6cba 100644 (file)
@@ -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);
index 955d345a1fd45eab49f54627c2a4e8cde95d2fb6..d1dcafbe7c7ff48e45b3180609e9939fb8c751c2 100644 (file)
@@ -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. */