diff options
Diffstat (limited to 'src/regress')
-rw-r--r-- | src/regress/lib/libssl/key_schedule/key_schedule.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/regress/lib/libssl/key_schedule/key_schedule.c b/src/regress/lib/libssl/key_schedule/key_schedule.c index 36211644fc..1db9214939 100644 --- a/src/regress/lib/libssl/key_schedule/key_schedule.c +++ b/src/regress/lib/libssl/key_schedule/key_schedule.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key_schedule.c,v 1.2 2018/11/09 23:57:19 jsing Exp $ */ | 1 | /* $OpenBSD: key_schedule.c,v 1.3 2018/11/10 00:18:25 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -160,13 +160,10 @@ int main () { | |||
160 | if (tls13_derive_handshake_secrets(secrets, ecdhe, 32, &cshello_hash)) | 160 | if (tls13_derive_handshake_secrets(secrets, ecdhe, 32, &cshello_hash)) |
161 | FAIL("derive_handshake_secrets worked when it shouldn't(2)\n"); | 161 | FAIL("derive_handshake_secrets worked when it shouldn't(2)\n"); |
162 | 162 | ||
163 | /* XXX XXX this should get fixed when test vectors clarified */ | ||
164 | memcpy(secrets->derived_handshake.data, expected_derived_handshake, | ||
165 | 32); | ||
166 | /* XXX fix hash here once test vector sorted */ | 163 | /* XXX fix hash here once test vector sorted */ |
167 | if (!tls13_derive_application_secrets(secrets, &chello_hash)) | 164 | if (!tls13_derive_application_secrets(secrets, &cshello_hash)) |
168 | FAIL("derive_application_secrets failed\n"); | 165 | FAIL("derive_application_secrets failed\n"); |
169 | if (tls13_derive_application_secrets(secrets, &chello_hash)) | 166 | if (tls13_derive_application_secrets(secrets, &cshello_hash)) |
170 | FAIL("derive_application_secrets worked when it " | 167 | FAIL("derive_application_secrets worked when it " |
171 | "shouldn't(2)\n"); | 168 | "shouldn't(2)\n"); |
172 | 169 | ||