From 08d25772ba8a6fd730540af8cf37228d8ddb8f6a Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 1 Feb 2008 16:48:51 +0100 Subject: Fix building of examples. --- examples/CertificateExample.c | 4 ++-- examples/CrlExample.c | 4 ++-- examples/Makefile.am | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'examples') 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 -- cgit v1.2.3