aboutsummaryrefslogtreecommitdiff
path: root/src/or/channeltls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-10 11:30:33 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:40:10 -0400
commitaf2459f09e86aece0fb0679f7e8abd8f2439ed80 (patch)
tree7c62650c028b86d93dc1a97fd897544b4489ee71 /src/or/channeltls.c
parenta90a111a5f1c2f0c18c9e2baaa6eccd8c7111723 (diff)
downloadtor-af2459f09e86aece0fb0679f7e8abd8f2439ed80.tar.gz
tor-af2459f09e86aece0fb0679f7e8abd8f2439ed80.zip
Unit tests for cert-chain-processing, including failed cases
Check out the coverage!
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r--src/or/channeltls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c
index e5e82dd11f..7a6f0b37ce 100644
--- a/src/or/channeltls.c
+++ b/src/or/channeltls.c
@@ -1954,8 +1954,11 @@ channel_tls_process_certs_cell(var_cell_t *cell, channel_tls_t *chan)
ERR("Couldn't compute digests for key in ID cert");
identity_rcvd = tor_tls_cert_get_key(id_cert);
- if (!identity_rcvd)
+ if (!identity_rcvd) {
+ //LCOV_EXCL_START
ERR("Internal error: Couldn't get RSA key from ID cert.");
+ //LCOV_EXCL_STOP
+ }
memcpy(chan->conn->handshake_state->authenticated_rsa_peer_id,
id_digests->d[DIGEST_SHA1], DIGEST_LEN);
channel_set_circid_type(TLS_CHAN_TO_BASE(chan), identity_rcvd,