From 6b691a5c85ddc4e407e32781841fee5c029506cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulf=20M=C3=B6ller?= Date: Mon, 19 Apr 1999 21:31:43 +0000 Subject: Change functions to ANSI C. --- crypto/asn1/a_time.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'crypto/asn1/a_time.c') 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) -- cgit v1.2.3