diff options
| author | jsing <> | 2026-04-03 14:16:38 +0000 |
|---|---|---|
| committer | jsing <> | 2026-04-03 14:16:38 +0000 |
| commit | 83af2b7df80e8a0adb0622cd22bb59b2f6484960 (patch) | |
| tree | 9c61fb68084590a03d00e918e4cf316abcc2c0fc /src/lib/libssl/test/testgen | |
| parent | 9726691a1e7289634e04b2e44da815e69091af49 (diff) | |
| download | openbsd-83af2b7df80e8a0adb0622cd22bb59b2f6484960.tar.gz openbsd-83af2b7df80e8a0adb0622cd22bb59b2f6484960.tar.bz2 openbsd-83af2b7df80e8a0adb0622cd22bb59b2f6484960.zip | |
Remove lib/libssl/test.
This is all unhelpful historical cruft.
Discussed with tb@
Diffstat (limited to 'src/lib/libssl/test/testgen')
| -rw-r--r-- | src/lib/libssl/test/testgen | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/lib/libssl/test/testgen b/src/lib/libssl/test/testgen deleted file mode 100644 index 524c0d134c..0000000000 --- a/src/lib/libssl/test/testgen +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | T=testcert | ||
| 4 | KEY=512 | ||
| 5 | CA=../certs/testca.pem | ||
| 6 | |||
| 7 | /bin/rm -f $T.1 $T.2 $T.key | ||
| 8 | |||
| 9 | if test "$OSTYPE" = msdosdjgpp; then | ||
| 10 | PATH=../apps\;$PATH; | ||
| 11 | else | ||
| 12 | PATH=../apps:$PATH; | ||
| 13 | fi | ||
| 14 | export PATH | ||
| 15 | |||
| 16 | echo "generating certificate request" | ||
| 17 | |||
| 18 | echo "string to make the random number generator think it has entropy" >> ./.rnd | ||
| 19 | |||
| 20 | if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then | ||
| 21 | req_new='-newkey dsa:../apps/dsa512.pem' | ||
| 22 | else | ||
| 23 | req_new='-new' | ||
| 24 | echo "There should be a 2 sequences of .'s and some +'s." | ||
| 25 | echo "There should not be more that at most 80 per line" | ||
| 26 | fi | ||
| 27 | |||
| 28 | echo "This could take some time." | ||
| 29 | |||
| 30 | rm -f testkey.pem testreq.pem | ||
| 31 | |||
| 32 | ../util/shlib_wrap.sh ../apps/openssl req -config test.cnf $req_new -out testreq.pem | ||
| 33 | if [ $? != 0 ]; then | ||
| 34 | echo problems creating request | ||
| 35 | exit 1 | ||
| 36 | fi | ||
| 37 | |||
| 38 | ../util/shlib_wrap.sh ../apps/openssl req -config test.cnf -verify -in testreq.pem -noout | ||
| 39 | if [ $? != 0 ]; then | ||
| 40 | echo signature on req is wrong | ||
| 41 | exit 1 | ||
| 42 | fi | ||
| 43 | |||
| 44 | exit 0 | ||
