summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/bio_ndef.c
diff options
context:
space:
mode:
authortb <>2023-07-28 09:58:30 +0000
committertb <>2023-07-28 09:58:30 +0000
commit01880b11cac352ccba5d827f27af88f31718069a (patch)
treea8ef39245b59cd5d4747a1efefdf2919068bb6e3 /src/lib/libcrypto/asn1/bio_ndef.c
parentb5382a6334a2ec0fe73ab6c49ebefb47af93329c (diff)
downloadopenbsd-01880b11cac352ccba5d827f27af88f31718069a.tar.gz
openbsd-01880b11cac352ccba5d827f27af88f31718069a.tar.bz2
openbsd-01880b11cac352ccba5d827f27af88f31718069a.zip
Make ASN.1 BIO internal
With every bump we can remove a bit more of the ASN.1 BIO and the streaming interface. At some point enough will be internal so that we can rewrite it and bring it in a shape where mere mortals can follow all the twists and turns. This is the next step: BIO_f_asn1(3) goes away and takes BIO_asn1_{get,set}_{prefix,suffix}() with it, a bunch of functions helping along in a write-after-free recently. The getters go away, the setters stay for now. ok jsing
Diffstat (limited to 'src/lib/libcrypto/asn1/bio_ndef.c')
-rw-r--r--src/lib/libcrypto/asn1/bio_ndef.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/bio_ndef.c b/src/lib/libcrypto/asn1/bio_ndef.c
index 11e51edade..98bb1cd197 100644
--- a/src/lib/libcrypto/asn1/bio_ndef.c
+++ b/src/lib/libcrypto/asn1/bio_ndef.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_ndef.c,v 1.23 2023/07/09 19:22:43 tb Exp $ */ 1/* $OpenBSD: bio_ndef.c,v 1.24 2023/07/28 09:58:30 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -61,6 +61,9 @@
61 61
62#include "asn1_local.h" 62#include "asn1_local.h"
63 63
64int BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix, asn1_ps_func *prefix_free);
65int BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix, asn1_ps_func *suffix_free);
66
64/* Experimental NDEF ASN1 BIO support routines */ 67/* Experimental NDEF ASN1 BIO support routines */
65 68
66/* The usage is quite simple, initialize an ASN1 structure, 69/* The usage is quite simple, initialize an ASN1 structure,