summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2014-12-17 17:51:33 +0000
committerdoug <doug@openbsd.org>2014-12-17 17:51:33 +0000
commitc81cfcc3acd0162e621822063e38b68fea9e5902 (patch)
treed37c302aa3179cf439d829ce005571353b398267 /sys/kern/subr_hibernate.c
parentUse log_warnx() not log_warn() for mail loop warning since errno (diff)
downloadwireguard-openbsd-c81cfcc3acd0162e621822063e38b68fea9e5902.tar.xz
wireguard-openbsd-c81cfcc3acd0162e621822063e38b68fea9e5902.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 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions