aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto_format.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-04-20 16:37:39 +0200
committerNick Mathewson <nickm@torproject.org>2017-04-25 08:10:10 -0400
commit69a41e8bc6e148c471ae8ee860e1a43548729db0 (patch)
treecd86685ba71902f0309f0192a5a4ed499ac32cbc /src/common/crypto_format.c
parentc2d1d949dec1db9fb413a02be422dfede3bb53aa (diff)
downloadtor-69a41e8bc6e148c471ae8ee860e1a43548729db0.tar.gz
tor-69a41e8bc6e148c471ae8ee860e1a43548729db0.zip
Use switch-statement in tor_{compress,uncompress}.
Use a switch-statement in `tor_compress()` and `tor_uncompress()` for the given `compress_method_t` parameter. This allows us to have the compiler detect if we forgot add a handler in these functions for a newly added enumeration value. See: https://bugs.torproject.org/21662
Diffstat (limited to 'src/common/crypto_format.c')
0 files changed, 0 insertions, 0 deletions