mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Remove NEED_SKEY_1024 parsing.
Only v2 onion services needed this, and they are now gone. Closes #40374.
This commit is contained in:
@@ -326,18 +326,15 @@ test_parsecommon_get_next_token_parse_keys(void *arg)
|
||||
const char *end2 = str2 + strlen(str2);
|
||||
const char **s2 = (const char **)&str2;
|
||||
|
||||
token_rule_t rule2 = T01("client-key", C_CLIENT_KEY, NO_ARGS,
|
||||
NEED_SKEY_1024);
|
||||
|
||||
token_rule_t rule2 = T01("client-key", C_CLIENT_KEY, NO_ARGS, OBJ_OK);
|
||||
token2 = get_next_token(area, s2, end2, &rule2);
|
||||
tt_assert(token2);
|
||||
|
||||
tt_int_op(token2->tp, OP_EQ, C_CLIENT_KEY);
|
||||
tt_int_op(token2->n_args, OP_EQ, 0);
|
||||
tt_str_op(token2->object_type, OP_EQ, "RSA PRIVATE KEY");
|
||||
tt_int_op(token2->object_size, OP_EQ, 608);
|
||||
tt_assert(token2->object_body);
|
||||
tt_assert(token2->key);
|
||||
tt_assert(token2->key == NULL);
|
||||
tt_assert(!token->error);
|
||||
|
||||
done:
|
||||
|
||||
Reference in New Issue
Block a user