diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-10-06 14:22:27 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-10-06 14:22:27 +0200 |
commit | cf85e1319b7072a3a166ad1949a047eab610a4a6 (patch) | |
tree | 57a4d07ad164a79365c5c1e0b2ffafcc4c53fd9f /src/libstrongswan/plugins/x509/x509_ocsp_response.c | |
parent | afdaa9e5bf465848ba24f983f01f0320cecaac8b (diff) | |
download | strongswan-cf85e1319b7072a3a166ad1949a047eab610a4a6.tar.bz2 strongswan-cf85e1319b7072a3a166ad1949a047eab610a4a6.tar.xz |
streamlined output from get_validity()
Diffstat (limited to 'src/libstrongswan/plugins/x509/x509_ocsp_response.c')
-rw-r--r-- | src/libstrongswan/plugins/x509/x509_ocsp_response.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_ocsp_response.c b/src/libstrongswan/plugins/x509/x509_ocsp_response.c index 02713ad33..948d7ad85 100644 --- a/src/libstrongswan/plugins/x509/x509_ocsp_response.c +++ b/src/libstrongswan/plugins/x509/x509_ocsp_response.c @@ -748,16 +748,8 @@ static public_key_t* get_public_key(private_x509_ocsp_response_t *this) static bool get_validity(private_x509_ocsp_response_t *this, time_t *when, time_t *not_before, time_t *not_after) { - time_t t; + time_t t = when ? *when : time(NULL); - if (when == NULL) - { - t = time(NULL); - } - else - { - t = *when; - } if (not_before) { *not_before = this->producedAt; |