diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-05-30 05:27:33 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-05-30 05:27:33 +0000 |
commit | d75065b898e89c0bb581c1d651930906f3d6f01f (patch) | |
tree | 49ab79ada841e52e32ce08a1099c2d4e2ae77e03 /lib/libcurses/curs_ins_wstr.3 | |
parent | baca2a63aaa16077581bd9c1b49e8a1096ff9c53 (diff) |
While working on another diff I ended up looking to see why on earth the
DTLS code had a chunk that checked to see if the SSL version was *not*
DTLS. Turns out that this is inside a big #if 0 block with a comment
explaining why DTLS will never need this code...
The DTLS code was clearly written by wholesale copying the SSLv3 code.
Any code not applicable to DTLS was seemingly #if 0'd or commented out
and left for others to find.
d1_pkt.c is copied from s3_pkt.c and it has a do_dtls1_write() function
that has the same function signature as do_ssl3_write(), except that the
create_empty_fragement (yes, that is the spelling in ssl_locl.h) argument
is unused for DTLS (although there is code that pretends to use it) since
it uses explicit IV (as the comment notes).
Instead of leaving this turd lying around, nuke the #if 0'd code (along
with the check for *not* DTLS) and remove the pointless
create_empty_fragment argument given the only two do_dtls1_write() calls
specify zero.
This kind of thing also makes you wonder how much actual peer review
occurred before the code was initially committed...
ok beck@
Diffstat (limited to 'lib/libcurses/curs_ins_wstr.3')
0 files changed, 0 insertions, 0 deletions