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/Makefile | |
| 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 'src/regress/lib/libssl/Makefile')
| -rw-r--r-- | src/regress/lib/libssl/Makefile | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/regress/lib/libssl/Makefile b/src/regress/lib/libssl/Makefile deleted file mode 100644 index 20d2b9979d..0000000000 --- a/src/regress/lib/libssl/Makefile +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.16 2014/04/17 08:06:59 jsg Exp $ | ||
| 2 | |||
| 3 | CLEANFILES+= testdsa.key testdsa.pem rsakey.pem rsacert.pem dsa512.pem | ||
| 4 | |||
| 5 | REGRESS_TARGETS=ssl-enc ssl-dsa ssl-rsa | ||
| 6 | |||
| 7 | OPENSSL=/usr/sbin/openssl | ||
| 8 | CLEAR1=p | ||
| 9 | CIPHER=cipher | ||
| 10 | CLEAR2=clear | ||
| 11 | LIBCRYPTO=-lcrypto | ||
| 12 | |||
| 13 | ${CLEAR1}: openssl.cnf | ||
| 14 | cat ${.CURDIR}/openssl.cnf > ${CLEAR1} | ||
| 15 | |||
| 16 | CLEANFILES+=${CLEAR1} | ||
| 17 | |||
| 18 | ENCTARGETS=aes-128-cbc aes-128-cfb aes-128-cfb1 aes-128-cfb8 | ||
| 19 | ENCTARGETS+=aes-128-ecb aes-128-ofb aes-192-cbc aes-192-cfb | ||
| 20 | ENCTARGETS+=aes-192-cfb1 aes-192-cfb8 aes-192-ecb aes-192-ofb | ||
| 21 | ENCTARGETS+=aes-256-cbc aes-256-cfb aes-256-cfb1 aes-256-cfb8 | ||
| 22 | ENCTARGETS+=aes-256-ecb aes-256-ofb | ||
| 23 | ENCTARGETS+=bf-cbc bf-cfb bf-ecb bf-ofb | ||
| 24 | ENCTARGETS+=cast-cbc cast5-cbc cast5-cfb cast5-ecb cast5-ofb | ||
| 25 | ENCTARGETS+=des-cbc des-cfb des-cfb8 des-ecb des-ede | ||
| 26 | ENCTARGETS+=des-ede-cbc des-ede-cfb des-ede-ofb des-ede3 | ||
| 27 | ENCTARGETS+=des-ede3-cbc des-ede3-cfb des-ede3-ofb des-ofb desx-cbc | ||
| 28 | ENCTARGETS+=rc2-40-cbc rc2-64-cbc rc2-cbc rc2-cfb rc2-ecb rc2-ofb | ||
| 29 | ENCTARGETS+=rc4 rc4-40 | ||
| 30 | |||
| 31 | .for ENC in ${ENCTARGETS} | ||
| 32 | ${CIPHER}.${ENC}: ${CLEAR1} | ||
| 33 | ${OPENSSL} enc -${ENC} -bufsize 113 -e -k test < ${CLEAR1} > ${CIPHER}.${ENC} | ||
| 34 | ${CIPHER}.${ENC}.b64: ${CLEAR1} | ||
| 35 | ${OPENSSL} enc -${ENC} -bufsize 113 -a -e -k test < ${CLEAR1} > ${CIPHER}.${ENC}.b64 | ||
| 36 | |||
| 37 | ${CLEAR2}.${ENC}: ${CIPHER}.${ENC} | ||
| 38 | ${OPENSSL} enc -${ENC} -bufsize 157 -d -k test < ${CIPHER}.${ENC} > ${CLEAR2}.${ENC} | ||
| 39 | ${CLEAR2}.${ENC}.b64: ${CIPHER}.${ENC}.b64 | ||
| 40 | ${OPENSSL} enc -${ENC} -bufsize 157 -a -d -k test < ${CIPHER}.${ENC}.b64 > ${CLEAR2}.${ENC}.b64 | ||
| 41 | |||
| 42 | ssl-enc-${ENC}: ${CLEAR1} ${CLEAR2}.${ENC} | ||
| 43 | cmp ${CLEAR1} ${CLEAR2}.${ENC} | ||
| 44 | ssl-enc-${ENC}.b64: ${CLEAR1} ${CLEAR2}.${ENC}.b64 | ||
| 45 | cmp ${CLEAR1} ${CLEAR2}.${ENC}.b64 | ||
| 46 | |||
| 47 | REGRESS_TARGETS+=ssl-enc-${ENC} ssl-enc-${ENC}.b64 | ||
| 48 | CLEANFILES+=${CIPHER}.${ENC} ${CIPHER}.${ENC}.b64 ${CLEAR2}.${ENC} ${CLEAR2}.${ENC}.b64 .rnd | ||
| 49 | .endfor | ||
| 50 | |||
| 51 | ssl-enc: | ||
| 52 | sh ${.CURDIR}/testenc.sh ${.OBJDIR} ${.CURDIR} | ||
| 53 | ssl-dsa: | ||
| 54 | sh ${.CURDIR}/testdsa.sh ${.OBJDIR} ${.CURDIR} | ||
| 55 | ssl-rsa: | ||
| 56 | sh ${.CURDIR}/testrsa.sh ${.OBJDIR} ${.CURDIR} | ||
| 57 | |||
| 58 | .include <bsd.regress.mk> | ||
