summaryrefslogtreecommitdiff
path: root/src/or/torcert.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-05 09:52:09 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-05 09:52:09 -0400
commit26d9fffae428a186e92ffa53053da76bea519fec (patch)
tree127b789e3f1f22dc920c006cddf170f137f61b7e /src/or/torcert.c
parentbe741d7e63b06fe103caab3db4b64ada45bd6bae (diff)
parentf2068ef8626302f7dce44bf206c4e83d4af7abba (diff)
downloadtor-26d9fffae428a186e92ffa53053da76bea519fec.tar.gz
tor-26d9fffae428a186e92ffa53053da76bea519fec.zip
Merge branch 'bug22466_diagnostic_030'
Diffstat (limited to 'src/or/torcert.c')
-rw-r--r--src/or/torcert.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/torcert.c b/src/or/torcert.c
index ef9e78bfe7..658e620ca5 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();