diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index e62bffea..7b9d051f 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1860,8 +1860,6 @@ OPENSSL_EXPORT size_t SSL_get_tls_channel_id(SSL *ssl, uint8_t *out, SSL_CTX_ctrl(ctx, SSL_CTRL_EXTRA_CHAIN_CERT, 0, (char *)x509) #define SSL_CTX_get_extra_chain_certs(ctx, px509) \ SSL_CTX_ctrl(ctx, SSL_CTRL_GET_EXTRA_CHAIN_CERTS, 0, px509) -#define SSL_CTX_get_extra_chain_certs_only(ctx, px509) \ - SSL_CTX_ctrl(ctx, SSL_CTRL_GET_EXTRA_CHAIN_CERTS, 1, px509) #define SSL_CTX_clear_extra_chain_certs(ctx) \ SSL_CTX_ctrl(ctx, SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS, 0, NULL) diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index edf0f81d..0f685e7a 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -503,7 +503,7 @@ long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) { break; case SSL_CTRL_GET_EXTRA_CHAIN_CERTS: - if (ctx->extra_certs == NULL && larg == 0) { + if (ctx->extra_certs == NULL) { *(STACK_OF(X509) **)parg = ctx->cert->key->chain; } else { *(STACK_OF(X509) **)parg = ctx->extra_certs;