CLEANUP: ssl: Remove unused ssl_sock_create_cert function

This function is not used anymore, it can be removed.
This commit is contained in:
Remi Tricot-Le Breton 2022-02-08 17:45:52 +01:00 committed by William Lallemand
parent 2e7d1eb2a7
commit 36f80f6e0b
2 changed files with 0 additions and 9 deletions

View 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);

View 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. */