diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-01-20 15:13:05 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-01-20 15:13:05 +0000 |
commit | 2f5914a343ec6b7f2543a22c0a64abd6ab97c5bb (patch) | |
tree | 4d9dfc6dafbc529d13580401f5ddc8896d568e14 /src/libstrongswan/crypto/crl.c | |
parent | 4305c488ed5a2d61c04c37bf2619e40a4164a421 (diff) | |
download | strongswan-2f5914a343ec6b7f2543a22c0a64abd6ab97c5bb.tar.bz2 strongswan-2f5914a343ec6b7f2543a22c0a64abd6ab97c5bb.tar.xz |
fixed 64 bit issue with print time
Diffstat (limited to 'src/libstrongswan/crypto/crl.c')
-rwxr-xr-x | src/libstrongswan/crypto/crl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstrongswan/crypto/crl.c b/src/libstrongswan/crypto/crl.c index b79c474ee..2daf2241b 100755 --- a/src/libstrongswan/crypto/crl.c +++ b/src/libstrongswan/crypto/crl.c @@ -440,22 +440,22 @@ static int print(FILE *stream, const struct printf_info *info, now = time(NULL); - written += fprintf(stream, "%#T, revoked certs: %d\n", this->installed, utc, + written += fprintf(stream, "%#T, revoked certs: %d\n", &this->installed, utc, this->revokedCertificates->get_count(this->revokedCertificates)); written += fprintf(stream, " issuer: '%D'\n", this->issuer); - written += fprintf(stream, " updates: this %#T\n", this->thisUpdate, utc); - written += fprintf(stream, " next %#T ", this->nextUpdate, utc); + written += fprintf(stream, " updates: this %#T\n", &this->thisUpdate, utc); + written += fprintf(stream, " next %#T ", &this->nextUpdate, utc); if (this->nextUpdate == UNDEFINED_TIME) { written += fprintf(stream, "ok (expires never)"); } else if (now > this->nextUpdate) { - written += fprintf(stream, "expired (since %V)", now, this->nextUpdate); + written += fprintf(stream, "expired (since %V)", &now, &this->nextUpdate); } else if (now > this->nextUpdate - CRL_WARNING_INTERVAL * 60 * 60 * 24) { - written += fprintf(stream, "ok (expires in %V)", now, this->nextUpdate); + written += fprintf(stream, "ok (expires in %V)", &now, &this->nextUpdate); } else { |