tpkcs7d 819 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. cmd='../util/shlib_wrap.sh ../apps/openssl pkcs7'
  3. if [ "$1"x != "x" ]; then
  4. t=$1
  5. else
  6. t=pkcs7-1.pem
  7. fi
  8. echo "testing pkcs7 conversions (2)"
  9. cp $t fff.p
  10. echo "p -> d"
  11. $cmd -in fff.p -inform p -outform d >f.d
  12. if [ $? != 0 ]; then exit 1; fi
  13. echo "p -> p"
  14. $cmd -in fff.p -inform p -outform p >f.p
  15. if [ $? != 0 ]; then exit 1; fi
  16. echo "d -> d"
  17. $cmd -in f.d -inform d -outform d >ff.d1
  18. if [ $? != 0 ]; then exit 1; fi
  19. echo "p -> d"
  20. $cmd -in f.p -inform p -outform d >ff.d3
  21. if [ $? != 0 ]; then exit 1; fi
  22. echo "d -> p"
  23. $cmd -in f.d -inform d -outform p >ff.p1
  24. if [ $? != 0 ]; then exit 1; fi
  25. echo "p -> p"
  26. $cmd -in f.p -inform p -outform p >ff.p3
  27. if [ $? != 0 ]; then exit 1; fi
  28. cmp f.p ff.p1
  29. if [ $? != 0 ]; then exit 1; fi
  30. cmp f.p ff.p3
  31. if [ $? != 0 ]; then exit 1; fi
  32. /bin/rm -f f.* ff.* fff.*
  33. exit 0