From 762c36687f1d41b7db39fe962adc6c706905db88 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Tue, 10 Dec 2024 21:21:41 -0500 Subject: [PATCH] Add a test. --- tests/api.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/api.c b/tests/api.c index e7b64124a6..e0d7b73d35 100644 --- a/tests/api.c +++ b/tests/api.c @@ -8461,6 +8461,13 @@ static int test_client_nofail(void* args, cbType cb) 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 if (cbf != NULL && cbf->crlPemFile != NULL) { 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; } +#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 (wolfSSL_set_fd(ssl, sockfd) != WOLFSSL_SUCCESS) { /*err_sys("SSL_set_fd failed");*/