aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_time.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-11-20 15:19:53 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-11-20 15:19:53 +0000
commit360ef6769e97f2918ae67a2909951eb8612043ee (patch)
treedaed449a5947c71ee5e44fca58487109b30b7231 /crypto/asn1/a_time.c
parent13cfb043439c8e4b5b96cec42003a8d15e9387fd (diff)
downloadopenssl-360ef6769e97f2918ae67a2909951eb8612043ee.tar.gz
first parameter is difference in days, not years
Diffstat (limited to 'crypto/asn1/a_time.c')
-rw-r--r--crypto/asn1/a_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index 213756fe16..546d615c7d 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -217,7 +217,7 @@ static int asn1_time_to_tm(struct tm *tm, const ASN1_TIME *t)
return 0;
}
-int ASN1_TIME_diff(int *pyear, int *psec,
+int ASN1_TIME_diff(int *pday, int *psec,
const ASN1_TIME *from, const ASN1_TIME *to)
{
struct tm tm_from, tm_to;
@@ -225,5 +225,5 @@ int ASN1_TIME_diff(int *pyear, int *psec,
return 0;
if (!asn1_time_to_tm(&tm_to, to))
return 0;
- return OPENSSL_gmtime_diff(&tm_from, &tm_to, pyear, psec);
+ return OPENSSL_gmtime_diff(&tm_from, &tm_to, pday, psec);
}