From e184cf5c29a75cde44791d66df3d05e0258095a3 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Thu, 11 Mar 2021 12:56:13 -0700 Subject: [PATCH] fix api.c build with --enable-opensslall and --enable-debug --- tests/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index c6e56e2a5..6a950ebd5 100644 --- a/tests/api.c +++ b/tests/api.c @@ -28698,7 +28698,7 @@ static int msgCb(SSL_CTX *ctx, SSL *ssl) { (void) ctx; (void) ssl; - #ifdef OPENSSL_ALL + #if defined(OPENSSL_ALL) && defined(SESSION_CERTS) STACK_OF(X509)* sk; X509* x509; 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); #endif - #ifdef OPENSSL_ALL + #if defined(OPENSSL_ALL) && defined(SESSION_CERTS) bio = BIO_new(BIO_s_file()); BIO_set_fp(bio, stdout, BIO_NOCLOSE); sk = SSL_get_peer_cert_chain(ssl);