Remove NEED_SKEY_1024 parsing.

Only v2 onion services needed this, and they are now gone.

Closes #40374.
This commit is contained in:
Nick Mathewson
2021-04-23 15:55:51 -04:00
parent f0260c4cea
commit 8d0d7a665a
4 changed files with 11 additions and 28 deletions
+2 -5
View File
@@ -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: