|
@@ -87,8 +87,8 @@ typedef struct pkcs7_recip_info_st {
|
|
typedef struct pkcs7_signed_st {
|
|
typedef struct pkcs7_signed_st {
|
|
ASN1_INTEGER *version; /* version 1 */
|
|
ASN1_INTEGER *version; /* version 1 */
|
|
STACK_OF(X509_ALGOR) *md_algs; /* md used */
|
|
STACK_OF(X509_ALGOR) *md_algs; /* md used */
|
|
- STACK_OF(X509) *cert; /* [ 0 ] */
|
|
|
|
- STACK_OF(X509_CRL) *crl; /* [ 1 ] */
|
|
|
|
|
|
+ STACK_OF(X509) *cert; /* [ 0 ] */ /* name should be 'certificates' */
|
|
|
|
+ STACK_OF(X509_CRL) *crl; /* [ 1 ] */ /* name should be 'crls' */
|
|
STACK_OF(PKCS7_SIGNER_INFO) *signer_info;
|
|
STACK_OF(PKCS7_SIGNER_INFO) *signer_info;
|
|
struct pkcs7_st *contents;
|
|
struct pkcs7_st *contents;
|
|
} PKCS7_SIGNED;
|
|
} PKCS7_SIGNED;
|
|
@@ -114,8 +114,8 @@ typedef struct pkcs7_enveloped_st {
|
|
typedef struct pkcs7_signedandenveloped_st {
|
|
typedef struct pkcs7_signedandenveloped_st {
|
|
ASN1_INTEGER *version; /* version 1 */
|
|
ASN1_INTEGER *version; /* version 1 */
|
|
STACK_OF(X509_ALGOR) *md_algs; /* md used */
|
|
STACK_OF(X509_ALGOR) *md_algs; /* md used */
|
|
- STACK_OF(X509) *cert; /* [ 0 ] */
|
|
|
|
- STACK_OF(X509_CRL) *crl; /* [ 1 ] */
|
|
|
|
|
|
+ STACK_OF(X509) *cert; /* [ 0 ] */ /* name should be 'certificates' */
|
|
|
|
+ STACK_OF(X509_CRL) *crl; /* [ 1 ] */ /* name should be 'crls' */
|
|
STACK_OF(PKCS7_SIGNER_INFO) *signer_info;
|
|
STACK_OF(PKCS7_SIGNER_INFO) *signer_info;
|
|
PKCS7_ENC_CONTENT *enc_data;
|
|
PKCS7_ENC_CONTENT *enc_data;
|
|
STACK_OF(PKCS7_RECIP_INFO) *recipientinfo;
|
|
STACK_OF(PKCS7_RECIP_INFO) *recipientinfo;
|
|
@@ -156,7 +156,7 @@ typedef struct pkcs7_st {
|
|
/* NID_pkcs7_data */
|
|
/* NID_pkcs7_data */
|
|
ASN1_OCTET_STRING *data;
|
|
ASN1_OCTET_STRING *data;
|
|
/* NID_pkcs7_signed */
|
|
/* NID_pkcs7_signed */
|
|
- PKCS7_SIGNED *sign;
|
|
|
|
|
|
+ PKCS7_SIGNED *sign; /* field name 'signed' would clash with C keyword */
|
|
/* NID_pkcs7_enveloped */
|
|
/* NID_pkcs7_enveloped */
|
|
PKCS7_ENVELOPE *enveloped;
|
|
PKCS7_ENVELOPE *enveloped;
|
|
/* NID_pkcs7_signedAndEnveloped */
|
|
/* NID_pkcs7_signedAndEnveloped */
|
|
@@ -273,8 +273,8 @@ int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
|
|
const EVP_MD *dgst);
|
|
const EVP_MD *dgst);
|
|
int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si);
|
|
int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si);
|
|
int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i);
|
|
int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i);
|
|
-int PKCS7_add_certificate(PKCS7 *p7, X509 *x509);
|
|
|
|
-int PKCS7_add_crl(PKCS7 *p7, X509_CRL *x509);
|
|
|
|
|
|
+int PKCS7_add_certificate(PKCS7 *p7, X509 *cert);
|
|
|
|
+int PKCS7_add_crl(PKCS7 *p7, X509_CRL *crl);
|
|
int PKCS7_content_new(PKCS7 *p7, int nid);
|
|
int PKCS7_content_new(PKCS7 *p7, int nid);
|
|
int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx,
|
|
int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx,
|
|
BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);
|
|
BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);
|