From 845c6a739941c898352c860a83812b061e080c3f Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 2 May 2023 09:30:37 +0000 Subject: [PATCH] Simplify slightly and use i2d_PKCS7_bio_stream() This is a wrapper of i2d_ASN1_bio_stream() that doesn't require us to pass in PKCS7_it. --- regress/lib/libcrypto/bio/bio_asn1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/lib/libcrypto/bio/bio_asn1.c b/regress/lib/libcrypto/bio/bio_asn1.c index abb16423724..92a18d03ae3 100644 --- a/regress/lib/libcrypto/bio/bio_asn1.c +++ b/regress/lib/libcrypto/bio/bio_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio_asn1.c,v 1.3 2023/04/25 19:48:24 tb Exp $ */ +/* $OpenBSD: bio_asn1.c,v 1.4 2023/05/02 09:30:37 tb Exp $ */ /* * Copyright (c) 2023 Theo Buehler @@ -125,8 +125,8 @@ test_prefix_leak(void) if ((bio_out = BIO_new(BIO_s_mem())) == NULL) goto err; - if (!i2d_ASN1_bio_stream(bio_out, (ASN1_VALUE *)pkcs7, bio_in, - SMIME_STREAM | SMIME_BINARY, &PKCS7_it)) + if (!i2d_PKCS7_bio_stream(bio_out, pkcs7, bio_in, + SMIME_STREAM | SMIME_BINARY)) goto err; if (set_me != 1) { -- 2.20.1