"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/test/test_parsecommon.c" between
tor-0.4.6.3-rc.tar.gz and tor-0.4.6.4-rc.tar.gz

About: Tor is an anonymous Internet communication system - a network of virtual tunnels that allows people and groups to improve their privacy and security on the Internet. Release candidate.

test_parsecommon.c  (tor-0.4.6.3-rc):test_parsecommon.c  (tor-0.4.6.4-rc)
skipping to change at line 329 skipping to change at line 329
"iQsUbHwMJuGONvzWpRGPBP2f8xBd28ZtxwJARY+LZshtpfNniz/ixYJESaHG28je\n" "iQsUbHwMJuGONvzWpRGPBP2f8xBd28ZtxwJARY+LZshtpfNniz/ixYJESaHG28je\n"
"xfjbKOW3TQSFV+2WTifFvHEeljQwKMoMyoMGvYRwLCGJjs9JtMLVxsdFjQJBAKwD\n" "xfjbKOW3TQSFV+2WTifFvHEeljQwKMoMyoMGvYRwLCGJjs9JtMLVxsdFjQJBAKwD\n"
"3BBvBQ39TuPQ1zWX4tb7zjMlY83HTFP3Sriq71tP/1QWoL2SUl56B2lp8E6vB/C3\n" "3BBvBQ39TuPQ1zWX4tb7zjMlY83HTFP3Sriq71tP/1QWoL2SUl56B2lp8E6vB/C3\n"
"wsMK4SCNprHRYAd7VZ0CQDKn6Zhd11P94PLs0msybFEh1VXr6CEW/BrxBgbL4ls6\n" "wsMK4SCNprHRYAd7VZ0CQDKn6Zhd11P94PLs0msybFEh1VXr6CEW/BrxBgbL4ls6\n"
"dbX5XO0z4Ra8gYXgObgimhyMDYO98Idt5+Z3HIdyrSc=\n" "dbX5XO0z4Ra8gYXgObgimhyMDYO98Idt5+Z3HIdyrSc=\n"
"-----END RSA PRIVATE KEY-----\n"; "-----END RSA PRIVATE KEY-----\n";
const char *end2 = str2 + strlen(str2); const char *end2 = str2 + strlen(str2);
const char **s2 = (const char **)&str2; const char **s2 = (const char **)&str2;
token_rule_t rule2 = T01("client-key", C_CLIENT_KEY, NO_ARGS, token_rule_t rule2 = T01("client-key", C_CLIENT_KEY, NO_ARGS, OBJ_OK);
NEED_SKEY_1024);
token2 = get_next_token(area, s2, end2, &rule2); token2 = get_next_token(area, s2, end2, &rule2);
tt_assert(token2); tt_assert(token2);
tt_int_op(token2->tp, OP_EQ, C_CLIENT_KEY); tt_int_op(token2->tp, OP_EQ, C_CLIENT_KEY);
tt_int_op(token2->n_args, OP_EQ, 0); tt_int_op(token2->n_args, OP_EQ, 0);
tt_str_op(token2->object_type, OP_EQ, "RSA PRIVATE KEY"); tt_str_op(token2->object_type, OP_EQ, "RSA PRIVATE KEY");
tt_int_op(token2->object_size, OP_EQ, 608); tt_int_op(token2->object_size, OP_EQ, 608);
tt_assert(token2->object_body); tt_assert(token2->object_body);
tt_assert(token2->key); tt_assert(token2->key == NULL);
tt_assert(!token->error); tt_assert(!token->error);
done: done:
if (token) token_clear(token); if (token) token_clear(token);
if (token2) token_clear(token2); if (token2) token_clear(token2);
memarea_drop_all(area); memarea_drop_all(area);
} }
static void static void
test_parsecommon_get_next_token_object(void *arg) test_parsecommon_get_next_token_object(void *arg)
 End of changes. 3 change blocks. 
5 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)