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_time.c | |
parent | 3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff) | |
download | openssl-new-6b691a5c85ddc4e407e32781841fee5c029506cd.tar.gz |
Change functions to ANSI C.
Diffstat (limited to 'crypto/asn1/a_time.c')
-rw-r--r-- | crypto/asn1/a_time.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c index 953ed6088d..495f0814a3 100644 --- a/crypto/asn1/a_time.c +++ b/crypto/asn1/a_time.c @@ -66,9 +66,7 @@ #include "cryptlib.h" #include "asn1.h" -int i2d_ASN1_TIME(a,pp) -ASN1_TIME *a; -unsigned char **pp; +int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **pp) { if(a->type == V_ASN1_UTCTIME || a->type == V_ASN1_GENERALIZEDTIME) return(i2d_ASN1_bytes((ASN1_STRING *)a,pp, @@ -78,10 +76,7 @@ unsigned char **pp; } -ASN1_TIME *d2i_ASN1_TIME(a, pp, length) -ASN1_TIME **a; -unsigned char **pp; -long length; +ASN1_TIME *d2i_ASN1_TIME(ASN1_TIME **a, unsigned char **pp, long length) { unsigned char tag; tag = **pp & ~V_ASN1_CONSTRUCTED; @@ -94,9 +89,7 @@ long length; } -ASN1_TIME *ASN1_TIME_set(s, t) -ASN1_TIME *s; -time_t t; +ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t) { struct tm *ts; #if defined(THREADS) && !defined(WIN32) |