diff options
| author | tb <> | 2023-07-28 09:58:30 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-28 09:58:30 +0000 |
| commit | 01880b11cac352ccba5d827f27af88f31718069a (patch) | |
| tree | a8ef39245b59cd5d4747a1efefdf2919068bb6e3 /src/lib/libcrypto/bio/bio.h | |
| parent | b5382a6334a2ec0fe73ab6c49ebefb47af93329c (diff) | |
| download | openbsd-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/bio/bio.h')
| -rw-r--r-- | src/lib/libcrypto/bio/bio.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index 124690b1ee..8450780f69 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bio.h,v 1.58 2023/07/05 19:25:01 tb Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.59 2023/07/28 09:58:30 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -371,11 +371,6 @@ int BIO_meth_set_callback_ctrl(BIO_METHOD *biom, | |||
| 371 | #define BIO_C_RESET_READ_REQUEST 147 | 371 | #define BIO_C_RESET_READ_REQUEST 147 |
| 372 | #define BIO_C_SET_MD_CTX 148 | 372 | #define BIO_C_SET_MD_CTX 148 |
| 373 | 373 | ||
| 374 | #define BIO_C_SET_PREFIX 149 | ||
| 375 | #define BIO_C_GET_PREFIX 150 | ||
| 376 | #define BIO_C_SET_SUFFIX 151 | ||
| 377 | #define BIO_C_GET_SUFFIX 152 | ||
| 378 | |||
| 379 | #define BIO_C_SET_EX_ARG 153 | 374 | #define BIO_C_SET_EX_ARG 153 |
| 380 | #define BIO_C_GET_EX_ARG 154 | 375 | #define BIO_C_GET_EX_ARG 154 |
| 381 | 376 | ||
| @@ -535,16 +530,6 @@ CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); | |||
| 535 | unsigned long BIO_number_read(BIO *bio); | 530 | unsigned long BIO_number_read(BIO *bio); |
| 536 | unsigned long BIO_number_written(BIO *bio); | 531 | unsigned long BIO_number_written(BIO *bio); |
| 537 | 532 | ||
| 538 | /* For BIO_f_asn1() */ | ||
| 539 | int BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix, | ||
| 540 | asn1_ps_func *prefix_free); | ||
| 541 | int BIO_asn1_get_prefix(BIO *b, asn1_ps_func **pprefix, | ||
| 542 | asn1_ps_func **pprefix_free); | ||
| 543 | int BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix, | ||
| 544 | asn1_ps_func *suffix_free); | ||
| 545 | int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, | ||
| 546 | asn1_ps_func **psuffix_free); | ||
| 547 | |||
| 548 | int BIO_get_new_index(void); | 533 | int BIO_get_new_index(void); |
| 549 | const BIO_METHOD *BIO_s_file(void); | 534 | const BIO_METHOD *BIO_s_file(void); |
| 550 | BIO *BIO_new_file(const char *filename, const char *mode); | 535 | BIO *BIO_new_file(const char *filename, const char *mode); |
