diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms_cd.c')
| -rw-r--r-- | src/lib/libcrypto/cms/cms_cd.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cms/cms_cd.c b/src/lib/libcrypto/cms/cms_cd.c index 55fff110d1..e3e9f78e5b 100644 --- a/src/lib/libcrypto/cms/cms_cd.c +++ b/src/lib/libcrypto/cms/cms_cd.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: cms_cd.c,v 1.12 2019/08/10 16:42:20 jsing Exp $ */ | 1 | /* $OpenBSD: cms_cd.c,v 1.13 2019/08/10 18:15:52 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. |
| @@ -66,10 +66,12 @@ | |||
| 66 | 66 | ||
| 67 | /* CMS CompressedData Utilities */ | 67 | /* CMS CompressedData Utilities */ |
| 68 | 68 | ||
| 69 | CMS_ContentInfo *cms_CompressedData_create(int comp_nid) | 69 | CMS_ContentInfo * |
| 70 | cms_CompressedData_create(int comp_nid) | ||
| 70 | { | 71 | { |
| 71 | CMS_ContentInfo *cms; | 72 | CMS_ContentInfo *cms; |
| 72 | CMS_CompressedData *cd; | 73 | CMS_CompressedData *cd; |
| 74 | |||
| 73 | /* | 75 | /* |
| 74 | * Will need something cleverer if there is ever more than one | 76 | * Will need something cleverer if there is ever more than one |
| 75 | * compression algorithm or parameters have some meaning... | 77 | * compression algorithm or parameters have some meaning... |
| @@ -105,10 +107,12 @@ CMS_ContentInfo *cms_CompressedData_create(int comp_nid) | |||
| 105 | return NULL; | 107 | return NULL; |
| 106 | } | 108 | } |
| 107 | 109 | ||
| 108 | BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms) | 110 | BIO * |
| 111 | cms_CompressedData_init_bio(CMS_ContentInfo *cms) | ||
| 109 | { | 112 | { |
| 110 | CMS_CompressedData *cd; | 113 | CMS_CompressedData *cd; |
| 111 | const ASN1_OBJECT *compoid; | 114 | const ASN1_OBJECT *compoid; |
| 115 | |||
| 112 | if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_compressedData) { | 116 | if (OBJ_obj2nid(cms->contentType) != NID_id_smime_ct_compressedData) { |
| 113 | CMSerr(CMS_F_CMS_COMPRESSEDDATA_INIT_BIO, | 117 | CMSerr(CMS_F_CMS_COMPRESSEDDATA_INIT_BIO, |
| 114 | CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA); | 118 | CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA); |
