diff options
author | jsing <> | 2021-06-19 16:52:47 +0000 |
---|---|---|
committer | jsing <> | 2021-06-19 16:52:47 +0000 |
commit | 25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e (patch) | |
tree | 7d820c1c57ea372d0362ea2f1759e36cace4a21a /src/lib/libssl/ssl_lib.c | |
parent | 13bc1028f3bea79117c0675c4741f12c61a65586 (diff) | |
download | openbsd-25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e.tar.gz openbsd-25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e.tar.bz2 openbsd-25a25bb407e9ed4f33e3dd3ec0f0cf289c46ee5e.zip |
Provide the ability to set the initial DTLS epoch value.
This allows for regress to test edge cases for epoch handling.
ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.260 2021/06/11 11:13:53 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.261 2021/06/19 16:52:47 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -253,6 +253,9 @@ SSL_new(SSL_CTX *ctx) | |||
253 | if ((s->internal = calloc(1, sizeof(*s->internal))) == NULL) | 253 | if ((s->internal = calloc(1, sizeof(*s->internal))) == NULL) |
254 | goto err; | 254 | goto err; |
255 | 255 | ||
256 | if ((s->internal->rl = tls12_record_layer_new()) == NULL) | ||
257 | goto err; | ||
258 | |||
256 | s->internal->min_tls_version = ctx->internal->min_tls_version; | 259 | s->internal->min_tls_version = ctx->internal->min_tls_version; |
257 | s->internal->max_tls_version = ctx->internal->max_tls_version; | 260 | s->internal->max_tls_version = ctx->internal->max_tls_version; |
258 | s->internal->min_proto_version = ctx->internal->min_proto_version; | 261 | s->internal->min_proto_version = ctx->internal->min_proto_version; |
@@ -342,9 +345,6 @@ SSL_new(SSL_CTX *ctx) | |||
342 | if (!s->method->internal->ssl_new(s)) | 345 | if (!s->method->internal->ssl_new(s)) |
343 | goto err; | 346 | goto err; |
344 | 347 | ||
345 | if ((s->internal->rl = tls12_record_layer_new()) == NULL) | ||
346 | goto err; | ||
347 | |||
348 | s->references = 1; | 348 | s->references = 1; |
349 | s->server = ctx->method->internal->server; | 349 | s->server = ctx->method->internal->server; |
350 | 350 | ||