converter-sample.c instead of asn-decoder-template.c


git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1139 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/examples/sample.source.PKIX1/Makefile b/examples/sample.source.PKIX1/Makefile
index 8fecc54..6eb381f 100644
--- a/examples/sample.source.PKIX1/Makefile
+++ b/examples/sample.source.PKIX1/Makefile
@@ -334,6 +334,8 @@
 ASN_MODULE_SOURCES+=per_support.c
 ASN_MODULE_HEADERS+=per_decoder.h
 ASN_MODULE_SOURCES+=per_decoder.c
+ASN_MODULE_HEADERS+=per_encoder.h
+ASN_MODULE_SOURCES+=per_encoder.c
 
 
 lib_LTLIBRARIES=libsomething.la
@@ -371,9 +373,9 @@
 	@touch Certificate.c
 	make
 
-ASN_DECODER_TEMPLATE=../../skeletons/asn-decoder-template.c
-$(TARGET).o: $(ASN_DECODER_TEMPLATE)
-	$(CC) $(CFLAGS) -Dasn_DEF=asn_DEF_Certificate -o $(TARGET).o -c $(ASN_DECODER_TEMPLATE)
+ASN_CONVERTER=../../skeletons/converter-sample.c
+$(TARGET).o: $(ASN_CONVERTER)
+	$(CC) $(CFLAGS) -Dasn_DEF=asn_DEF_Certificate -o $(TARGET).o -c $(ASN_CONVERTER)
 
 distclean: clean
 	rm -f $(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
diff --git a/examples/sample.source.PKIX1/README b/examples/sample.source.PKIX1/README
index d204dab..b28e817 100644
--- a/examples/sample.source.PKIX1/README
+++ b/examples/sample.source.PKIX1/README
@@ -5,7 +5,7 @@
 The X.509 (PKIX1) certificate decoder. Invoking `make` will compile the ASN.1
 specifications from the rfc3280.txt in the above directory.
 
-The ../../skeletons/asn-decoder-template.c will supply the missing
+The ../../skeletons/converter-sample.c will supply the missing
 "int main()" routine which drives the decoding process.
 
 x509dump USAGE
@@ -24,18 +24,9 @@
 After convertsion, the x509dump utility may be used to dump the contents
 of the DER-encoded X.509 certificate:
 
-	./x509dump -x certificate.der	# Print as XML (BASIC-XER)
+	./x509dump certificate.der	# Print as XML (BASIC-XER)
 
 The full list of recognized command line options may be obtained with
 
 	> ./x509dump -h
-	Usage: ./x509dump [options] <data.ber> ...
-	Where options are:
-	  -b <size>    Set the i/o buffer size (default is 8192)
-	  -c           Check ASN.1 constraints after decoding
-	  -d           Enable debugging (-dd is even better)
-	  -n <num>     Process files <num> times
-	  -s <size>    Set the stack usage limit
-	  -p           Print out the decoded contents
-	  -x           Print out as XML