]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/tcrl
Fix ecparam -genkey with point compression or DER outform
[thirdparty/openssl.git] / test / tcrl
CommitLineData
d02b48c6
RE
1#!/bin/sh
2
62d27939 3cmd='../util/shlib_wrap.sh ../apps/openssl crl'
d02b48c6
RE
4
5if [ "$1"x != "x" ]; then
6 t=$1
7else
8 t=testcrl.pem
9fi
10
11echo testing crl conversions
e887c418 12cp $t crl-fff.p
d02b48c6
RE
13
14echo "p -> d"
e887c418 15$cmd -in crl-fff.p -inform p -outform d >crl-f.d
d02b48c6
RE
16if [ $? != 0 ]; then exit 1; fi
17#echo "p -> t"
e887c418 18#$cmd -in crl-fff.p -inform p -outform t >crl-f.t
d02b48c6
RE
19#if [ $? != 0 ]; then exit 1; fi
20echo "p -> p"
e887c418 21$cmd -in crl-fff.p -inform p -outform p >crl-f.p
d02b48c6
RE
22if [ $? != 0 ]; then exit 1; fi
23
24echo "d -> d"
e887c418 25$cmd -in crl-f.d -inform d -outform d >crl-ff.d1
d02b48c6
RE
26if [ $? != 0 ]; then exit 1; fi
27#echo "t -> d"
e887c418 28#$cmd -in crl-f.t -inform t -outform d >crl-ff.d2
d02b48c6
RE
29#if [ $? != 0 ]; then exit 1; fi
30echo "p -> d"
e887c418 31$cmd -in crl-f.p -inform p -outform d >crl-ff.d3
d02b48c6
RE
32if [ $? != 0 ]; then exit 1; fi
33
34#echo "d -> t"
e887c418 35#$cmd -in crl-f.d -inform d -outform t >crl-ff.t1
d02b48c6
RE
36#if [ $? != 0 ]; then exit 1; fi
37#echo "t -> t"
e887c418 38#$cmd -in crl-f.t -inform t -outform t >crl-ff.t2
d02b48c6
RE
39#if [ $? != 0 ]; then exit 1; fi
40#echo "p -> t"
e887c418 41#$cmd -in crl-f.p -inform p -outform t >crl-ff.t3
d02b48c6
RE
42#if [ $? != 0 ]; then exit 1; fi
43
44echo "d -> p"
e887c418 45$cmd -in crl-f.d -inform d -outform p >crl-ff.p1
d02b48c6
RE
46if [ $? != 0 ]; then exit 1; fi
47#echo "t -> p"
e887c418 48#$cmd -in crl-f.t -inform t -outform p >crl-ff.p2
d02b48c6
RE
49#if [ $? != 0 ]; then exit 1; fi
50echo "p -> p"
e887c418 51$cmd -in crl-f.p -inform p -outform p >crl-ff.p3
d02b48c6
RE
52if [ $? != 0 ]; then exit 1; fi
53
e887c418 54cmp crl-fff.p crl-f.p
d02b48c6 55if [ $? != 0 ]; then exit 1; fi
e887c418 56cmp crl-fff.p crl-ff.p1
d02b48c6 57if [ $? != 0 ]; then exit 1; fi
e887c418 58#cmp crl-fff.p crl-ff.p2
d02b48c6 59#if [ $? != 0 ]; then exit 1; fi
e887c418 60cmp crl-fff.p crl-ff.p3
d02b48c6
RE
61if [ $? != 0 ]; then exit 1; fi
62
e887c418 63#cmp crl-f.t crl-ff.t1
d02b48c6 64#if [ $? != 0 ]; then exit 1; fi
e887c418 65#cmp crl-f.t crl-ff.t2
d02b48c6 66#if [ $? != 0 ]; then exit 1; fi
e887c418 67#cmp crl-f.t crl-ff.t3
d02b48c6
RE
68#if [ $? != 0 ]; then exit 1; fi
69
e887c418 70cmp crl-f.p crl-ff.p1
d02b48c6 71if [ $? != 0 ]; then exit 1; fi
e887c418 72#cmp crl-f.p crl-ff.p2
d02b48c6 73#if [ $? != 0 ]; then exit 1; fi
e887c418 74cmp crl-f.p crl-ff.p3
d02b48c6
RE
75if [ $? != 0 ]; then exit 1; fi
76
e887c418 77/bin/rm -f crl-f.* crl-ff.* crl-fff.*
d02b48c6 78exit 0