diff options
author | tb <> | 2023-05-02 09:30:37 +0000 |
---|---|---|
committer | tb <> | 2023-05-02 09:30:37 +0000 |
commit | 6f68fc5fcaf9afb5a9a86b2f9853fbafdbed4a8f (patch) | |
tree | 19560aa9625d49be457cd28386b268e820a2f8ec /src | |
parent | 128b7e5f0da8ee7fefcb9549dbaa3624cf6cfda0 (diff) | |
download | openbsd-6f68fc5fcaf9afb5a9a86b2f9853fbafdbed4a8f.tar.gz openbsd-6f68fc5fcaf9afb5a9a86b2f9853fbafdbed4a8f.tar.bz2 openbsd-6f68fc5fcaf9afb5a9a86b2f9853fbafdbed4a8f.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.
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/bio/bio_asn1.c | 6 |
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) { |