diff options
author | djm <> | 2012-10-13 21:23:50 +0000 |
---|---|---|
committer | djm <> | 2012-10-13 21:23:50 +0000 |
commit | d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df (patch) | |
tree | 10ebe51c3542099b0ab8325d8f322372375dc3b4 /src/lib/libcrypto/cms/cms_lcl.h | |
parent | bc685bd401e5657f7fb51b4e1a62a7a5c5ea4098 (diff) | |
parent | 228cae30b117c2493f69ad3c195341cd6ec8d430 (diff) | |
download | openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.tar.gz openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.tar.bz2 openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.zip |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
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 | } |