1*ebfedea0SLionel Sambuc#!/bin/sh 2*ebfedea0SLionel Sambuc 3*ebfedea0SLionel Sambuccmd='../util/shlib_wrap.sh ../apps/openssl pkcs7' 4*ebfedea0SLionel Sambuc 5*ebfedea0SLionel Sambucif [ "$1"x != "x" ]; then 6*ebfedea0SLionel Sambuc t=$1 7*ebfedea0SLionel Sambucelse 8*ebfedea0SLionel Sambuc t=testp7.pem 9*ebfedea0SLionel Sambucfi 10*ebfedea0SLionel Sambuc 11*ebfedea0SLionel Sambucecho testing pkcs7 conversions 12*ebfedea0SLionel Sambuccp $t fff.p 13*ebfedea0SLionel Sambuc 14*ebfedea0SLionel Sambucecho "p -> d" 15*ebfedea0SLionel Sambuc$cmd -in fff.p -inform p -outform d >f.d 16*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 17*ebfedea0SLionel Sambucecho "p -> p" 18*ebfedea0SLionel Sambuc$cmd -in fff.p -inform p -outform p >f.p 19*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 20*ebfedea0SLionel Sambuc 21*ebfedea0SLionel Sambucecho "d -> d" 22*ebfedea0SLionel Sambuc$cmd -in f.d -inform d -outform d >ff.d1 23*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 24*ebfedea0SLionel Sambucecho "p -> d" 25*ebfedea0SLionel Sambuc$cmd -in f.p -inform p -outform d >ff.d3 26*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 27*ebfedea0SLionel Sambuc 28*ebfedea0SLionel Sambucecho "d -> p" 29*ebfedea0SLionel Sambuc$cmd -in f.d -inform d -outform p >ff.p1 30*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 31*ebfedea0SLionel Sambucecho "p -> p" 32*ebfedea0SLionel Sambuc$cmd -in f.p -inform p -outform p >ff.p3 33*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 34*ebfedea0SLionel Sambuc 35*ebfedea0SLionel Sambuccmp fff.p f.p 36*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 37*ebfedea0SLionel Sambuccmp fff.p ff.p1 38*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 39*ebfedea0SLionel Sambuccmp fff.p ff.p3 40*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 41*ebfedea0SLionel Sambuc 42*ebfedea0SLionel Sambuccmp f.p ff.p1 43*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 44*ebfedea0SLionel Sambuccmp f.p ff.p3 45*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 46*ebfedea0SLionel Sambuc 47*ebfedea0SLionel Sambuc/bin/rm -f f.* ff.* fff.* 48*ebfedea0SLionel Sambucexit 0 49