diff options
author | Matt Caswell <matt@openssl.org> | 2023-09-21 11:59:58 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-09-25 07:46:45 +1000 |
commit | a18c9f80916134bd7122cc1ba204bb5cdca752a3 (patch) | |
tree | da986fec6d29e13a89e454454150f86099b293e7 /include | |
parent | 442d08f215c48896f59e9c09a14773058f9e56bf (diff) |
Implement a public BIO_ADDR_copy() function
We already have BIO_ADDR_dup() but in some contexts that is not sufficent.
We implement BIO_ADDR_copy() and make BIO_ADDR_dup() use it.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22164)
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 8aad141446..c534dcd76c 100644 --- a/include/openssl/bio.h.in +++ b/include/openssl/bio.h.in @@ -806,6 +806,7 @@ int BIO_hex_string(BIO *out, int indent, int width, const void *data, # ifndef OPENSSL_NO_SOCK BIO_ADDR *BIO_ADDR_new(void); +int BIO_ADDR_copy(BIO_ADDR *dst, const BIO_ADDR *src); BIO_ADDR *BIO_ADDR_dup(const BIO_ADDR *ap); int BIO_ADDR_rawmake(BIO_ADDR *ap, int family, const void *where, size_t wherelen, unsigned short port); |