2
0

tpkcs7d 899 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 p7d-fff.p
  10. echo "p -> d"
  11. $cmd -in p7d-fff.p -inform p -outform d >p7d-f.d
  12. if [ $? != 0 ]; then exit 1; fi
  13. echo "p -> p"
  14. $cmd -in p7d-fff.p -inform p -outform p >p7d-f.p
  15. if [ $? != 0 ]; then exit 1; fi
  16. echo "d -> d"
  17. $cmd -in p7d-f.d -inform d -outform d >p7d-ff.d1
  18. if [ $? != 0 ]; then exit 1; fi
  19. echo "p -> d"
  20. $cmd -in p7d-f.p -inform p -outform d >p7d-ff.d3
  21. if [ $? != 0 ]; then exit 1; fi
  22. echo "d -> p"
  23. $cmd -in p7d-f.d -inform d -outform p >p7d-ff.p1
  24. if [ $? != 0 ]; then exit 1; fi
  25. echo "p -> p"
  26. $cmd -in p7d-f.p -inform p -outform p >p7d-ff.p3
  27. if [ $? != 0 ]; then exit 1; fi
  28. cmp p7d-f.p p7d-ff.p1
  29. if [ $? != 0 ]; then exit 1; fi
  30. cmp p7d-f.p p7d-ff.p3
  31. if [ $? != 0 ]; then exit 1; fi
  32. /bin/rm -f p7d-f.* p7d-ff.* p7d-fff.*
  33. exit 0