From 2c331542134ee2dd636666d6f8f7d0cbc17890cd Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 1 Feb 2008 16:59:42 +0100 Subject: [PATCH] Added some static initializers. Tiny patch from Michele Baldessari . --- examples/CertificateExample.c | 8 ++++---- 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; -- 2.7.4