mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Check onion keys in microdescriptors, too
This commit is contained in:
parent
2e85c3a5c9
commit
480a75cbbd
4
changes/bug3207
Normal file
4
changes/bug3207
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes:
|
||||
- Require that onion keys have exponent 65537 in microdescriptors too.
|
||||
Fixes part of bug 3207; bugfix on 0.2.2.25-alpha
|
||||
|
@ -4336,6 +4336,11 @@ microdescs_parse_from_string(const char *s, const char *eos,
|
||||
}
|
||||
|
||||
tok = find_by_keyword(tokens, K_ONION_KEY);
|
||||
if (!crypto_pk_check_key_public_exponent(tok->key)) {
|
||||
log_warn(LD_DIR,
|
||||
"Relay's onion key had invalid exponent.");
|
||||
goto next;
|
||||
}
|
||||
md->onion_pkey = tok->key;
|
||||
tok->key = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user