Move BIO_new_PKCS7() to the the other streaming stuff in pk7_mime.c
authortb <tb@openbsd.org>
Wed, 26 Apr 2023 14:25:58 +0000 (14:25 +0000)
committertb <tb@openbsd.org>
Wed, 26 Apr 2023 14:25:58 +0000 (14:25 +0000)
lib/libcrypto/pkcs7/bio_pk7.c
lib/libcrypto/pkcs7/pk7_mime.c

index e452293..c321bda 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio_pk7.c,v 1.8 2023/04/25 19:08:30 tb Exp $ */
+/* $OpenBSD: bio_pk7.c,v 1.9 2023/04/26 14:25:58 tb Exp $ */
 /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
  * project.
  */
@@ -61,9 +61,3 @@
 #include "asn1_local.h"
 
 /* Streaming encode support for PKCS#7 */
-BIO *
-BIO_new_PKCS7(BIO *out, PKCS7 *p7)
-{
-       return BIO_new_NDEF(out, (ASN1_VALUE *)p7, &PKCS7_it);
-}
-LCRYPTO_ALIAS(BIO_new_PKCS7);
index cd723d7..68767db 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: pk7_mime.c,v 1.16 2023/04/25 19:08:30 tb Exp $ */
+/* $OpenBSD: pk7_mime.c,v 1.17 2023/04/26 14:25:58 tb Exp $ */
 /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
  * project.
  */
 #include "asn1_local.h"
 
 /* PKCS#7 wrappers round generalised stream and MIME routines */
+BIO *
+BIO_new_PKCS7(BIO *out, PKCS7 *p7)
+{
+       return BIO_new_NDEF(out, (ASN1_VALUE *)p7, &PKCS7_it);
+}
+LCRYPTO_ALIAS(BIO_new_PKCS7);
 
 int
 i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags)