diff options
author | Adam Langley <agl@google.com> | 2015-04-24 14:30:48 -0700 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-24 14:36:27 -0700 |
commit | 7a759c7828289d9ba48d980baf1db32372e17e82 (patch) | |
tree | 7695836653245927e29c595ee6101a443704bc4d /src | |
parent | d8eaa8b9e9911a0d3539917fb8134e3b19205a3e (diff) | |
download | external_boringssl-7a759c7828289d9ba48d980baf1db32372e17e82.zip external_boringssl-7a759c7828289d9ba48d980baf1db32372e17e82.tar.gz external_boringssl-7a759c7828289d9ba48d980baf1db32372e17e82.tar.bz2 |
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.
(Imported from upstream's
https://boringssl-review.googlesource.com/#/c/4521/)
Change-Id: Ia69c404c528b0cb01c7ff5e56ca8a8415265fa73
Diffstat (limited to 'src')
-rw-r--r-- | src/ssl/s3_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ssl/s3_lib.c b/src/ssl/s3_lib.c index d33a4c2..e0ccedc 100644 --- a/src/ssl/s3_lib.c +++ b/src/ssl/s3_lib.c @@ -841,6 +841,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) { case SSL_CTRL_GET_CHAIN_CERTS: *(STACK_OF(X509) **)parg = s->cert->key->chain; + ret = 1; break; case SSL_CTRL_SELECT_CURRENT_CERT: |