SSL_COMP_get_compression_method is a typo (a missing 's' at the end of
[openssl.git] / ssl / ssl_algs.c
index 7c8a451fc56c8d0c4e9d83563e82449121583316..1a41b9967cf4548580797ebc7663328a4a01d40f 100644 (file)
@@ -108,6 +108,12 @@ int SSL_library_init(void)
 #if 0
        EVP_add_digest(EVP_sha());
        EVP_add_digest(EVP_dss());
+#endif
+#ifndef OPENSSL_NO_COMP
+       /* This will initialise the built-in compression algorithms.
+          The value returned is a STACK_OF(SSL_COMP), but that can
+          be discarded safely */
+       (void)SSL_COMP_get_compression_methods();
 #endif
        return(1);
        }