diff --git a/src/libstrongswan/crypto/certinfo.c b/src/libstrongswan/crypto/certinfo.c index 3d542c994..654e4c2bd 100644 --- a/src/libstrongswan/crypto/certinfo.c +++ b/src/libstrongswan/crypto/certinfo.c @@ -249,7 +249,7 @@ static int print(FILE *stream, const struct printf_info *info, &this->nextUpdate, utc); if (now > this->nextUpdate) { - written += fprintf(stream, "expired (since %V)\n", &now, &this->nextUpdate); + written += fprintf(stream, "expired (%V ago)\n", &now, &this->nextUpdate); } else { diff --git a/src/libstrongswan/crypto/crl.c b/src/libstrongswan/crypto/crl.c index a273b5158..685ccfc8a 100755 --- a/src/libstrongswan/crypto/crl.c +++ b/src/libstrongswan/crypto/crl.c @@ -451,7 +451,7 @@ static int print(FILE *stream, const struct printf_info *info, } else if (now > this->nextUpdate) { - written += fprintf(stream, "expired (since %V)", &now, &this->nextUpdate); + written += fprintf(stream, "expired (%V ago)", &now, &this->nextUpdate); } else if (now > this->nextUpdate - CRL_WARNING_INTERVAL * 60 * 60 * 24) { diff --git a/src/libstrongswan/crypto/x509.c b/src/libstrongswan/crypto/x509.c index 269b2562b..58fcff16d 100755 --- a/src/libstrongswan/crypto/x509.c +++ b/src/libstrongswan/crypto/x509.c @@ -1186,7 +1186,7 @@ static int print(FILE *stream, const struct printf_info *info, written += fprintf(stream, " not after %#T, ", &this->notAfter, utc); if (now > this->notAfter) { - written += fprintf(stream, "expired (since %V)\n", &now, &this->notAfter); + written += fprintf(stream, "expired (%V ago)\n", &now, &this->notAfter); } else {