diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms_lcl.h')
| -rw-r--r-- | src/lib/libcrypto/cms/cms_lcl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/libcrypto/cms/cms_lcl.h b/src/lib/libcrypto/cms/cms_lcl.h index c8ecfa724a..a9f9730157 100644 --- a/src/lib/libcrypto/cms/cms_lcl.h +++ b/src/lib/libcrypto/cms/cms_lcl.h | |||
| @@ -175,6 +175,8 @@ struct CMS_EncryptedContentInfo_st | |||
| 175 | const EVP_CIPHER *cipher; | 175 | const EVP_CIPHER *cipher; |
| 176 | unsigned char *key; | 176 | unsigned char *key; |
| 177 | size_t keylen; | 177 | size_t keylen; |
| 178 | /* Set to 1 if we are debugging decrypt and don't fake keys for MMA */ | ||
| 179 | int debug; | ||
| 178 | }; | 180 | }; |
| 179 | 181 | ||
| 180 | struct CMS_RecipientInfo_st | 182 | struct CMS_RecipientInfo_st |
| @@ -273,6 +275,9 @@ struct CMS_PasswordRecipientInfo_st | |||
| 273 | X509_ALGOR *keyDerivationAlgorithm; | 275 | X509_ALGOR *keyDerivationAlgorithm; |
| 274 | X509_ALGOR *keyEncryptionAlgorithm; | 276 | X509_ALGOR *keyEncryptionAlgorithm; |
| 275 | ASN1_OCTET_STRING *encryptedKey; | 277 | ASN1_OCTET_STRING *encryptedKey; |
| 278 | /* Extra info: password to use */ | ||
| 279 | unsigned char *pass; | ||
| 280 | size_t passlen; | ||
| 276 | }; | 281 | }; |
| 277 | 282 | ||
| 278 | struct CMS_OtherRecipientInfo_st | 283 | struct CMS_OtherRecipientInfo_st |
| @@ -411,6 +416,8 @@ DECLARE_ASN1_ITEM(CMS_SignerInfo) | |||
| 411 | DECLARE_ASN1_ITEM(CMS_IssuerAndSerialNumber) | 416 | DECLARE_ASN1_ITEM(CMS_IssuerAndSerialNumber) |
| 412 | DECLARE_ASN1_ITEM(CMS_Attributes_Sign) | 417 | DECLARE_ASN1_ITEM(CMS_Attributes_Sign) |
| 413 | DECLARE_ASN1_ITEM(CMS_Attributes_Verify) | 418 | DECLARE_ASN1_ITEM(CMS_Attributes_Verify) |
| 419 | DECLARE_ASN1_ITEM(CMS_RecipientInfo) | ||
| 420 | DECLARE_ASN1_ITEM(CMS_PasswordRecipientInfo) | ||
| 414 | DECLARE_ASN1_ALLOC_FUNCTIONS(CMS_IssuerAndSerialNumber) | 421 | DECLARE_ASN1_ALLOC_FUNCTIONS(CMS_IssuerAndSerialNumber) |
| 415 | 422 | ||
| 416 | #define CMS_SIGNERINFO_ISSUER_SERIAL 0 | 423 | #define CMS_SIGNERINFO_ISSUER_SERIAL 0 |
| @@ -454,6 +461,11 @@ int cms_msgSigDigest_add1(CMS_SignerInfo *dest, CMS_SignerInfo *src); | |||
| 454 | ASN1_OCTET_STRING *cms_encode_Receipt(CMS_SignerInfo *si); | 461 | ASN1_OCTET_STRING *cms_encode_Receipt(CMS_SignerInfo *si); |
| 455 | 462 | ||
| 456 | BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms); | 463 | BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms); |
| 464 | CMS_EnvelopedData *cms_get0_enveloped(CMS_ContentInfo *cms); | ||
| 465 | |||
| 466 | /* PWRI routines */ | ||
| 467 | int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, | ||
| 468 | int en_de); | ||
| 457 | 469 | ||
| 458 | #ifdef __cplusplus | 470 | #ifdef __cplusplus |
| 459 | } | 471 | } |
