diff options
Diffstat (limited to 'src/libstrongswan/crypto/crl.c')
-rwxr-xr-x | src/libstrongswan/crypto/crl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libstrongswan/crypto/crl.c b/src/libstrongswan/crypto/crl.c index b79c474ee..864dbf105 100755 --- a/src/libstrongswan/crypto/crl.c +++ b/src/libstrongswan/crypto/crl.c @@ -315,9 +315,9 @@ static err_t is_valid(const private_crl_t *this, time_t *until, bool strict) { time_t current_time = time(NULL); - DBG2(" this update : %T", this->thisUpdate); - DBG2(" current time: %T", current_time); - DBG2(" next update: %T", this->nextUpdate); + DBG2(" this update : %T", &this->thisUpdate); + DBG2(" current time: %T", ¤t_time); + DBG2(" next update: %T", &this->nextUpdate); if (strict && until != NULL && (*until == UNDEFINED_TIME || this->nextUpdate < *until)) @@ -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 { |