tcrl 814 B

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