]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix no-srtp build failure
authorTomas Mraz <tomas@openssl.org>
Mon, 10 Jul 2023 14:04:41 +0000 (16:04 +0200)
committerTodd Short <todd.short@me.com>
Tue, 11 Jul 2023 02:06:18 +0000 (22:06 -0400)
SRTP related functions aren't available when built with no-srtp.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/21412)

test/quicapitest.c

index 901cc21677bded24689e5b396bdead070915297d..a6b7c88eba2623e9ff8e33916dc63f9818697501 100644 (file)
@@ -372,9 +372,11 @@ static int test_quic_forbidden_apis_ctx(void)
     if (!TEST_ptr(ctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method())))
         goto err;
 
+#ifndef OPENSSL_NO_SRTP
     /* This function returns 0 on success and 1 on error, and should fail. */
     if (!TEST_true(SSL_CTX_set_tlsext_use_srtp(ctx, "SRTP_AEAD_AES_128_GCM")))
         goto err;
+#endif
 
     /*
      * List of ciphersuites we do and don't allow in QUIC.
@@ -420,9 +422,11 @@ static int test_quic_forbidden_apis(void)
     if (!TEST_ptr(ssl = SSL_new(ctx)))
         goto err;
 
+#ifndef OPENSSL_NO_SRTP
     /* This function returns 0 on success and 1 on error, and should fail. */
     if (!TEST_true(SSL_set_tlsext_use_srtp(ssl, "SRTP_AEAD_AES_128_GCM")))
         goto err;
+#endif
 
     /* Set TLSv1.3 ciphersuite list for the SSL_CTX. */
     if (!TEST_true(SSL_set_ciphersuites(ssl,