diff options
author | Rich Salz <rsalz@akamai.com> | 2019-02-21 19:23:06 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-03-19 12:01:24 +0100 |
commit | 6098b69e5817068c49e63487d3424b4122a1796d (patch) | |
tree | 017a492973158572688b6ccfbaae9fece169c2cc /crypto/asn1 | |
parent | EVP_PKEY_get0_engine documentation (diff) | |
download | openssl-6098b69e5817068c49e63487d3424b4122a1796d.tar.xz openssl-6098b69e5817068c49e63487d3424b4122a1796d.zip |
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.c | 6 |
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; |