summaryrefslogtreecommitdiffstats
path: root/ssl
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 /ssl
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 'ssl')
-rw-r--r--ssl/record/rec_layer_s3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c
index fadac90e52..220ff3fcf1 100644
--- a/ssl/record/rec_layer_s3.c
+++ b/ssl/record/rec_layer_s3.c
@@ -1292,9 +1292,11 @@ int ssl_set_new_record_layer(SSL_CONNECTION *s, int version,
&& level != OSSL_RECORD_PROTECTION_LEVEL_NONE)
epoch = DTLS_RECORD_LAYER_get_r_epoch(&s->rlayer) + 1; /* new epoch */
+#ifndef OPENSSL_NO_DGRAM
if (SSL_CONNECTION_IS_DTLS(s))
next = BIO_new(BIO_s_dgram_mem());
else
+#endif
next = BIO_new(BIO_s_mem());
if (next == NULL) {