summaryrefslogtreecommitdiff
path: root/ssl/s3_msg.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-08-19 16:54:09 +0100
committerMatt Caswell <matt@openssl.org>2022-09-23 14:43:24 +0100
commit2b71b042202d11854801682d48ccf4e4e34cd5cf (patch)
tree058aca485755d1945564780dea3f8fc8e17c2f3f /ssl/s3_msg.c
parenta566864b607317fc95cbe190bbf0b8b928fcfa77 (diff)
downloadopenssl-new-2b71b042202d11854801682d48ccf4e4e34cd5cf.tar.gz
Create the write record layer method and object and use it
Make sure we set the write record layer method and create the object where appropriate. Move the newly restructured writing code into the record layer object. For now we are cheating and still accessing the underlying SSL_CONNECTION object. This will be removed in subsequent commits. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19198)
Diffstat (limited to 'ssl/s3_msg.c')
-rw-r--r--ssl/s3_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_msg.c b/ssl/s3_msg.c
index 749c93e16d..06acc0b466 100644
--- a/ssl/s3_msg.c
+++ b/ssl/s3_msg.c
@@ -95,7 +95,7 @@ int ssl3_dispatch_alert(SSL *s)
if (RECORD_LAYER_write_pending(&sc->rlayer))
return -1;
- i = tls_write_records(sc, &templ, 1);
+ i = sc->rlayer.wrlmethod->write_records(sc->rlayer.wrl, &templ, 1);
if (i <= 0) {
sc->s3.alert_dispatch = 1;
} else {