diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-06-05 15:44:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-06-05 15:44:36 -0400 |
commit | d5acdadaeffa8e1c61abef5881e9cc6e42d9a755 (patch) | |
tree | ee2887749e97b34092109038dfe3a784df34155c /src/test/test_link_handshake.c | |
parent | d1c1dc229e189cbf4e463b82751af007801a02eb (diff) | |
parent | e5bdfd66cf03e8410c511f6dcf309142c64c85f5 (diff) | |
download | tor-d5acdadaeffa8e1c61abef5881e9cc6e42d9a755.tar.gz tor-d5acdadaeffa8e1c61abef5881e9cc6e42d9a755.zip |
Merge branch 'bug22460_030_01' into maint-0.3.0
Diffstat (limited to 'src/test/test_link_handshake.c')
-rw-r--r-- | src/test/test_link_handshake.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/test_link_handshake.c b/src/test/test_link_handshake.c index b3e854ef76..ade7cf6998 100644 --- a/src/test/test_link_handshake.c +++ b/src/test/test_link_handshake.c @@ -911,6 +911,11 @@ test_link_handshake_send_authchallenge(void *arg) or_connection_t *c1 = or_connection_new(CONN_TYPE_OR, AF_INET); var_cell_t *cell1=NULL, *cell2=NULL; + crypto_pk_t *rsa0 = pk_generate(0), *rsa1 = pk_generate(1); + tt_int_op(tor_tls_context_init(TOR_TLS_CTX_IS_PUBLIC_SERVER, + rsa0, rsa1, 86400), ==, 0); + init_mock_ed_keys(rsa0); + MOCK(connection_or_write_var_cell_to_buf, mock_write_var_cell); tt_int_op(connection_init_or_handshake_state(c1, 0), ==, 0); @@ -936,6 +941,8 @@ test_link_handshake_send_authchallenge(void *arg) connection_free_(TO_CONN(c1)); tor_free(cell1); tor_free(cell2); + crypto_pk_free(rsa0); + crypto_pk_free(rsa1); } typedef struct authchallenge_data_s { |