summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/cms/cms_io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cms/cms_io.c b/src/lib/libcrypto/cms/cms_io.c
index 8a6b12e90f..b06a5047c8 100644
--- a/src/lib/libcrypto/cms/cms_io.c
+++ b/src/lib/libcrypto/cms/cms_io.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms_io.c,v 1.12 2022/11/26 16:08:51 tb Exp $ */ 1/* $OpenBSD: cms_io.c,v 1.13 2023/04/21 19:08:47 tb 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.
@@ -123,8 +123,7 @@ PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x)
123BIO * 123BIO *
124BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) 124BIO_new_CMS(BIO *out, CMS_ContentInfo *cms)
125{ 125{
126 return BIO_new_NDEF(out, (ASN1_VALUE *)cms, 126 return BIO_new_NDEF(out, (ASN1_VALUE *)cms, &CMS_ContentInfo_it);
127 &CMS_ContentInfo_it);
128} 127}
129 128
130/* CMS wrappers round generalised stream and MIME routines */ 129/* CMS wrappers round generalised stream and MIME routines */