aboutsummaryrefslogtreecommitdiffstats
path: root/examples/sample.source.PKIX1
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sample.source.PKIX1')
-rw-r--r--examples/sample.source.PKIX1/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/sample.source.PKIX1/Makefile b/examples/sample.source.PKIX1/Makefile
index c1846abc..de54195c 100644
--- a/examples/sample.source.PKIX1/Makefile
+++ b/examples/sample.source.PKIX1/Makefile
@@ -390,6 +390,23 @@ check: ${TARGET}
diff ./.tmp.1.$$ ./.tmp.2.$$ || exit 2; \
rm -f ./.tmp.[12].$$; \
done; fi
+ @if test -f ./sample-Certificate-1.xer ; then \
+ for f in ./sample-Certificate-*.xer; do \
+ echo "Recoding $$f into DER and back..."; \
+ ./${TARGET} -ixer -oder $$f > ./.tmp.1.$$ || exit 2; \
+ ./${TARGET} -iber -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \
+ diff $$f ./.tmp.2.$$ || exit 2; \
+ rm -f ./.tmp.[12].$$; \
+ done; fi
+ @if test -f ./sample-Certificate-1.per ; then \
+ for f in ./sample-Certificate-*.per; do \
+ echo "Recoding $$f into DER into XER and back..."; \
+ ./${TARGET} -iper -oder $$f > ./.tmp.1.$$ || exit 2; \
+ ./${TARGET} -ider -oxer ./.tmp.1.$$ > ./.tmp.2.$$ || exit 2; \
+ ./${TARGET} -ixer -oper ./.tmp.2.$$ > ./.tmp.1.$$ || exit 2; \
+ diff $$f ./.tmp.1.$$ || exit 2; \
+ rm -f ./.tmp.[12].$$; \
+ done; fi
@echo ================
@echo All tests passed
@echo ================