diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
commit | 6b691a5c85ddc4e407e32781841fee5c029506cd (patch) | |
tree | 436f1127406e1cacfe83dfcbfff824d89c47d834 /crypto/asn1/a_gentm.c | |
parent | 3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff) |
Change functions to ANSI C.
Diffstat (limited to 'crypto/asn1/a_gentm.c')
-rw-r--r-- | crypto/asn1/a_gentm.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/crypto/asn1/a_gentm.c b/crypto/asn1/a_gentm.c index 3d37e9de71..7992739cad 100644 --- a/crypto/asn1/a_gentm.c +++ b/crypto/asn1/a_gentm.c @@ -67,19 +67,15 @@ * ASN1err(ASN1_F_D2I_ASN1_GENERALIZEDTIME,ASN1_R_EXPECTING_A_GENERALIZEDTIME); */ -int i2d_ASN1_GENERALIZEDTIME(a,pp) -ASN1_GENERALIZEDTIME *a; -unsigned char **pp; +int i2d_ASN1_GENERALIZEDTIME(ASN1_GENERALIZEDTIME *a, unsigned char **pp) { return(i2d_ASN1_bytes((ASN1_STRING *)a,pp, V_ASN1_GENERALIZEDTIME,V_ASN1_UNIVERSAL)); } -ASN1_GENERALIZEDTIME *d2i_ASN1_GENERALIZEDTIME(a, pp, length) -ASN1_GENERALIZEDTIME **a; -unsigned char **pp; -long length; +ASN1_GENERALIZEDTIME *d2i_ASN1_GENERALIZEDTIME(ASN1_GENERALIZEDTIME **a, + unsigned char **pp, long length) { ASN1_GENERALIZEDTIME *ret=NULL; @@ -103,8 +99,7 @@ err: return(NULL); } -int ASN1_GENERALIZEDTIME_check(d) -ASN1_GENERALIZEDTIME *d; +int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *d) { static int min[9]={ 0, 0, 1, 1, 0, 0, 0, 0, 0}; static int max[9]={99, 99,12,31,23,59,59,12,59}; @@ -157,9 +152,7 @@ err: return(0); } -int ASN1_GENERALIZEDTIME_set_string(s,str) -ASN1_GENERALIZEDTIME *s; -char *str; +int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, char *str) { ASN1_GENERALIZEDTIME t; @@ -179,9 +172,8 @@ char *str; return(0); } -ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(s, t) -ASN1_GENERALIZEDTIME *s; -time_t t; +ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s, + time_t t) { char *p; struct tm *ts; |