diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-30 08:48:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-03 08:37:22 -0400 |
commit | fae7060aea5c562fc59e7089b6a3459a5718b2d0 (patch) | |
tree | eacff22a1786872d336b6099c3fabce28b22b2c0 /src/or/torcert.h | |
parent | 0b4221f98dbb93c9322e7a778f04bcbcfcc79738 (diff) | |
download | tor-fae7060aea5c562fc59e7089b6a3459a5718b2d0.tar.gz tor-fae7060aea5c562fc59e7089b6a3459a5718b2d0.zip |
Fix a misfeature with the Ed cert expiration API
The batch-verification helper didn't expose the expiration time,
which made it pretty error-prone.
This closes ticket 15087.
Diffstat (limited to 'src/or/torcert.h')
-rw-r--r-- | src/or/torcert.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/torcert.h b/src/or/torcert.h index f851b92036..143a2aa3a0 100644 --- a/src/or/torcert.h +++ b/src/or/torcert.h @@ -57,8 +57,9 @@ tor_cert_t *tor_cert_parse(const uint8_t *cert, size_t certlen); void tor_cert_free(tor_cert_t *cert); int tor_cert_get_checkable_sig(ed25519_checkable_t *checkable_out, - const tor_cert_t *out, - const ed25519_public_key_t *pubkey); + const tor_cert_t *out, + const ed25519_public_key_t *pubkey, + time_t *expiration_out); int tor_cert_checksig(tor_cert_t *cert, const ed25519_public_key_t *pubkey, time_t now); |