summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_time.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-11-21 15:13:20 +0100
committerDr. Stephen Henson <steve@openssl.org>2012-11-21 15:13:20 +0100
commit46a6cec6998b84d85240dfb99af235c8a0854a31 (patch)
tree8742de19d95907899dff2402aec9605a94686f72 /crypto/asn1/a_time.c
parentSubmitted by: Florian Weimer <fweimer@redhat.com> (diff)
downloadopenssl-46a6cec6998b84d85240dfb99af235c8a0854a31.tar.xz
openssl-46a6cec6998b84d85240dfb99af235c8a0854a31.zip
Reorganise parameters for OPENSSL_gmtime_diff.
Make ASN1_UTCTIME_cmp_time_t more robust by using the new time functions.
Diffstat (limited to 'crypto/asn1/a_time.c')
-rw-r--r--crypto/asn1/a_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index 546d615c7d..e0d3d42d67 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -225,5 +225,5 @@ int ASN1_TIME_diff(int *pday, int *psec,
return 0;
if (!asn1_time_to_tm(&tm_to, to))
return 0;
- return OPENSSL_gmtime_diff(&tm_from, &tm_to, pday, psec);
+ return OPENSSL_gmtime_diff(pday, psec, &tm_from, &tm_to);
}