Oops, get selection logic right.
This commit is contained in:
parent
f1f7598ce9
commit
c53a5308a5
1 changed files with 3 additions and 2 deletions
|
@ -3908,9 +3908,10 @@ long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SSL_CTRL_GET_EXTRA_CHAIN_CERTS:
|
case SSL_CTRL_GET_EXTRA_CHAIN_CERTS:
|
||||||
*(STACK_OF(X509) **)parg = ctx->extra_certs;
|
if (ctx->extra_certs == NULL && larg == 0)
|
||||||
if (parg == NULL && larg == 0)
|
|
||||||
*(STACK_OF(X509) **)parg = ctx->cert->key->chain;
|
*(STACK_OF(X509) **)parg = ctx->cert->key->chain;
|
||||||
|
else
|
||||||
|
*(STACK_OF(X509) **)parg = ctx->extra_certs;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS:
|
case SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS:
|
||||||
|
|
Loading…
Reference in a new issue