diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-02-01 16:59:42 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-02-01 16:59:42 +0100 |
commit | 2c331542134ee2dd636666d6f8f7d0cbc17890cd (patch) | |
tree | cce2e8d33eab032a4a2b1c0bc5beb93c40ace5fb /examples | |
parent | cd4f987977878f67c71e6c1b18d8ba284e428001 (diff) | |
download | libtasn1-2c331542134ee2dd636666d6f8f7d0cbc17890cd.tar.gz libtasn1-2c331542134ee2dd636666d6f8f7d0cbc17890cd.tar.bz2 libtasn1-2c331542134ee2dd636666d6f8f7d0cbc17890cd.zip |
Added some static initializers. Tiny patch from Michele Baldessari <michele@pupazzo.org>.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CertificateExample.c | 8 | ||||
-rw-r--r-- | examples/CrlExample.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/examples/CertificateExample.c b/examples/CertificateExample.c index d610fc9..f4b047e 100644 --- a/examples/CertificateExample.c +++ b/examples/CertificateExample.c @@ -31,7 +31,7 @@ #include "libtasn1.h" -char * +static char * my_ltostr(long v,char *str) { long d,r; @@ -67,7 +67,7 @@ my_ltostr(long v,char *str) /* char *answer: the string with elements like: */ /* "C=US O=gov" */ /******************************************************/ -void +static void get_Name_type(node_asn *cert_def,node_asn *cert,char *root, char *answer) { int k,k2,result,len; @@ -177,7 +177,7 @@ get_Name_type(node_asn *cert_def,node_asn *cert,char *root, char *answer) /* unsigned char *der: contains the der encoding */ /* int *der_len: number of bytes of der string */ /******************************************************/ -void +static void create_certificate(node_asn *cert_def,unsigned char *der,int *der_len) { int result,k,len; @@ -424,7 +424,7 @@ create_certificate(node_asn *cert_def,unsigned char *der,int *der_len) /* unsigned char *der: the encoding string */ /* int der_len: number of bytes of der string */ /******************************************************/ -void +static void get_certificate(node_asn *cert_def,unsigned char *der,int der_len) { int result,len,start,end; diff --git a/examples/CrlExample.c b/examples/CrlExample.c index 7f28d7f..f239cac 100644 --- a/examples/CrlExample.c +++ b/examples/CrlExample.c @@ -32,7 +32,7 @@ -char * +static char * my_ltostr(long v,char *str) { long d,r; @@ -69,7 +69,7 @@ my_ltostr(long v,char *str) /* char *answer: the string with elements like: */ /* "C=US O=gov" */ /******************************************************/ -void +static void get_Name_type(node_asn *cert_def,node_asn *cert,char *root, char *answer) { int k,k2,result,len; @@ -187,7 +187,7 @@ get_Name_type(node_asn *cert_def,node_asn *cert,char *root, char *answer) /* unsigned char *der: contains the der encoding */ /* int *der_len: number of bytes of der string */ /******************************************************/ -void +static void create_CRL(node_asn *cert_def, unsigned char *der,int *der_len) { int result,k,len; @@ -348,7 +348,7 @@ create_CRL(node_asn *cert_def, unsigned char *der,int *der_len) /* unsigned char *der: the encoding string */ /* int der_len: number of bytes of der string */ /******************************************************/ -void +static void get_CRL(node_asn *cert_def,unsigned char *der,int der_len) { int result,len,start,end; |