forked from wolfSSL/wolfssl
Merge pull request #2499 from ejohnstown/sniffer-features
Sniffer Features
This commit is contained in:
@@ -2574,11 +2574,16 @@ static void test_client_nofail(void* args, void *cb)
|
||||
|
||||
/* IANA Cipher Suites Names */
|
||||
/* Unless WOLFSSL_CIPHER_INTERNALNAME or NO_ERROR_STRINGS,
|
||||
then its the internal cipher suite name */
|
||||
then it's the internal cipher suite name */
|
||||
cipher = wolfSSL_get_current_cipher(ssl);
|
||||
cipherName1 = wolfSSL_CIPHER_get_name(cipher);
|
||||
cipherName2 = wolfSSL_get_cipher(ssl);
|
||||
AssertStrEQ(cipherName1, cipherName2);
|
||||
#if !defined(WOLFSSL_CIPHER_INTERNALNAME) && !defined(NO_ERROR_STRINGS)
|
||||
cipherName1 = wolfSSL_get_cipher_name_iana_from_suite(
|
||||
(cipherSuite >> 8), cipherSuite & 0xFF);
|
||||
AssertStrEQ(cipherName1, cipherName2);
|
||||
#endif
|
||||
|
||||
if (cb != NULL)
|
||||
((cbType)cb)(ctx, ssl);
|
||||
@@ -18548,6 +18553,7 @@ static void test_wc_PemToDer(void)
|
||||
|
||||
if (cert_buf)
|
||||
free(cert_buf);
|
||||
printf(resultFmt, passed);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -18564,6 +18570,7 @@ static void test_wc_AllocDer(void)
|
||||
AssertIntEQ(ret, 0);
|
||||
AssertNotNull(pDer);
|
||||
wc_FreeDer(&pDer);
|
||||
printf(resultFmt, passed);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user