diff options
author | doug <> | 2014-12-17 17:51:33 +0000 |
---|---|---|
committer | doug <> | 2014-12-17 17:51:33 +0000 |
commit | 8ee1a1e4a4c52092060a915a644f80202aba054a (patch) | |
tree | 6b23fc9e20f81f6dc09a6fb3d8bac2a4246a7ab9 /src/lib/libc/crypt/cryptutil.c | |
parent | 1711181cf04802398af99b3d8ffff8829eb38455 (diff) | |
download | openbsd-8ee1a1e4a4c52092060a915a644f80202aba054a.tar.gz openbsd-8ee1a1e4a4c52092060a915a644f80202aba054a.tar.bz2 openbsd-8ee1a1e4a4c52092060a915a644f80202aba054a.zip |
Add size_t to int checks for SSL functions.
libtls accepts size_t for lengths but libssl accepts int. This verifies
that the input does not exceed INT_MAX. It also avoids truncating size_t
when comparing with int and adds printf-style attributes for
tls_set_error().
with input from deraadt@ and tedu@
ok tedu@
Diffstat (limited to 'src/lib/libc/crypt/cryptutil.c')
0 files changed, 0 insertions, 0 deletions