summaryrefslogtreecommitdiff
path: root/regress/unittests
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-08-05 05:27:33 +0000
committerDamien Miller <djm@mindrot.org>2015-08-06 11:13:25 +1000
commitd85dad81778c1aa8106acd46930b25fdf0d15b2a (patch)
tree885260e84aaa1557920ea1120f601f40f3db7511 /regress/unittests
parent57e8e229bad5fe6056b5f1199665f5f7008192c6 (diff)
upstream commit
adjust for RSA minimum modulus switch; ok deraadt@ Upstream-Regress-ID: 5a72c83431b96224d583c573ca281cd3a3ebfdae
Diffstat (limited to 'regress/unittests')
-rw-r--r--regress/unittests/sshkey/test_sshkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/unittests/sshkey/test_sshkey.c b/regress/unittests/sshkey/test_sshkey.c
index f0ce38a4a..9b3ce7ee4 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.6 2015/07/07 14:53:30 markus Exp $ */ 1/* $OpenBSD: test_sshkey.c,v 1.7 2015/08/05 05:27:33 djm Exp $ */
2/* 2/*
3 * Regress test for sshkey.h key management API 3 * Regress test for sshkey.h key management API
4 * 4 *
@@ -288,7 +288,7 @@ sshkey_tests(void)
288#endif 288#endif
289 289
290 TEST_START("generate KEY_RSA"); 290 TEST_START("generate KEY_RSA");
291 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 768, &kr), 291 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 767, &kr),
292 SSH_ERR_INVALID_ARGUMENT); 292 SSH_ERR_INVALID_ARGUMENT);
293 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &kr), 0); 293 ASSERT_INT_EQ(sshkey_generate(KEY_RSA, 1024, &kr), 0);
294 ASSERT_PTR_NE(kr, NULL); 294 ASSERT_PTR_NE(kr, NULL);