summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-02-05 15:43:20 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-02-08 18:43:49 +0000
commit116503cd51aa3195ce16a82ce9b789abe58a8928 (patch)
tree3e6b24e1f0f882bd964f73c118757a2209463a0b /include
parent70c7778db1d5cdb8dbd5c6adff3c8da3ea462da3 (diff)
Only use compatibility macros for < 1.1 API.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/pkcs12.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/openssl/pkcs12.h b/include/openssl/pkcs12.h
index d4862440f5..f97f95f68b 100644
--- a/include/openssl/pkcs12.h
+++ b/include/openssl/pkcs12.h
@@ -113,6 +113,8 @@ typedef struct pkcs12_bag_st PKCS12_BAGS;
/* Compatibility macros */
+#if OPENSSL_API_COMPAT < 0x10100000L
+
# define M_PKCS12_x5092certbag PKCS12_x5092certbag
# define M_PKCS12_x509crl2certbag PKCS12_x509crl2certbag
@@ -131,7 +133,6 @@ typedef struct pkcs12_bag_st PKCS12_BAGS;
# define M_PKCS12_cert_bag_type PKCS12_cert_bag_type
# define M_PKCS12_crl_bag_type PKCS12_cert_bag_type
-/* Compatibility macros for pre 1.1.0 function names */
# define PKCS12_certbag2x509 PKCS12_SAFEBAG_get1_cert
# define PKCS12_certbag2scrl PKCS12_SAFEBAG_get1_crl
# define PKCS12_get_attr PKCS12_SAFEBAG_get0_attr
@@ -142,6 +143,8 @@ typedef struct pkcs12_bag_st PKCS12_BAGS;
# define PKCS12_MAKE_KEYBAG PKCS12_SAFEBAG_create0_p8inf
# define PKCS12_MAKE_SHKEYBAG PKCS12_SAFEBAG_create_pkcs8_encrypt
+#endif
+
ASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid);
int PKCS12_mac_present(PKCS12 *p12);
void PKCS12_get0_mac(ASN1_OCTET_STRING **pmac, X509_ALGOR **pmacalg,