]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/crypto/tls_openssl.c
OpenSSL: Fix OCSP certificate debug print to use wpa_printf
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 29 May 2014 10:51:19 +0000 (13:51 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 29 May 2014 12:37:18 +0000 (15:37 +0300)
commit4eb3b76b0f603e80d49cbc75d6c7072ac2fbc9f5
tree9b9ccabbb98d1c33dce6a37b616884dcaa26d61d
parent9e669cb5ff32c6425582c6304a479cf56f5c0902
OpenSSL: Fix OCSP certificate debug print to use wpa_printf

Instead of using X509_print_fp() to print directly to stdout, print the
certificate dump to a memory BIO and use wpa_printf() to get this into
the debug log. This allows redirection of debug log to work better and
avoids undesired stdout prints when debugging is not enabled.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/crypto/tls_openssl.c