summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2023-01-09 18:39:50 +0100
committerTomas Mraz <tomas@openssl.org>2023-01-27 16:11:38 +0100
commit3a857b9532169b1ffaa739ba29cd67a5d93cbe8a (patch)
treec335a84a2b4a7f99c35a6e8b78ecdc2fe2f15558 /include
parent6e193d4d03f6c7bdf95e82e226c5fccbd67562f2 (diff)
Implement BIO_s_dgram_mem() reusing the BIO_s_dgram_pair() code
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20012)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/bio.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/bio.h.in b/include/openssl/bio.h.in
index 037f1ed3ff..91d3f8e41c 100644
--- a/include/openssl/bio.h.in
+++ b/include/openssl/bio.h.in
@@ -69,6 +69,7 @@ extern "C" {
# endif
# define BIO_TYPE_CORE_TO_PROV (25|BIO_TYPE_SOURCE_SINK)
# define BIO_TYPE_DGRAM_PAIR (26|BIO_TYPE_SOURCE_SINK)
+# define BIO_TYPE_DGRAM_MEM (27|BIO_TYPE_SOURCE_SINK)
#define BIO_TYPE_START 128
@@ -730,7 +731,9 @@ int BIO_nwrite0(BIO *bio, char **buf);
int BIO_nwrite(BIO *bio, char **buf, int num);
const BIO_METHOD *BIO_s_mem(void);
+# ifndef OPENSSL_NO_DGRAM
const BIO_METHOD *BIO_s_dgram_mem(void);
+# endif
const BIO_METHOD *BIO_s_secmem(void);
BIO *BIO_new_mem_buf(const void *buf, int len);
# ifndef OPENSSL_NO_SOCK