Add constness to length variables in `tor_tls_cert_matches_key`.
commit06f1e959c218bfbe0b85bbd0acc59b8f408fbc99
authorAlexander Færøy <ahf@torproject.org>
Sat, 16 May 2020 15:34:37 +0000 (16 15:34 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 6 Jul 2020 20:19:16 +0000 (6 16:19 -0400)
tree43a4659e60523b3327592a2fe50177aac0dd9dc3
parentb46984e97ec4064ac8178ea9b3bf6985a4f2f632
Add constness to length variables in `tor_tls_cert_matches_key`.

We add constness to `peer_info_orig_len` and `cert_info_orig_len` in
`tor_tls_cert_matches_key` to ensure that we don't accidentally alter
the variables.

This patch is part of the fix for TROVE-2020-001.

See: https://bugs.torproject.org/33119
src/lib/tls/tortls_nss.c