diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-04-23 15:55:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-04-23 15:55:51 -0400 |
commit | 8d0d7a665a5f86caa5486308ce25ac1b1f7b52bc (patch) | |
tree | 726b32c9d64c38e35624e4d96f26aca37f1f2339 /src/test/test_parsecommon.c | |
parent | f0260c4cea6da784369e8d47f0b4bf01863c5af5 (diff) | |
download | tor-8d0d7a665a5f86caa5486308ce25ac1b1f7b52bc.tar.gz tor-8d0d7a665a5f86caa5486308ce25ac1b1f7b52bc.zip |
Remove NEED_SKEY_1024 parsing.
Only v2 onion services needed this, and they are now gone.
Closes #40374.
Diffstat (limited to 'src/test/test_parsecommon.c')
-rw-r--r-- | src/test/test_parsecommon.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/test/test_parsecommon.c b/src/test/test_parsecommon.c index d270a430d8..b32840264e 100644 --- a/src/test/test_parsecommon.c +++ b/src/test/test_parsecommon.c @@ -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: |