From 25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 19 Jun 2021 16:52:47 +0000 Subject: Provide the ability to set the initial DTLS epoch value. This allows for regress to test edge cases for epoch handling. ok tb@ --- src/lib/libssl/ssl_lib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/libssl/ssl_lib.c') diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 8aa774a241..dd46bf9423 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.260 2021/06/11 11:13:53 jsing Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.261 2021/06/19 16:52:47 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -253,6 +253,9 @@ SSL_new(SSL_CTX *ctx) if ((s->internal = calloc(1, sizeof(*s->internal))) == NULL) goto err; + if ((s->internal->rl = tls12_record_layer_new()) == NULL) + goto err; + s->internal->min_tls_version = ctx->internal->min_tls_version; s->internal->max_tls_version = ctx->internal->max_tls_version; s->internal->min_proto_version = ctx->internal->min_proto_version; @@ -342,9 +345,6 @@ SSL_new(SSL_CTX *ctx) if (!s->method->internal->ssl_new(s)) goto err; - if ((s->internal->rl = tls12_record_layer_new()) == NULL) - goto err; - s->references = 1; s->server = ctx->method->internal->server; -- cgit v1.2.3-55-g6feb