diff options
author | 2020-03-10 17:23:25 +0000 | |
---|---|---|
committer | 2020-03-10 17:23:25 +0000 | |
commit | 9b8b9b48da7c020564e84d392bed055d393b7a23 (patch) | |
tree | b3fed56882e56ffe753b1d367d60395649cdee70 | |
parent | Update to follow handshake enum removal. (diff) | |
download | wireguard-openbsd-9b8b9b48da7c020564e84d392bed055d393b7a23.tar.xz wireguard-openbsd-9b8b9b48da7c020564e84d392bed055d393b7a23.zip |
Use ctx->hs->secrets rather than the S3I(s) version.
ok inoguchi@ tb@
-rw-r--r-- | lib/libssl/tls13_client.c | 4 | ||||
-rw-r--r-- | lib/libssl/tls13_server.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/tls13_client.c b/lib/libssl/tls13_client.c index 1c9debc4e5f..078730111ac 100644 --- a/lib/libssl/tls13_client.c +++ b/lib/libssl/tls13_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_client.c,v 1.45 2020/02/23 17:51:36 tb Exp $ */ +/* $OpenBSD: tls13_client.c,v 1.46 2020/03/10 17:23:25 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * @@ -471,7 +471,7 @@ tls13_client_engage_record_protection(struct tls13_ctx *ctx) if ((secrets = tls13_secrets_create(ctx->hash, 0)) == NULL) goto err; - S3I(ctx->ssl)->hs_tls13.secrets = secrets; + ctx->hs->secrets = secrets; /* XXX - pass in hash. */ if (!tls1_transcript_hash_init(s)) diff --git a/lib/libssl/tls13_server.c b/lib/libssl/tls13_server.c index edffd452390..3b170f93702 100644 --- a/lib/libssl/tls13_server.c +++ b/lib/libssl/tls13_server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_server.c,v 1.27 2020/03/10 17:15:02 jsing Exp $ */ +/* $OpenBSD: tls13_server.c,v 1.28 2020/03/10 17:23:25 jsing Exp $ */ /* * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org> * Copyright (c) 2020 Bob Beck <beck@openbsd.org> @@ -561,7 +561,7 @@ tls13_server_hello_sent(struct tls13_ctx *ctx) if ((secrets = tls13_secrets_create(ctx->hash, 0)) == NULL) goto err; - S3I(ctx->ssl)->hs_tls13.secrets = secrets; + ctx->hs->secrets = secrets; /* XXX - pass in hash. */ if (!tls1_transcript_hash_init(s)) |