summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-02-24 22:33:52 +0100
committerRichard Levitte <levitte@openssl.org>2020-02-27 23:21:14 +0100
commit12d99aac973e5e6723f62f19b07b9c8bcc81c57b (patch)
tree0240dbbbbf97e9664f3c667263df5d64dcc5c7c7 /crypto/asn1
parent8efc4a9c656b8b3eabeac64c54efdeb07dd42f8e (diff)
Deprecate ASN1_sign(), ASN1_verify() and ASN1_digest()
These are old functions that fell out of use with OpenSL 0.9.7. It's more than time to deprecate them. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11161)
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/a_digest.c2
-rw-r--r--crypto/asn1/a_sign.c2
-rw-r--r--crypto/asn1/a_verify.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/asn1/a_digest.c b/crypto/asn1/a_digest.c
index ad6a17d245..22758feac9 100644
--- a/crypto/asn1/a_digest.c
+++ b/crypto/asn1/a_digest.c
@@ -18,7 +18,7 @@
#include <openssl/buffer.h>
#include <openssl/x509.h>
-#ifndef NO_ASN1_OLD
+#ifndef OPENSSL_NO_DEPRECATED_3_0
int ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data,
unsigned char *md, unsigned int *len)
diff --git a/crypto/asn1/a_sign.c b/crypto/asn1/a_sign.c
index 0089ce29dd..4b3a6da9a1 100644
--- a/crypto/asn1/a_sign.c
+++ b/crypto/asn1/a_sign.c
@@ -22,7 +22,7 @@
#include "crypto/asn1.h"
#include "crypto/evp.h"
-#ifndef NO_ASN1_OLD
+#ifndef OPENSSL_NO_DEPRECATED_3_0
int ASN1_sign(i2d_of_void *i2d, X509_ALGOR *algor1, X509_ALGOR *algor2,
ASN1_BIT_STRING *signature, char *data, EVP_PKEY *pkey,
diff --git a/crypto/asn1/a_verify.c b/crypto/asn1/a_verify.c
index 94a11c18d4..8314ec13f9 100644
--- a/crypto/asn1/a_verify.c
+++ b/crypto/asn1/a_verify.c
@@ -21,7 +21,7 @@
#include "crypto/asn1.h"
#include "crypto/evp.h"
-#ifndef NO_ASN1_OLD
+#ifndef OPENSSL_NO_DEPRECATED_3_0
int ASN1_verify(i2d_of_void *i2d, X509_ALGOR *a, ASN1_BIT_STRING *signature,
char *data, EVP_PKEY *pkey)