diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-05-01 04:03:14 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-05-04 18:42:13 +1000 |
commit | 4da393f87cd52d788c84112ee3f2191c9bcaaf30 (patch) | |
tree | 5c5d9d382cfd9e6f7cbb6f6f751662569e0ff664 /regress/unittests/sshkey | |
parent | 15bfafc1db4c8792265ada9623a96f387990f732 (diff) |
upstream: sure enough, some of the test data that we though were in
new format were actually in the old format; fix from Michael Forney
OpenBSD-Regress-ID: a41a5c43a61b0f0b1691994dbf16dfb88e8af933
Diffstat (limited to 'regress/unittests/sshkey')
-rwxr-xr-x | regress/unittests/sshkey/mktestdata.sh | 6 | ||||
-rw-r--r-- | regress/unittests/sshkey/testdata/dsa_n | 33 | ||||
-rw-r--r-- | regress/unittests/sshkey/testdata/ecdsa_n | 13 | ||||
-rw-r--r-- | regress/unittests/sshkey/testdata/rsa_n | 31 |
4 files changed, 50 insertions, 33 deletions
diff --git a/regress/unittests/sshkey/mktestdata.sh b/regress/unittests/sshkey/mktestdata.sh index c2fc5fa2e..8efe6dd03 100755 --- a/regress/unittests/sshkey/mktestdata.sh +++ b/regress/unittests/sshkey/mktestdata.sh | |||
@@ -1,5 +1,5 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # $OpenBSD: mktestdata.sh,v 1.9 2020/05/01 04:00:29 djm Exp $ | 2 | # $OpenBSD: mktestdata.sh,v 1.10 2020/05/01 04:03:14 djm Exp $ |
3 | 3 | ||
4 | PW=mekmitasdigoat | 4 | PW=mekmitasdigoat |
5 | 5 | ||
@@ -91,6 +91,10 @@ cp rsa_1 rsa_n | |||
91 | cp dsa_1 dsa_n | 91 | cp dsa_1 dsa_n |
92 | cp ecdsa_1 ecdsa_n | 92 | cp ecdsa_1 ecdsa_n |
93 | 93 | ||
94 | ssh-keygen -pf rsa_n -N "" | ||
95 | ssh-keygen -pf dsa_n -N "" | ||
96 | ssh-keygen -pf ecdsa_n -N "" | ||
97 | |||
94 | cp rsa_1 rsa_1_pw | 98 | cp rsa_1 rsa_1_pw |
95 | cp dsa_1 dsa_1_pw | 99 | cp dsa_1 dsa_1_pw |
96 | cp ecdsa_1 ecdsa_1_pw | 100 | cp ecdsa_1 ecdsa_1_pw |
diff --git a/regress/unittests/sshkey/testdata/dsa_n b/regress/unittests/sshkey/testdata/dsa_n index d3f24824f..657624e0e 100644 --- a/regress/unittests/sshkey/testdata/dsa_n +++ b/regress/unittests/sshkey/testdata/dsa_n | |||
@@ -1,12 +1,21 @@ | |||
1 | -----BEGIN DSA PRIVATE KEY----- | 1 | -----BEGIN OPENSSH PRIVATE KEY----- |
2 | MIIBvAIBAAKBgQD6kutNFRsHTwEAv6d39Lhsqy1apdHBZ9c2HfyRr7WmypyGIy2m | 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABswAAAAdzc2gtZH |
3 | Ka43vzXI8CNwmRSYs+A6d0vJC7Pl+f9QzJ/04NWOA+MiwfurwrR3CRe61QRYb8Py | 3 | NzAAAAgQD6kutNFRsHTwEAv6d39Lhsqy1apdHBZ9c2HfyRr7WmypyGIy2mKa43vzXI8CNw |
4 | mcHOxueHs95IcjrbIPNn86cjnPP5qvv/guUzCjuww4zBdJOXpligrGt2XwIVAKMD | 4 | mRSYs+A6d0vJC7Pl+f9QzJ/04NWOA+MiwfurwrR3CRe61QRYb8PymcHOxueHs95IcjrbIP |
5 | /50qQy7j8JaMk+1+Xtg1pK01AoGBAO7l9QVVbSSoy5lq6cOtvpf8UlwOa6+zBwbl | 5 | Nn86cjnPP5qvv/guUzCjuww4zBdJOXpligrGt2XwAAABUAowP/nSpDLuPwloyT7X5e2DWk |
6 | o4gmFd1RwX1yWkA8kQ7RrhCSg8Hc6mIGnKRgKRli/3LgbSfZ0obFJehkRtEWtN4P | 6 | rTUAAACBAO7l9QVVbSSoy5lq6cOtvpf8UlwOa6+zBwblo4gmFd1RwX1yWkA8kQ7Rrh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1V3rjqYqhjOoz/yNsgzLN | ||
17 | D26HrdAAAAgQDnV6cn5qGxAWjqmQLr4I9T9LoYxtj99VH7q79thVjwVNwPaq5MWzl8BNC8 | ||
18 | L4wr67EFf5a2ISc/7YsrONFXmobpVmROUgBzFxiH/eS4i0oGlzI5KO46KLfiyvOJbS8psG | ||
19 | eEDJ2I52UknJX9VLskDHFLW9+PiNLvWHJ8oadpkhbELQAAABRYIbQ5KfXsZuBPuWe5FJz3 | ||
20 | ldaEgwAAAAAB | ||
21 | -----END OPENSSH PRIVATE KEY----- | ||
diff --git a/regress/unittests/sshkey/testdata/ecdsa_n b/regress/unittests/sshkey/testdata/ecdsa_n index 80382b62d..9694f32e4 100644 --- a/regress/unittests/sshkey/testdata/ecdsa_n +++ b/regress/unittests/sshkey/testdata/ecdsa_n | |||
@@ -1,5 +1,8 @@ | |||
1 | -----BEGIN EC PRIVATE KEY----- | 1 | -----BEGIN OPENSSH PRIVATE KEY----- |
2 | MHcCAQEEIPPNyUAnjvFr+eT/7t/IyjuQQd/aLFiTY92LB9gIjyrMoAoGCCqGSM49 | 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAaAAAABNlY2RzYS |
3 | AwEHoUQDQgAEDFlblkOrW9ydKVhtM+9AY3c9saBE7SG3lFx38nBavkADDaI9jh3/ | 3 | 1zaGEyLW5pc3RwMjU2AAAACG5pc3RwMjU2AAAAQQQMWVuWQ6tb3J0pWG0z70Bjdz2xoETt |
4 | kvG/Jt9vpm22qwoklTCGDfzCkXkIKaWlBw== | 4 | IbeUXHfycFq+QAMNoj2OHf+S8b8m32+mbbarCiSVMIYN/MKReQgppaUHAAAAoFrmmZBa5p |
5 | -----END EC PRIVATE KEY----- | 5 | mQAAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAxZW5ZDq1vcnSlY |
6 | bTPvQGN3PbGgRO0ht5Rcd/JwWr5AAw2iPY4d/5Lxvybfb6ZttqsKJJUwhg38wpF5CCmlpQ | ||
7 | cAAAAhAPPNyUAnjvFr+eT/7t/IyjuQQd/aLFiTY92LB9gIjyrMAAAAAAECAwQFBgc= | ||
8 | -----END OPENSSH PRIVATE KEY----- | ||
diff --git a/regress/unittests/sshkey/testdata/rsa_n b/regress/unittests/sshkey/testdata/rsa_n index 5de3f8422..b8e585e51 100644 --- a/regress/unittests/sshkey/testdata/rsa_n +++ b/regress/unittests/sshkey/testdata/rsa_n | |||
@@ -1,15 +1,16 @@ | |||
1 | -----BEGIN RSA PRIVATE KEY----- | 1 | -----BEGIN OPENSSH PRIVATE KEY----- |
2 | MIICXAIBAAKBgQDLV5lUTt7FrADseB/CGhEZzpoojjEW5y8+ePvLppmK3MmMI18u | 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAlwAAAAdzc2gtcn |
3 | d6vxzpK3bwZLYkVSyfJYI0HmIuGhdu7yMrW6wb84gbq8C31Xoe9EORcIUuGSvDKd | 3 | NhAAAAAwEAAQAAAIEAy1eZVE7exawA7HgfwhoRGc6aKI4xFucvPnj7y6aZitzJjCNfLner |
4 | NSM1SjlhDquRblDFB8kToqXyx1lqrXecXylxIUOL0jE+u0rU1967pDJx+wIDAQAB | 4 | 8c6St28GS2JFUsnyWCNB5iLhoXbu8jK1usG/OIG6vAt9V6HvRDkXCFLhkrwynTUjNUo5YQ |
5 | AoGAXyj5mpjmbD+YlxGIWz/zrM4hGsWgd4VteKEJxT6MMI4uzCRpkMd0ck8oHiwZ | 5 | 6rkW5QxQfJE6Kl8sdZaq13nF8pcSFDi9IxPrtK1Nfeu6QycfsAAAH4to4I7raOCO4AAAAH |
6 | GAI/SwUzIsgtONQuH3AXVsUgghW4Ynn+8ksEv0IZ918WDMDwqvqkyrVzsOsZzqYj | 6 | c3NoLXJzYQAAAIEAy1eZVE7exawA7HgfwhoRGc6aKI4xFucvPnj7y6aZitzJjCNfLner8c |
7 | Pf8DU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T94FjmtujMTPxhOs8fYwux4ENyj2linRvxbh7NPOWk0Q2 |
15 | -----END RSA PRIVATE KEY----- | 15 | gy5hnGfCLzLruzYCkAAAAAAQID |
16 | -----END OPENSSH PRIVATE KEY----- | ||