diff options
| author | jsing <> | 2014-05-24 13:32:46 +0000 |
|---|---|---|
| committer | jsing <> | 2014-05-24 13:32:46 +0000 |
| commit | b1cf7548c4fb4c09ec9b0c68ae25e73ef8558ad0 (patch) | |
| tree | ebc073b147392b35dd9397b327e8cce1da15ee6b /src/regress/lib/libssl/testdsa.sh | |
| parent | 5e1ae80e3f98ab999ac233eec6f32cddbb914140 (diff) | |
| download | openbsd-b1cf7548c4fb4c09ec9b0c68ae25e73ef8558ad0.tar.gz openbsd-b1cf7548c4fb4c09ec9b0c68ae25e73ef8558ad0.tar.bz2 openbsd-b1cf7548c4fb4c09ec9b0c68ae25e73ef8558ad0.zip | |
Move the regress tests that are in lib/libssl to usr.sbin/openssl,
since they are really testing openssl(1) (although this also tests
libcrypto and libssl), rather than actual parts of the libssl library.
Discussed with miod@
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libssl/testdsa.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/regress/lib/libssl/testdsa.sh b/src/regress/lib/libssl/testdsa.sh deleted file mode 100644 index 48526eec11..0000000000 --- a/src/regress/lib/libssl/testdsa.sh +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # $OpenBSD: testdsa.sh,v 1.4 2001/01/29 02:05:48 niklas Exp $ | ||
| 3 | |||
| 4 | |||
| 5 | #Test DSA certificate generation of openssl | ||
| 6 | |||
| 7 | cd $1 | ||
| 8 | |||
| 9 | # Generate DSA paramter set | ||
| 10 | openssl dsaparam 512 -out dsa512.pem | ||
| 11 | if [ $? != 0 ]; then | ||
| 12 | exit 1; | ||
| 13 | fi | ||
| 14 | |||
| 15 | |||
| 16 | # Denerate a DSA certificate | ||
| 17 | openssl req -config $2/openssl.cnf -x509 -newkey dsa:dsa512.pem -out testdsa.pem -keyout testdsa.key | ||
| 18 | if [ $? != 0 ]; then | ||
| 19 | exit 1; | ||
| 20 | fi | ||
| 21 | |||
| 22 | |||
| 23 | # Now check the certificate | ||
| 24 | openssl x509 -text -in testdsa.pem | ||
| 25 | if [ $? != 0 ]; then | ||
| 26 | exit 1; | ||
| 27 | fi | ||
| 28 | |||
| 29 | exit 0 | ||
