summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-05-02 09:30:37 +0000
committertb <>2023-05-02 09:30:37 +0000
commit7dcbcfdc4183fdf41b3942735f6642c8f001867f (patch)
tree19560aa9625d49be457cd28386b268e820a2f8ec
parent4008817a954adc114f9824d6b5080239c13cd1e0 (diff)
downloadopenbsd-7dcbcfdc4183fdf41b3942735f6642c8f001867f.tar.gz
openbsd-7dcbcfdc4183fdf41b3942735f6642c8f001867f.tar.bz2
openbsd-7dcbcfdc4183fdf41b3942735f6642c8f001867f.zip
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.
-rw-r--r--src/regress/lib/libcrypto/bio/bio_asn1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bio/bio_asn1.c b/src/regress/lib/libcrypto/bio/bio_asn1.c
index abb1642372..92a18d03ae 100644
--- a/src/regress/lib/libcrypto/bio/bio_asn1.c
+++ b/src/regress/lib/libcrypto/bio/bio_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_asn1.c,v 1.3 2023/04/25 19:48:24 tb Exp $ */ 1/* $OpenBSD: bio_asn1.c,v 1.4 2023/05/02 09:30:37 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
@@ -125,8 +125,8 @@ test_prefix_leak(void)
125 if ((bio_out = BIO_new(BIO_s_mem())) == NULL) 125 if ((bio_out = BIO_new(BIO_s_mem())) == NULL)
126 goto err; 126 goto err;
127 127
128 if (!i2d_ASN1_bio_stream(bio_out, (ASN1_VALUE *)pkcs7, bio_in, 128 if (!i2d_PKCS7_bio_stream(bio_out, pkcs7, bio_in,
129 SMIME_STREAM | SMIME_BINARY, &PKCS7_it)) 129 SMIME_STREAM | SMIME_BINARY))
130 goto err; 130 goto err;
131 131
132 if (set_me != 1) { 132 if (set_me != 1) {