From f868409124747fba1b3ec070c0a5a7821cdb4649 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Fri, 24 Apr 2015 14:20:42 -0700 Subject: [PATCH] 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 --- ssl/s3_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 4537e2ef..76441d04 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -708,6 +708,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: