aboutsummaryrefslogtreecommitdiff
path: root/crypto/dh
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2001-09-05 16:54:32 +0000
committerGeoff Thorpe <geoff@openssl.org>2001-09-05 16:54:32 +0000
commitdc2a33d680a113777f9e1ab864e8848c37c3cfec (patch)
tree87556ba322ab9fcc1ecabee754e465f2027d25de /crypto/dh
parent7ba45bf133b4f1af870b8b0fd87938d377acb5a4 (diff)
downloadopenssl-dc2a33d680a113777f9e1ab864e8848c37c3cfec.zip
openssl-dc2a33d680a113777f9e1ab864e8848c37c3cfec.tar.gz
openssl-dc2a33d680a113777f9e1ab864e8848c37c3cfec.tar.bz2
"DH_up" had been changed to "DH_up_ref" in libeay.num but the function
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.
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh.h2
-rw-r--r--crypto/dh/dh_lib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h
index b6601c6..fe2da7a 100644
--- a/crypto/dh/dh.h
+++ b/crypto/dh/dh.h
@@ -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);
diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c
index 7c30461..7804bb4 100644
--- a/crypto/dh/dh_lib.c
+++ b/crypto/dh/dh_lib.c
@@ -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