diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-14 22:21:45 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-15 15:57:41 -0500 |
commit | 87622e4c7e1a3b5c80e67141de7947d0304b6f31 (patch) | |
tree | f0ad2edc8f1562fb278e2d6f752edbc43f7e0040 /src/common/tortls.h | |
parent | 26fcb4bb8c9d3f994a678b641db7b1c91fad8346 (diff) | |
download | tor-87622e4c7e1a3b5c80e67141de7947d0304b6f31.tar.gz tor-87622e4c7e1a3b5c80e67141de7947d0304b6f31.zip |
Allow up to a 30 days future skew, 48 hours past skew in certs.
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index d0a13cd804..6791586f1d 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -68,7 +68,8 @@ void tor_tls_free(tor_tls_t *tls); int tor_tls_peer_has_cert(tor_tls_t *tls); tor_cert_t *tor_tls_get_peer_cert(tor_tls_t *tls); int tor_tls_verify(int severity, tor_tls_t *tls, crypto_pk_env_t **identity); -int tor_tls_check_lifetime(tor_tls_t *tls, int tolerance); +int tor_tls_check_lifetime(tor_tls_t *tls, int past_tolerance, + int future_tolerance); int tor_tls_read(tor_tls_t *tls, char *cp, size_t len); int tor_tls_write(tor_tls_t *tls, const char *cp, size_t n); int tor_tls_handshake(tor_tls_t *tls); |