aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-02 08:26:49 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-02 08:26:49 -0400
commitbf3e899dcef368a021033c6845b93c08884dae02 (patch)
tree700dfbff69aafea78afd5d9d3dd64945e965551b /src/test/test_tortls.c
parentb116710e313c6debf9bc172e462837782def57bd (diff)
parent75f3fbaa3c7316fcef3509ef1e3813b94d8c4c8a (diff)
downloadtor-bf3e899dcef368a021033c6845b93c08884dae02.tar.gz
tor-bf3e899dcef368a021033c6845b93c08884dae02.zip
Merge branch 'libressl_201805_029' into maint-0.3.3
Diffstat (limited to 'src/test/test_tortls.c')
-rw-r--r--src/test/test_tortls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c
index 29f7cc9c37..ef038c661e 100644
--- a/src/test/test_tortls.c
+++ b/src/test/test_tortls.c
@@ -841,8 +841,10 @@ test_tortls_classify_client_ciphers(void *ignored)
sk_SSL_CIPHER_zero(ciphers);
one = get_cipher_by_name("ECDHE-RSA-AES256-GCM-SHA384");
+ tt_assert(one);
one->id = 0x00ff;
two = get_cipher_by_name("ECDHE-RSA-AES128-GCM-SHA256");
+ tt_assert(two);
two->id = 0x0000;
sk_SSL_CIPHER_push(ciphers, one);
tls->client_cipher_list_type = 0;
@@ -913,6 +915,7 @@ test_tortls_client_is_using_v2_ciphers(void *ignored)
ciphers = sk_SSL_CIPHER_new_null();
SSL_CIPHER *one = get_cipher_by_name("ECDHE-RSA-AES256-GCM-SHA384");
+ tt_assert(one);
one->id = 0x00ff;
sk_SSL_CIPHER_push(ciphers, one);
sess->ciphers = ciphers;