diff options
author | Bodo Möller <bodo@openssl.org> | 2001-09-03 13:40:07 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2001-09-03 13:40:07 +0000 |
commit | 6ac4e8bd6ecff6d11ff3cd08e88356e7a2239329 (patch) | |
tree | 1514825fe21c96f6c0d471402059f549eadec7ee /crypto/dsa | |
parent | 983495c4b215b7418dc3470fa8bc9c919c09c683 (diff) |
Rename recently introduced functions for improved code clarity:
[DR]SA_up => [DR]SA_up_ref
Diffstat (limited to 'crypto/dsa')
-rw-r--r-- | crypto/dsa/dsa.h | 2 | ||||
-rw-r--r-- | crypto/dsa/dsa_lib.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/dsa/dsa.h b/crypto/dsa/dsa.h index 7fc8fd303b..e12cee0b75 100644 --- a/crypto/dsa/dsa.h +++ b/crypto/dsa/dsa.h @@ -179,7 +179,7 @@ DSA * DSA_new_method(struct engine_st *engine); #endif void DSA_free (DSA *r); /* "up" the DSA object's reference count */ -int DSA_up(DSA *r); +int DSA_up_ref(DSA *r); int DSA_size(const DSA *); /* next 4 return -1 on error */ int DSA_sign_setup( DSA *dsa,BN_CTX *ctx_in,BIGNUM **kinvp,BIGNUM **rp); diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index bae39c20d4..365145a96b 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -226,7 +226,7 @@ void DSA_free(DSA *r) OPENSSL_free(r); } -int DSA_up(DSA *r) +int DSA_up_ref(DSA *r) { int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_DSA); #ifdef REF_PRINT @@ -235,7 +235,7 @@ int DSA_up(DSA *r) #ifdef REF_CHECK if (i < 2) { - fprintf(stderr, "DSA_up, bad reference count\n"); + fprintf(stderr, "DSA_up_ref, bad reference count\n"); abort(); } #endif |