etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / openssl / dist / test / tpkcs7d
blob64fc28e88f0b3ce044b5e70859e4653e1d8e0512
1 #!/bin/sh
3 cmd='../util/shlib_wrap.sh ../apps/openssl pkcs7'
5 if [ "$1"x != "x" ]; then
6 t=$1
7 else
8 t=pkcs7-1.pem
9 fi
11 echo "testing pkcs7 conversions (2)"
12 cp $t fff.p
14 echo "p -> d"
15 $cmd -in fff.p -inform p -outform d >f.d
16 if [ $? != 0 ]; then exit 1; fi
17 echo "p -> p"
18 $cmd -in fff.p -inform p -outform p >f.p
19 if [ $? != 0 ]; then exit 1; fi
21 echo "d -> d"
22 $cmd -in f.d -inform d -outform d >ff.d1
23 if [ $? != 0 ]; then exit 1; fi
24 echo "p -> d"
25 $cmd -in f.p -inform p -outform d >ff.d3
26 if [ $? != 0 ]; then exit 1; fi
28 echo "d -> p"
29 $cmd -in f.d -inform d -outform p >ff.p1
30 if [ $? != 0 ]; then exit 1; fi
31 echo "p -> p"
32 $cmd -in f.p -inform p -outform p >ff.p3
33 if [ $? != 0 ]; then exit 1; fi
35 cmp f.p ff.p1
36 if [ $? != 0 ]; then exit 1; fi
37 cmp f.p ff.p3
38 if [ $? != 0 ]; then exit 1; fi
40 /bin/rm -f f.* ff.* fff.*
41 exit 0