summaryrefslogtreecommitdiff
path: root/crypto/asn1
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2019-02-21 13:23:06 -0500
committerRichard Levitte <levitte@openssl.org>2019-03-19 12:01:24 +0100
commit6098b69e5817068c49e63487d3424b4122a1796d (patch)
tree017a492973158572688b6ccfbaae9fece169c2cc /crypto/asn1
parent770dfe8dfae33e814198ad6e190d22981066a583 (diff)
downloadopenssl-new-6098b69e5817068c49e63487d3424b4122a1796d.tar.gz
Move ASN1_BROKEN macros
They're only used in one place, and only for a legacy datatype. Reviewed-by: Paul Yang <yang.yang@baishancloud.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8302)
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/n_pkey.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/asn1/n_pkey.c b/crypto/asn1/n_pkey.c
index 12592d09c9..71f78f7b26 100644
--- a/crypto/asn1/n_pkey.c
+++ b/crypto/asn1/n_pkey.c
@@ -22,6 +22,12 @@ NON_EMPTY_TRANSLATION_UNIT
# ifndef OPENSSL_NO_RC4
+# define ASN1_BROKEN_SEQUENCE(tname) \
+ static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_BROKEN, 0, 0, 0, 0}; \
+ ASN1_SEQUENCE(tname)
+# define static_ASN1_BROKEN_SEQUENCE_END(stname) \
+ static_ASN1_SEQUENCE_END_ref(stname, stname)
+
typedef struct netscape_pkey_st {
int32_t version;
X509_ALGOR *algor;