1*ebfedea0SLionel Sambuc#!/bin/sh 2*ebfedea0SLionel Sambuc 3*ebfedea0SLionel Sambuccmd='../util/shlib_wrap.sh ../apps/openssl sess_id' 4*ebfedea0SLionel Sambuc 5*ebfedea0SLionel Sambucif [ "$1"x != "x" ]; then 6*ebfedea0SLionel Sambuc t=$1 7*ebfedea0SLionel Sambucelse 8*ebfedea0SLionel Sambuc t=testsid.pem 9*ebfedea0SLionel Sambucfi 10*ebfedea0SLionel Sambuc 11*ebfedea0SLionel Sambucecho testing session-id 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 Sambuc#echo "p -> t" 18*ebfedea0SLionel Sambuc#$cmd -in fff.p -inform p -outform t >f.t 19*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 20*ebfedea0SLionel Sambucecho "p -> p" 21*ebfedea0SLionel Sambuc$cmd -in fff.p -inform p -outform p >f.p 22*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 23*ebfedea0SLionel Sambuc 24*ebfedea0SLionel Sambucecho "d -> d" 25*ebfedea0SLionel Sambuc$cmd -in f.d -inform d -outform d >ff.d1 26*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 27*ebfedea0SLionel Sambuc#echo "t -> d" 28*ebfedea0SLionel Sambuc#$cmd -in f.t -inform t -outform d >ff.d2 29*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 30*ebfedea0SLionel Sambucecho "p -> d" 31*ebfedea0SLionel Sambuc$cmd -in f.p -inform p -outform d >ff.d3 32*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 33*ebfedea0SLionel Sambuc 34*ebfedea0SLionel Sambuc#echo "d -> t" 35*ebfedea0SLionel Sambuc#$cmd -in f.d -inform d -outform t >ff.t1 36*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 37*ebfedea0SLionel Sambuc#echo "t -> t" 38*ebfedea0SLionel Sambuc#$cmd -in f.t -inform t -outform t >ff.t2 39*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 40*ebfedea0SLionel Sambuc#echo "p -> t" 41*ebfedea0SLionel Sambuc#$cmd -in f.p -inform p -outform t >ff.t3 42*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 43*ebfedea0SLionel Sambuc 44*ebfedea0SLionel Sambucecho "d -> p" 45*ebfedea0SLionel Sambuc$cmd -in f.d -inform d -outform p >ff.p1 46*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 47*ebfedea0SLionel Sambuc#echo "t -> p" 48*ebfedea0SLionel Sambuc#$cmd -in f.t -inform t -outform p >ff.p2 49*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 50*ebfedea0SLionel Sambucecho "p -> p" 51*ebfedea0SLionel Sambuc$cmd -in f.p -inform p -outform p >ff.p3 52*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 53*ebfedea0SLionel Sambuc 54*ebfedea0SLionel Sambuccmp fff.p f.p 55*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 56*ebfedea0SLionel Sambuccmp fff.p ff.p1 57*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 58*ebfedea0SLionel Sambuc#cmp fff.p ff.p2 59*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 60*ebfedea0SLionel Sambuccmp fff.p ff.p3 61*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 62*ebfedea0SLionel Sambuc 63*ebfedea0SLionel Sambuc#cmp f.t ff.t1 64*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 65*ebfedea0SLionel Sambuc#cmp f.t ff.t2 66*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 67*ebfedea0SLionel Sambuc#cmp f.t ff.t3 68*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 69*ebfedea0SLionel Sambuc 70*ebfedea0SLionel Sambuccmp f.p ff.p1 71*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 72*ebfedea0SLionel Sambuc#cmp f.p ff.p2 73*ebfedea0SLionel Sambuc#if [ $? != 0 ]; then exit 1; fi 74*ebfedea0SLionel Sambuccmp f.p ff.p3 75*ebfedea0SLionel Sambucif [ $? != 0 ]; then exit 1; fi 76*ebfedea0SLionel Sambuc 77*ebfedea0SLionel Sambuc/bin/rm -f f.* ff.* fff.* 78*ebfedea0SLionel Sambucexit 0 79