summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-04-21 12:46:41 +0200
committerSimon Josefsson <simon@josefsson.org>2008-04-21 12:46:41 +0200
commitebb74f71ddc104e219b76f91c3307bfb6da48cd9 (patch)
tree8685c89732630f520395ba8f10e50242a444c767 /examples
parent54ce16fb0f665284b4150d88b74d7898250c16c7 (diff)
downloadlibtasn1-ebb74f71ddc104e219b76f91c3307bfb6da48cd9.tar.gz
libtasn1-ebb74f71ddc104e219b76f91c3307bfb6da48cd9.tar.bz2
libtasn1-ebb74f71ddc104e219b76f91c3307bfb6da48cd9.zip
Replace use of alloca with malloc.
Diffstat (limited to 'examples')
-rw-r--r--examples/CertificateExample.c2
-rw-r--r--examples/CrlExample.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/CertificateExample.c b/examples/CertificateExample.c
index f4b047e..5af525e 100644
--- a/examples/CertificateExample.c
+++ b/examples/CertificateExample.c
@@ -109,7 +109,7 @@ get_Name_type(node_asn *cert_def,node_asn *cert,char *root, char *answer)
&value);
len = sizeof(str) - 1;
asn1_read_value(cert,name3,str,&len);
- asn1_der_decoding(&value,str,len,errorDescription);
+ asn1_der_decoding(&value,str,len,errorDescription);
len = sizeof(str) - 1;
asn1_read_value(value,"",str,&len); /* CHOICE */
strcpy(name3,str);
diff --git a/examples/CrlExample.c b/examples/CrlExample.c
index f239cac..fbc200b 100644
--- a/examples/CrlExample.c
+++ b/examples/CrlExample.c
@@ -114,10 +114,10 @@ get_Name_type(node_asn *cert_def,node_asn *cert,char *root, char *answer)
&value);
len = sizeof(str)-1;
asn1_read_value(cert,name3,str,&len);
- result=asn1_der_decoding(&value,str,len,errorDescription);
+ result=asn1_der_decoding(&value,str,len,errorDescription);
len = sizeof(str)-1;
- asn1_read_value(value,"",str,&len); /* CHOICE */
+ asn1_read_value(value,"",str,&len); /* CHOICE */
strcpy(name3,str);