diff options
author | Matt Caswell <matt@openssl.org> | 2022-06-16 16:08:37 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2022-07-28 08:06:52 +0100 |
commit | 5a4ba72f00f9b336a4d65abff822699ceb9617c6 (patch) | |
tree | 0182c29aa292abc6a13a70ab8b86a615dda05d40 /include | |
parent | 08c00377cb82f7eefcf7433606e687f348b9e7a0 (diff) |
Give BIO_s_mem() the ability to support datagrams
We introduce a new BIO ctrl that switches a BIO_s_mem() into datagram
mode. Packet boundaries are respected.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18596)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/bio.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/bio.h.in b/include/openssl/bio.h.in index 46697ce3d7..1de1790ba7 100644 --- a/include/openssl/bio.h.in +++ b/include/openssl/bio.h.in @@ -649,6 +649,7 @@ int BIO_nwrite0(BIO *bio, char **buf); int BIO_nwrite(BIO *bio, char **buf, int num); const BIO_METHOD *BIO_s_mem(void); +const BIO_METHOD *BIO_s_dgram_mem(void); const BIO_METHOD *BIO_s_secmem(void); BIO *BIO_new_mem_buf(const void *buf, int len); # ifndef OPENSSL_NO_SOCK |