tpkcs7d 723 B

123456789101112131415161718192021222324252627282930313233
  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 || exit 1
  12. echo "p -> p"
  13. $cmd -in p7d-fff.p -inform p -outform p >p7d-f.p || exit 1
  14. echo "d -> d"
  15. $cmd -in p7d-f.d -inform d -outform d >p7d-ff.d1 || exit 1
  16. echo "p -> d"
  17. $cmd -in p7d-f.p -inform p -outform d >p7d-ff.d3 || exit 1
  18. echo "d -> p"
  19. $cmd -in p7d-f.d -inform d -outform p >p7d-ff.p1 || exit 1
  20. echo "p -> p"
  21. $cmd -in p7d-f.p -inform p -outform p >p7d-ff.p3 || exit 1
  22. cmp p7d-f.p p7d-ff.p1 || exit 1
  23. cmp p7d-f.p p7d-ff.p3 || exit 1
  24. /bin/rm -f p7d-f.* p7d-ff.* p7d-fff.*
  25. exit 0