[openssl-commits] [openssl] master update
Matt Caswell
matt at openssl.org
Thu Jun 21 10:05:55 UTC 2018
The branch master has been updated
via 4f1b96f9fcd2545b42186832ce2354d005ebe468 (commit)
from 7f9822a48213dd2feca845dbbb6bcb8beb9550de (commit)
- Log -----------------------------------------------------------------
commit 4f1b96f9fcd2545b42186832ce2354d005ebe468
Author: Nicola Tuveri <nic.tuv at gmail.com>
Date: Tue Jun 12 17:42:31 2018 +0300
Use DEPRECATEDIN_1_2_0 macro for DSA_sign_setup declaration
Reviewed-by: Richard Levitte <levitte at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6467)
-----------------------------------------------------------------------
Summary of changes:
crypto/dsa/dsa_sign.c | 2 ++
include/openssl/dsa.h | 2 +-
util/libcrypto.num | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/crypto/dsa/dsa_sign.c b/crypto/dsa/dsa_sign.c
index 7057ea5..d8e2781 100644
--- a/crypto/dsa/dsa_sign.c
+++ b/crypto/dsa/dsa_sign.c
@@ -16,7 +16,9 @@ DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
return dsa->meth->dsa_do_sign(dgst, dlen, dsa);
}
+#if OPENSSL_API_COMPAT < 0x10200000L
int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
{
return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
}
+#endif
diff --git a/include/openssl/dsa.h b/include/openssl/dsa.h
index e1be0ad..f347f71 100644
--- a/include/openssl/dsa.h
+++ b/include/openssl/dsa.h
@@ -99,7 +99,7 @@ int DSA_size(const DSA *);
int DSA_bits(const DSA *d);
int DSA_security_bits(const DSA *d);
/* next 4 return -1 on error */
-int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp);
+DEPRECATEDIN_1_2_0(int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp))
int DSA_sign(int type, const unsigned char *dgst, int dlen,
unsigned char *sig, unsigned int *siglen, DSA *dsa);
int DSA_verify(int type, const unsigned char *dgst, int dgst_len,
diff --git a/util/libcrypto.num b/util/libcrypto.num
index f5122e2..9ca1476 100644
--- a/util/libcrypto.num
+++ b/util/libcrypto.num
@@ -728,7 +728,7 @@ BIO_snprintf 726 1_1_0 EXIST::FUNCTION:
EC_POINT_hex2point 727 1_1_0 EXIST::FUNCTION:EC
X509v3_get_ext_by_critical 728 1_1_0 EXIST::FUNCTION:
ENGINE_get_default_RSA 729 1_1_0 EXIST::FUNCTION:ENGINE
-DSA_sign_setup 730 1_1_0 EXIST::FUNCTION:DSA
+DSA_sign_setup 730 1_1_0 EXIST::FUNCTION:DEPRECATEDIN_1_2_0,DSA
OPENSSL_sk_new_null 731 1_1_0 EXIST::FUNCTION:
PEM_read_PKCS8 732 1_1_0 EXIST::FUNCTION:STDIO
BN_mod_sqr 733 1_1_0 EXIST::FUNCTION:
More information about the openssl-commits
mailing list