mirror of https://github.com/wolfSSL/wolfssl.git
fix api.c build with --enable-opensslall and --enable-debug
parent
fceba6eb6f
commit
e184cf5c29
|
@ -28698,7 +28698,7 @@ static int msgCb(SSL_CTX *ctx, SSL *ssl)
|
||||||
{
|
{
|
||||||
(void) ctx;
|
(void) ctx;
|
||||||
(void) ssl;
|
(void) ssl;
|
||||||
#ifdef OPENSSL_ALL
|
#if defined(OPENSSL_ALL) && defined(SESSION_CERTS)
|
||||||
STACK_OF(X509)* sk;
|
STACK_OF(X509)* sk;
|
||||||
X509* x509;
|
X509* x509;
|
||||||
int i, num;
|
int i, num;
|
||||||
|
@ -28710,7 +28710,7 @@ static int msgCb(SSL_CTX *ctx, SSL *ssl)
|
||||||
AssertIntEQ(((WOLFSSL_X509_CHAIN *)SSL_get_peer_cert_chain(ssl))->count, 2);
|
AssertIntEQ(((WOLFSSL_X509_CHAIN *)SSL_get_peer_cert_chain(ssl))->count, 2);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OPENSSL_ALL
|
#if defined(OPENSSL_ALL) && defined(SESSION_CERTS)
|
||||||
bio = BIO_new(BIO_s_file());
|
bio = BIO_new(BIO_s_file());
|
||||||
BIO_set_fp(bio, stdout, BIO_NOCLOSE);
|
BIO_set_fp(bio, stdout, BIO_NOCLOSE);
|
||||||
sk = SSL_get_peer_cert_chain(ssl);
|
sk = SSL_get_peer_cert_chain(ssl);
|
||||||
|
|
Loading…
Reference in New Issue