OpenSSL: Write PKCS#12 extra cert errors into debug log
authorJouni Malinen <j@w1.fi>
Mon, 24 Aug 2015 16:36:34 +0000 (19:36 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 24 Aug 2015 16:36:34 +0000 (19:36 +0300)
commit20f331b7072b07e08f9600512356f6cf559cb3a3
treee607ed1b1a3d15e33b09b2bee3874ff2e39872fe
parentc5e44b5917ab76fa55abc080e333bf5c9b15af68
OpenSSL: Write PKCS#12 extra cert errors into debug log

Commit de2a7b796d82d92120aa9532450863f503e1885a ('OpenSSL: Use
connection certificate chain with PKCS#12 extra certs') added a new
mechanism for doing this with OpenSSL 1.0.2 and newer. However, it did
not poinr out anything in debug log if SSL_add1_chain_cert() failed. Add
such a debug print and also silence static analyzer warning on res being
stored without being read (since the error case is ignored at least for
now).

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/tls_openssl.c