Fix SSL_get0_chain_certs.

SSL_get0_chain_certs calls a ctrl function with
SSL_CTRL_GET_CHAIN_CERTS. The switch failed to set a positive return
value and so the call always appeared to fail.

Change-Id: If40ca7840197a9748fd69b761fd905f44bb79835
Reviewed-on: https://boringssl-review.googlesource.com/4521
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Adam Langley 2015-04-24 14:20:42 -07:00
parent ab9017b0ff
commit f868409124

View File

@ -708,6 +708,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
case SSL_CTRL_GET_CHAIN_CERTS: case SSL_CTRL_GET_CHAIN_CERTS:
*(STACK_OF(X509) **)parg = s->cert->key->chain; *(STACK_OF(X509) **)parg = s->cert->key->chain;
ret = 1;
break; break;
case SSL_CTRL_SELECT_CURRENT_CERT: case SSL_CTRL_SELECT_CURRENT_CERT: