diff options
author | jsing <> | 2019-02-09 15:26:15 +0000 |
---|---|---|
committer | jsing <> | 2019-02-09 15:26:15 +0000 |
commit | 6535bd837c4df935c9b8881180e8dd93a83530dc (patch) | |
tree | ccde70d521f0e94dd1570fd0a07f27a5b4ca631e /src/lib/libssl/tls13_client.c | |
parent | 420e1203852fc99e786ceb80cff5559b6be38fbf (diff) | |
download | openbsd-6535bd837c4df935c9b8881180e8dd93a83530dc.tar.gz openbsd-6535bd837c4df935c9b8881180e8dd93a83530dc.tar.bz2 openbsd-6535bd837c4df935c9b8881180e8dd93a83530dc.zip |
Rename tls1_handshake_hash*() to tls1_transcript_hash*().
While handshake hash is correct (in as far as it is a hash of handshake
messages), using tls1_transcript_hash*() aligns them with the naming of the
tls1_transcript*() functions. Additionally, the TLSv1.3 specification uses
Transcript-Hash and "transcript hash", which this matches.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_client.c')
-rw-r--r-- | src/lib/libssl/tls13_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_client.c b/src/lib/libssl/tls13_client.c index df9b91b202..6578438c78 100644 --- a/src/lib/libssl/tls13_client.c +++ b/src/lib/libssl/tls13_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_client.c,v 1.4 2019/02/09 15:20:05 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_client.c,v 1.5 2019/02/09 15:26:15 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -288,9 +288,9 @@ tls13_server_hello_recv(struct tls13_ctx *ctx) | |||
288 | S3I(ctx->ssl)->hs_tls13.secrets = secrets; | 288 | S3I(ctx->ssl)->hs_tls13.secrets = secrets; |
289 | 289 | ||
290 | /* XXX - pass in hash. */ | 290 | /* XXX - pass in hash. */ |
291 | if (!tls1_handshake_hash_init(s)) | 291 | if (!tls1_transcript_hash_init(s)) |
292 | goto err; | 292 | goto err; |
293 | if (!tls1_handshake_hash_value(s, buf, sizeof(buf), &hash_len)) | 293 | if (!tls1_transcript_hash_value(s, buf, sizeof(buf), &hash_len)) |
294 | goto err; | 294 | goto err; |
295 | context.data = buf; | 295 | context.data = buf; |
296 | context.len = hash_len; | 296 | context.len = hash_len; |