diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 1295d875..2a48ed28 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1761,7 +1761,6 @@ DECLARE_PEM_rw(SSL_SESSION, SSL_SESSION) #define SSL_CTRL_GET_EC_POINT_FORMATS 111 #define SSL_CTRL_GET_CHAIN_CERTS 115 -#define SSL_CTRL_SELECT_CURRENT_CERT 116 /* DTLSv1_get_timeout queries the next DTLS handshake timeout. If there is a * timeout in progress, it sets |*out| to the time remaining and returns one. @@ -1870,8 +1869,6 @@ OPENSSL_EXPORT size_t SSL_get_tls_channel_id(SSL *ssl, uint8_t *out, #define SSL_CTX_clear_chain_certs(ctx) SSL_CTX_set0_chain(ctx, NULL) #define SSL_CTX_build_cert_chain(ctx, flags) \ SSL_CTX_ctrl(ctx, SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL) -#define SSL_CTX_select_current_cert(ctx, x509) \ - SSL_CTX_ctrl(ctx, SSL_CTRL_SELECT_CURRENT_CERT, 0, (char *)x509) #define SSL_CTX_set0_verify_cert_store(ctx, st) \ SSL_CTX_ctrl(ctx, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, (char *)st) @@ -1893,8 +1890,6 @@ OPENSSL_EXPORT size_t SSL_get_tls_channel_id(SSL *ssl, uint8_t *out, #define SSL_clear_chain_certs(ctx) SSL_set0_chain(ctx, NULL) #define SSL_build_cert_chain(s, flags) \ SSL_ctrl(s, SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL) -#define SSL_select_current_cert(ctx, x509) \ - SSL_ctrl(ctx, SSL_CTRL_SELECT_CURRENT_CERT, 0, (char *)x509) #define SSL_set0_verify_cert_store(s, st) \ SSL_ctrl(s, SSL_CTRL_SET_VERIFY_CERT_STORE, 0, (char *)st) diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index c4e07047..0272d6c0 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -394,9 +394,6 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) { ret = 1; break; - case SSL_CTRL_SELECT_CURRENT_CERT: - return 1; - case SSL_CTRL_GET_CURVES: { const uint16_t *clist = s->s3->tmp.peer_ellipticcurvelist; size_t clistlen = s->s3->tmp.peer_ellipticcurvelist_length; @@ -519,9 +516,6 @@ long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) { return ssl_cert_add0_chain_cert(ctx->cert, (X509 *)parg); } - case SSL_CTRL_SELECT_CURRENT_CERT: - return 1; - default: return 0; }