"DH_up" had been changed to "DH_up_ref" in libeay.num but the function
authorGeoff Thorpe <geoff@openssl.org>
Wed, 5 Sep 2001 16:54:32 +0000 (16:54 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Wed, 5 Sep 2001 16:54:32 +0000 (16:54 +0000)
declaration and implementation had not. So a recent update recreated the
original definition in libeay.num ... this corrects it and changes the "dh"
code to the "up_ref" variant.

crypto/dh/dh.h
crypto/dh/dh_lib.c
util/libeay.num

index b6601c66f8dfe98d532849aa9a2587a32a41bfaf..fe2da7abe38361b32472079ad76eb6f0bcbe0e1e 100644 (file)
@@ -166,7 +166,7 @@ DH *DH_new_method(struct engine_st *engine);
 
 DH *   DH_new(void);
 void   DH_free(DH *dh);
-int    DH_up(DH *dh);
+int    DH_up_ref(DH *dh);
 int    DH_size(const DH *dh);
 int DH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
             CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
index 7c304615bff334a4f5235bd89d4cf44190530a76..7804bb4fd00addd6f2173e0bf021bbc27b90932b 100644 (file)
@@ -217,7 +217,7 @@ void DH_free(DH *r)
        OPENSSL_free(r);
        }
 
-int DH_up(DH *r)
+int DH_up_ref(DH *r)
        {
        int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_DH);
 #ifdef REF_PRINT
index aed4f1caa05892c4393f7de2b2376c2a0c277185..61c70b4e8b7c43d1b347d9be64587fa563747f30 100755 (executable)
@@ -2650,13 +2650,12 @@ EVP_dev_crypto_rc4                      3098    EXIST::FUNCTION:DES
 ENGINE_load_ciphers                     3099   EXIST::FUNCTION:
 ENGINE_get_cipher_by_name               3100   EXIST::FUNCTION:
 ENGINE_cipher_num                       3101   EXIST::FUNCTION:
-DH_up_ref                               3102   NOEXIST::FUNCTION:
+DH_up_ref                               3102   EXIST::FUNCTION:DH
 RSA_up_ref                              3103   EXIST::FUNCTION:RSA
 EVP_DigestInit_dbg                      3104   EXIST::FUNCTION:
 CRYPTO_cleanup_all_ex_data              3105   EXIST::FUNCTION:
 CRYPTO_set_ex_data_implementation       3106   EXIST::FUNCTION:
 CRYPTO_ex_data_new_class                3107   EXIST::FUNCTION:
 CRYPTO_get_ex_data_implementation       3108   EXIST::FUNCTION:
-DH_up                                   3109   EXIST::FUNCTION:DH
-BN_pseudo_rand_range                    3110   EXIST::FUNCTION:
-ERR_unload_strings                      3111   EXIST::FUNCTION:
+BN_pseudo_rand_range                    3109   EXIST::FUNCTION:
+ERR_unload_strings                      3110   EXIST::FUNCTION: