diff options
Diffstat (limited to 'src/crypto/asn1/a_utctm.c')
-rw-r--r-- | src/crypto/asn1/a_utctm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/asn1/a_utctm.c b/src/crypto/asn1/a_utctm.c index 7a3f5f6..52b010f 100644 --- a/src/crypto/asn1/a_utctm.c +++ b/src/crypto/asn1/a_utctm.c @@ -57,6 +57,7 @@ #include <openssl/asn1.h> #include <string.h> +#include <time.h> #include <openssl/err.h> #include <openssl/mem.h> @@ -287,7 +288,7 @@ int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t) if (!OPENSSL_gmtime(&t, &ttm)) return -2; - if (!OPENSSL_gmtime_diff(&day, &sec, &stm, &ttm)) + if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) return -2; if (day > 0) |