diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-06-01 09:42:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-06-01 09:42:32 -0400 |
commit | f2068ef8626302f7dce44bf206c4e83d4af7abba (patch) | |
tree | a4eba6ce64931b5e2638497c4f96de39039ab72b /src/or/torcert.c | |
parent | 5b33d95a3dfe943625d78983bb53be2901a51150 (diff) | |
download | tor-f2068ef8626302f7dce44bf206c4e83d4af7abba.tar.gz tor-f2068ef8626302f7dce44bf206c4e83d4af7abba.zip |
Use tor_assert_nonfatal() to try to detect #22466
Diffstat (limited to 'src/or/torcert.c')
-rw-r--r-- | src/or/torcert.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/torcert.c b/src/or/torcert.c index c58f3da2d3..edc52004c2 100644 --- a/src/or/torcert.c +++ b/src/or/torcert.c @@ -302,6 +302,10 @@ tor_make_rsa_ed25519_crosscert(const ed25519_public_key_t *ed_key, time_t expires, uint8_t **cert) { + // It is later than 1985, since otherwise there would be no C89 + // compilers. (Try to diagnose #22466.) + tor_assert_nonfatal(expires >= 15 * 365 * 86400); + uint8_t *res; rsa_ed_crosscert_t *cc = rsa_ed_crosscert_new(); |