forked from wolfSSL/wolfssl
Add a test.
This commit is contained in:
14
tests/api.c
14
tests/api.c
@@ -8461,6 +8461,13 @@ static int test_client_nofail(void* args, cbType cb)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_SRTP
|
||||||
|
/* make sure that NULL (error condition) returns 1 */
|
||||||
|
if (wolfSSL_CTX_set_tlsext_use_srtp(ctx, NULL) != 1) {
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CRL
|
#ifdef HAVE_CRL
|
||||||
if (cbf != NULL && cbf->crlPemFile != NULL) {
|
if (cbf != NULL && cbf->crlPemFile != NULL) {
|
||||||
if (wolfSSL_CTX_EnableCRL(ctx, WOLFSSL_CRL_CHECKALL) != WOLFSSL_SUCCESS)
|
if (wolfSSL_CTX_EnableCRL(ctx, WOLFSSL_CRL_CHECKALL) != WOLFSSL_SUCCESS)
|
||||||
@@ -8503,6 +8510,13 @@ static int test_client_nofail(void* args, cbType cb)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_SRTP
|
||||||
|
/* make sure that NULL (error condition) returns 1 */
|
||||||
|
if (wolfSSL_set_tlsext_use_srtp(ssl, NULL) != 1) {
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!doUdp) {
|
if (!doUdp) {
|
||||||
if (wolfSSL_set_fd(ssl, sockfd) != WOLFSSL_SUCCESS) {
|
if (wolfSSL_set_fd(ssl, sockfd) != WOLFSSL_SUCCESS) {
|
||||||
/*err_sys("SSL_set_fd failed");*/
|
/*err_sys("SSL_set_fd failed");*/
|
||||||
|
Reference in New Issue
Block a user