diff options
| author | jsing <> | 2019-08-11 10:15:30 +0000 |
|---|---|---|
| committer | jsing <> | 2019-08-11 10:15:30 +0000 |
| commit | 60fde5b08bfa39912d4423961b374ab94e5c325e (patch) | |
| tree | a038b26f2da29ed31383201d4852270882e9961e /src/lib/libcrypto/cms/cms_lcl.h | |
| parent | 162996edf50591f53ad0e453ec26c6a86c385659 (diff) | |
| download | openbsd-60fde5b08bfa39912d4423961b374ab94e5c325e.tar.gz openbsd-60fde5b08bfa39912d4423961b374ab94e5c325e.tar.bz2 openbsd-60fde5b08bfa39912d4423961b374ab94e5c325e.zip | |
Expand ASN.1 macros.
Diffstat (limited to 'src/lib/libcrypto/cms/cms_lcl.h')
| -rw-r--r-- | src/lib/libcrypto/cms/cms_lcl.h | 55 |
1 files changed, 30 insertions, 25 deletions
diff --git a/src/lib/libcrypto/cms/cms_lcl.h b/src/lib/libcrypto/cms/cms_lcl.h index 6504ee31a1..b46290af3e 100644 --- a/src/lib/libcrypto/cms/cms_lcl.h +++ b/src/lib/libcrypto/cms/cms_lcl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: cms_lcl.h,v 1.9 2019/08/11 08:15:27 jsing Exp $ */ | 1 | /* $OpenBSD: cms_lcl.h,v 1.10 2019/08/11 10:15:30 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 4 | * project. | 4 | * project. |
| @@ -386,14 +386,19 @@ struct CMS_Receipt_st { | |||
| 386 | ASN1_OCTET_STRING *originatorSignatureValue; | 386 | ASN1_OCTET_STRING *originatorSignatureValue; |
| 387 | }; | 387 | }; |
| 388 | 388 | ||
| 389 | DECLARE_ASN1_FUNCTIONS(CMS_ContentInfo) | 389 | CMS_ContentInfo *CMS_ContentInfo_new(void); |
| 390 | DECLARE_ASN1_ITEM(CMS_SignerInfo) | 390 | void CMS_ContentInfo_free(CMS_ContentInfo *a); |
| 391 | DECLARE_ASN1_ITEM(CMS_IssuerAndSerialNumber) | 391 | CMS_ContentInfo *d2i_CMS_ContentInfo(CMS_ContentInfo **a, const unsigned char **in, long len); |
| 392 | DECLARE_ASN1_ITEM(CMS_Attributes_Sign) | 392 | int i2d_CMS_ContentInfo(CMS_ContentInfo *a, unsigned char **out); |
| 393 | DECLARE_ASN1_ITEM(CMS_Attributes_Verify) | 393 | extern const ASN1_ITEM CMS_ContentInfo_it; |
| 394 | DECLARE_ASN1_ITEM(CMS_RecipientInfo) | 394 | extern const ASN1_ITEM CMS_SignerInfo_it; |
| 395 | DECLARE_ASN1_ITEM(CMS_PasswordRecipientInfo) | 395 | extern const ASN1_ITEM CMS_IssuerAndSerialNumber_it; |
| 396 | DECLARE_ASN1_ALLOC_FUNCTIONS(CMS_IssuerAndSerialNumber) | 396 | extern const ASN1_ITEM CMS_Attributes_Sign_it; |
| 397 | extern const ASN1_ITEM CMS_Attributes_Verify_it; | ||
| 398 | extern const ASN1_ITEM CMS_RecipientInfo_it; | ||
| 399 | extern const ASN1_ITEM CMS_PasswordRecipientInfo_it; | ||
| 400 | CMS_IssuerAndSerialNumber *CMS_IssuerAndSerialNumber_new(void); | ||
| 401 | void CMS_IssuerAndSerialNumber_free(CMS_IssuerAndSerialNumber *a); | ||
| 397 | 402 | ||
| 398 | #define CMS_SIGNERINFO_ISSUER_SERIAL 0 | 403 | #define CMS_SIGNERINFO_ISSUER_SERIAL 0 |
| 399 | #define CMS_SIGNERINFO_KEYIDENTIFIER 1 | 404 | #define CMS_SIGNERINFO_KEYIDENTIFIER 1 |
| @@ -457,21 +462,21 @@ int cms_RecipientInfo_kari_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri); | |||
| 457 | int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, | 462 | int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, |
| 458 | int en_de); | 463 | int en_de); |
| 459 | 464 | ||
| 460 | DECLARE_ASN1_ITEM(CMS_CertificateChoices) | 465 | extern const ASN1_ITEM CMS_CertificateChoices_it; |
| 461 | DECLARE_ASN1_ITEM(CMS_DigestedData) | 466 | extern const ASN1_ITEM CMS_DigestedData_it; |
| 462 | DECLARE_ASN1_ITEM(CMS_EncryptedData) | 467 | extern const ASN1_ITEM CMS_EncryptedData_it; |
| 463 | DECLARE_ASN1_ITEM(CMS_EnvelopedData) | 468 | extern const ASN1_ITEM CMS_EnvelopedData_it; |
| 464 | DECLARE_ASN1_ITEM(CMS_KEKRecipientInfo) | 469 | extern const ASN1_ITEM CMS_KEKRecipientInfo_it; |
| 465 | DECLARE_ASN1_ITEM(CMS_KeyAgreeRecipientInfo) | 470 | extern const ASN1_ITEM CMS_KeyAgreeRecipientInfo_it; |
| 466 | DECLARE_ASN1_ITEM(CMS_KeyTransRecipientInfo) | 471 | extern const ASN1_ITEM CMS_KeyTransRecipientInfo_it; |
| 467 | DECLARE_ASN1_ITEM(CMS_OriginatorPublicKey) | 472 | extern const ASN1_ITEM CMS_OriginatorPublicKey_it; |
| 468 | DECLARE_ASN1_ITEM(CMS_OtherKeyAttribute) | 473 | extern const ASN1_ITEM CMS_OtherKeyAttribute_it; |
| 469 | DECLARE_ASN1_ITEM(CMS_Receipt) | 474 | extern const ASN1_ITEM CMS_Receipt_it; |
| 470 | DECLARE_ASN1_ITEM(CMS_ReceiptRequest) | 475 | extern const ASN1_ITEM CMS_ReceiptRequest_it; |
| 471 | DECLARE_ASN1_ITEM(CMS_RecipientEncryptedKey) | 476 | extern const ASN1_ITEM CMS_RecipientEncryptedKey_it; |
| 472 | DECLARE_ASN1_ITEM(CMS_RecipientKeyIdentifier) | 477 | extern const ASN1_ITEM CMS_RecipientKeyIdentifier_it; |
| 473 | DECLARE_ASN1_ITEM(CMS_RevocationInfoChoice) | 478 | extern const ASN1_ITEM CMS_RevocationInfoChoice_it; |
| 474 | DECLARE_ASN1_ITEM(CMS_SignedData) | 479 | extern const ASN1_ITEM CMS_SignedData_it; |
| 475 | DECLARE_ASN1_ITEM(CMS_CompressedData) | 480 | extern const ASN1_ITEM CMS_CompressedData_it; |
| 476 | 481 | ||
| 477 | #endif | 482 | #endif |
