summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-02-01 16:48:51 +0100
committerSimon Josefsson <simon@josefsson.org>2008-02-01 16:48:51 +0100
commit08d25772ba8a6fd730540af8cf37228d8ddb8f6a (patch)
tree47d443e142177cc0a9dbf601d11c627428e74356 /examples
parent92ec14b25c6b030ff63149a88c728bf758e6ee5b (diff)
downloadlibtasn1-08d25772ba8a6fd730540af8cf37228d8ddb8f6a.tar.gz
libtasn1-08d25772ba8a6fd730540af8cf37228d8ddb8f6a.tar.bz2
libtasn1-08d25772ba8a6fd730540af8cf37228d8ddb8f6a.zip
Fix building of examples.
Diffstat (limited to 'examples')
-rw-r--r--examples/CertificateExample.c4
-rw-r--r--examples/CrlExample.c4
-rw-r--r--examples/Makefile.am4
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/CertificateExample.c b/examples/CertificateExample.c
index d96b9d5..d610fc9 100644
--- a/examples/CertificateExample.c
+++ b/examples/CertificateExample.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2006, 2007 Free Software Foundation
+ * Copyright (C) 2006, 2007, 2008 Free Software Foundation
* Copyright (C) 2000,2001 Fabio Fiorina
*
* This file is part of LIBTASN1.
@@ -480,7 +480,7 @@ get_certificate(node_asn *cert_def,unsigned char *der,int der_len)
asn1_delete_structure(&cert2);
}
-#include "pkix_asn1_tab.c"
+extern const ASN1_ARRAY_TYPE pkix_asn1_tab[];
/********************************************************/
/* Function : main */
diff --git a/examples/CrlExample.c b/examples/CrlExample.c
index 80c30bb..7f28d7f 100644
--- a/examples/CrlExample.c
+++ b/examples/CrlExample.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2006, 2007 Free Software Foundation
+ * Copyright (C) 2006, 2007, 2008 Free Software Foundation
* Copyright (C) 2000,2001 Fabio Fiorina
*
* This file is part of LIBTASN1.
@@ -399,7 +399,7 @@ get_CRL(node_asn *cert_def,unsigned char *der,int der_len)
asn1_delete_structure(&crl2);
}
-#include "pkix_asn1_tab.c"
+extern const ASN1_ARRAY_TYPE pkix_asn1_tab[];
/********************************************************/
/* Function : main */
diff --git a/examples/Makefile.am b/examples/Makefile.am
index a0207d3..169a4ef 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -31,5 +31,5 @@ CrlExample_SOURCES = CrlExample.c pkix_asn1_tab.c pkix.asn
BUILT_SOURCES = pkix_asn1_tab.c
MAINTAINERCLEANFILES = pkix_asn1_tab.c
-pkix_asn1_tab.c: asn1Parser $(srcdir)/pkix.asn
- -./asn1Parser -o $@ $(srcdir)/pkix.asn
+pkix_asn1_tab.c: $(srcdir)/pkix.asn
+ ../src/asn1Parser -o $@ $(srcdir)/pkix.asn