diff options
| author | beck <> | 2018-11-10 00:18:25 +0000 |
|---|---|---|
| committer | beck <> | 2018-11-10 00:18:25 +0000 |
| commit | c2dfd9af8a8124c8a2287db5eb2053c1cfe8ae7c (patch) | |
| tree | f837d2d044e64c663dac049c2299d0c7caaa7ac0 /src/regress/lib | |
| parent | 6c52b117b40754f6cc961ad9d056ab527d1abe75 (diff) | |
| download | openbsd-c2dfd9af8a8124c8a2287db5eb2053c1cfe8ae7c.tar.gz openbsd-c2dfd9af8a8124c8a2287db5eb2053c1cfe8ae7c.tar.bz2 openbsd-c2dfd9af8a8124c8a2287db5eb2053c1cfe8ae7c.zip | |
Fix last of the empty hash nonsense
ok jsing@
Diffstat (limited to 'src/regress/lib')
| -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 | ||
