Merge pull request #6267 from SparkiDev/openssl_cryptonly

OpenSSL API and cryptonly: fix to compile
This commit is contained in:
JacobBarthelmeh
2023-04-05 09:08:32 -06:00
committed by GitHub

View File

@@ -1129,7 +1129,7 @@ static WC_INLINE void showPeerEx(WOLFSSL* ssl, int lng_index)
#ifndef NO_DH #ifndef NO_DH
int bits; int bits;
#endif #endif
#ifdef OPENSSL_EXTRA #if defined(OPENSSL_EXTRA) && !defined(WOLFCRYPT_ONLY)
int nid; int nid;
#endif #endif
#ifdef KEEP_PEER_CERT #ifdef KEEP_PEER_CERT
@@ -1149,7 +1149,7 @@ static WC_INLINE void showPeerEx(WOLFSSL* ssl, int lng_index)
cipher = wolfSSL_get_current_cipher(ssl); cipher = wolfSSL_get_current_cipher(ssl);
printf("%s %s\n", words[1], wolfSSL_CIPHER_get_name(cipher)); printf("%s %s\n", words[1], wolfSSL_CIPHER_get_name(cipher));
#ifdef OPENSSL_EXTRA #if defined(OPENSSL_EXTRA) && !defined(WOLFCRYPT_ONLY)
if (wolfSSL_get_signature_nid(ssl, &nid) == WOLFSSL_SUCCESS) { if (wolfSSL_get_signature_nid(ssl, &nid) == WOLFSSL_SUCCESS) {
printf("%s %s\n", words[2], OBJ_nid2sn(nid)); printf("%s %s\n", words[2], OBJ_nid2sn(nid));
} }