diff options
author | djm@openbsd.org <djm@openbsd.org> | 2017-12-21 00:41:22 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-01-03 16:46:49 +1100 |
commit | e6c4134165d05447009437a96e7201276688807f (patch) | |
tree | 02e2e3332f8c14cbfca64fa655aa6aacc0b60951 /regress/unittests/sshkey/test_sshkey.c | |
parent | d45d69f2a937cea215c7f0424e5a4677b6d8c7fe (diff) |
upstream commit
unbreak unit tests after removal of src/usr.bin/ssh/lib
OpenBSD-Regress-ID: 3a79760494147b20761cbd2bd5c20e86c63dc8f9
Diffstat (limited to 'regress/unittests/sshkey/test_sshkey.c')
-rw-r--r-- | regress/unittests/sshkey/test_sshkey.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/unittests/sshkey/test_sshkey.c b/regress/unittests/sshkey/test_sshkey.c index 0a73322a3..1aa608f92 100644 --- a/regress/unittests/sshkey/test_sshkey.c +++ b/regress/unittests/sshkey/test_sshkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: test_sshkey.c,v 1.12 2017/05/08 06:08:42 djm Exp $ */ | 1 | /* $OpenBSD: test_sshkey.c,v 1.13 2017/12/21 00:41:22 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Regress test for sshkey.h key management API | 3 | * Regress test for sshkey.h key management API |
4 | * | 4 | * |
@@ -121,11 +121,11 @@ signature_test(struct sshkey *k, struct sshkey *bad, const char *sig_alg, | |||
121 | ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg, 0), 0); | 121 | ASSERT_INT_EQ(sshkey_sign(k, &sig, &len, d, l, sig_alg, 0), 0); |
122 | ASSERT_SIZE_T_GT(len, 8); | 122 | ASSERT_SIZE_T_GT(len, 8); |
123 | ASSERT_PTR_NE(sig, NULL); | 123 | ASSERT_PTR_NE(sig, NULL); |
124 | ASSERT_INT_EQ(sshkey_verify(k, sig, len, d, l, 0), 0); | 124 | ASSERT_INT_EQ(sshkey_verify(k, sig, len, d, l, NULL, 0), 0); |
125 | ASSERT_INT_NE(sshkey_verify(bad, sig, len, d, l, 0), 0); | 125 | ASSERT_INT_NE(sshkey_verify(bad, sig, len, d, l, NULL, 0), 0); |
126 | /* Fuzz test is more comprehensive, this is just a smoke test */ | 126 | /* Fuzz test is more comprehensive, this is just a smoke test */ |
127 | sig[len - 5] ^= 0x10; | 127 | sig[len - 5] ^= 0x10; |
128 | ASSERT_INT_NE(sshkey_verify(k, sig, len, d, l, 0), 0); | 128 | ASSERT_INT_NE(sshkey_verify(k, sig, len, d, l, NULL, 0), 0); |
129 | free(sig); | 129 | free(sig); |
130 | } | 130 | } |
131 | 131 | ||