The dtls1_output_cert_chain function no longer exists so remove it from
[openssl.git] / crypto / lock.c
index 49db044fc175dc91c692089ab3ed28354226cc32..b716708303c58e0da5bdd07c0886296e17836bc4 100644 (file)
@@ -380,6 +380,9 @@ void CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value *(*func)
 void CRYPTO_set_dynlock_lock_callback(void (*func)(int mode,
        struct CRYPTO_dynlock_value *l, const char *file, int line))
        {
+#ifdef OPENSSL_FIPS
+       FIPS_set_locking_callbacks(CRYPTO_lock, CRYPTO_add_lock);
+#endif
        dynlock_lock_callback=func;
        }
 
@@ -405,6 +408,9 @@ int (*CRYPTO_get_add_lock_callback(void))(int *num,int mount,int type,
 void CRYPTO_set_locking_callback(void (*func)(int mode,int type,
                                              const char *file,int line))
        {
+#ifdef OPENSSL_FIPS
+       FIPS_set_locking_callbacks(CRYPTO_lock, CRYPTO_add_lock);
+#endif
        locking_callback=func;
        }