summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_client.c
diff options
context:
space:
mode:
authorjsing <>2019-02-09 15:26:15 +0000
committerjsing <>2019-02-09 15:26:15 +0000
commitbf3fc1487ab4d49b366d075e6f48ee4eef2d29a4 (patch)
treeccde70d521f0e94dd1570fd0a07f27a5b4ca631e /src/lib/libssl/tls13_client.c
parent697813b6701818d308182e24502b82a16067be78 (diff)
downloadopenbsd-bf3fc1487ab4d49b366d075e6f48ee4eef2d29a4.tar.gz
openbsd-bf3fc1487ab4d49b366d075e6f48ee4eef2d29a4.tar.bz2
openbsd-bf3fc1487ab4d49b366d075e6f48ee4eef2d29a4.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.c6
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;