]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - test/helpers/handshake.c
Add support for compressed certificates (RFC8879)
[thirdparty/openssl.git] / test / helpers / handshake.c
index fc7f0263001df25befc264ccdf054f6a456766dd..e0422469e4c223d08449c73734128d9ec97494fb 100644 (file)
@@ -695,6 +695,14 @@ static int configure_handshake_ctx(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
                                          server2_ctx_data, client_ctx_data))
         goto err;
 #endif  /* !OPENSSL_NO_SRP */
+#ifndef OPENSSL_NO_COMP_ALG
+    if (test->compress_certificates) {
+        if (!TEST_true(SSL_CTX_compress_certs(server_ctx, 0)))
+            goto err;
+        if (server2_ctx != NULL && !TEST_true(SSL_CTX_compress_certs(server2_ctx, 0)))
+            goto err;
+    }
+#endif
     return 1;
 err:
     return 0;