Update chain building function.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 27 Mar 2014 14:20:16 +0000 (14:20 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 27 Mar 2014 14:24:40 +0000 (14:24 +0000)
commite970f63dc028e32df50fa7135e5e0334afa24d83
treee3a3465657051ce151207a138d77a789d8b11a07
parent7c5718be271d9a47e8538adfde1909cd58943244
Update chain building function.

Don't clear verification errors from the error queue unless
SSL_BUILD_CHAIN_FLAG_CLEAR_ERROR is set.

If errors occur during verification and SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR
is set return 2 so applications can issue warnings.
(cherry picked from commit 2dd6976f6d02f98b30c376951ac38f780a86b3b5)
doc/ssl/SSL_CTX_add1_chain_cert.pod
ssl/ssl.h
ssl/ssl_cert.c