summaryrefslogtreecommitdiff
path: root/src/or/torcert.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-10 20:02:03 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:37:22 -0400
commit0b4221f98dbb93c9322e7a778f04bcbcfcc79738 (patch)
tree7bae3403a060841faa121ecab87aff4b9cf86e52 /src/or/torcert.h
parente3c825372180be00aff9c8e5cde60ea36d141f8c (diff)
downloadtor-0b4221f98dbb93c9322e7a778f04bcbcfcc79738.tar.gz
tor-0b4221f98dbb93c9322e7a778f04bcbcfcc79738.zip
Make the current time an argument to x509 cert-checking functions
This makes the code a bit cleaner by having more of the functions be pure functions that don't depend on the current time.
Diffstat (limited to 'src/or/torcert.h')
-rw-r--r--src/or/torcert.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/torcert.h b/src/or/torcert.h
index 39439d9d13..f851b92036 100644
--- a/src/or/torcert.h
+++ b/src/or/torcert.h
@@ -81,8 +81,8 @@ or_handshake_certs_t *or_handshake_certs_new(void);
void or_handshake_certs_free(or_handshake_certs_t *certs);
int or_handshake_certs_rsa_ok(int severity,
or_handshake_certs_t *certs,
- tor_tls_t *tls);
-int or_handshake_certs_ed25519_ok(or_handshake_certs_t *certs);
+ tor_tls_t *tls,
+ time_t now);
#endif