diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-09-27 12:51:25 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-02-08 18:43:48 +0000 |
commit | 1e1b48d151a9e87592e3ba9303031c5ec0ebec8f (patch) | |
tree | 0610a1c01d55c248f2223f2d1de68be11fb88187 | |
parent | 762ee38d55b0d0ca2a2e744b8e59dbc9f39c68a0 (diff) |
pkcs12.h header reorganisation.
Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r-- | include/openssl/pkcs12.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/openssl/pkcs12.h b/include/openssl/pkcs12.h index 155eac494e..46ae49a3a3 100644 --- a/include/openssl/pkcs12.h +++ b/include/openssl/pkcs12.h @@ -140,23 +140,25 @@ typedef struct pkcs12_bag_st PKCS12_BAGS; # define PKCS12_bag_type PKCS12_SAFEBAG_get_nid # define PKCS12_cert_bag_type PKCS12_SAFEBAG_get_bag_nid -ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(PKCS12_SAFEBAG *bag, int attr_nid); 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, ASN1_OCTET_STRING **psalt, ASN1_INTEGER **piter, PKCS12 *p12); + +ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(PKCS12_SAFEBAG *bag, int attr_nid); +ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(PKCS12_SAFEBAG *bag); int PKCS12_SAFEBAG_get_nid(PKCS12_SAFEBAG *bag); int PKCS12_SAFEBAG_get_bag_nid(PKCS12_SAFEBAG *bag); + +X509 *PKCS12_SAFEBAG_get1_cert(PKCS12_SAFEBAG *bag); +X509_CRL *PKCS12_SAFEBAG_get1_crl(PKCS12_SAFEBAG *bag); +STACK_OF(PKCS12_SAFEBAG) *PKCS12_SAFEBAG_get0_safes(PKCS12_SAFEBAG *bag); PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(PKCS12_SAFEBAG *bag); X509_SIG *PKCS12_SAFEBAG_get0_pkcs8(PKCS12_SAFEBAG *bag); -STACK_OF(PKCS12_SAFEBAG) *PKCS12_SAFEBAG_get0_safes(PKCS12_SAFEBAG *bag); -ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(PKCS12_SAFEBAG *bag); PKCS12_SAFEBAG *PKCS12_SAFEBAG_new_cert(X509 *x509); PKCS12_SAFEBAG *PKCS12_SAFEBAG_new_crl(X509_CRL *crl); -X509 *PKCS12_SAFEBAG_get1_cert(PKCS12_SAFEBAG *bag); -X509_CRL *PKCS12_SAFEBAG_get1_crl(PKCS12_SAFEBAG *bag); PKCS12_SAFEBAG *PKCS12_item_pack_safebag(void *obj, const ASN1_ITEM *it, int nid1, int nid2); |