summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls12_lib.c
diff options
context:
space:
mode:
authortb <>2022-06-07 17:14:17 +0000
committertb <>2022-06-07 17:14:17 +0000
commit84fda0b834c56a0e8aeefe010f345664c6301fde (patch)
treedb2ad61994de76e45fc2e43320edb725cf093600 /src/lib/libssl/tls12_lib.c
parentd0df4d7c22ef21d8e07b0f25f1669cdbab030a3a (diff)
downloadopenbsd-84fda0b834c56a0e8aeefe010f345664c6301fde.tar.gz
openbsd-84fda0b834c56a0e8aeefe010f345664c6301fde.tar.bz2
openbsd-84fda0b834c56a0e8aeefe010f345664c6301fde.zip
Add error checking to tls_session_secret_cb() calls
Failure of this undocumented callback was previously silently ignored. Follow OpenSSL's behavior and throw an internal error (for lack of a better choice) if the callback failed or if it set the master_key_length to a negative number. Unindent the success path and clean up some strange idioms. ok jsing
Diffstat (limited to 'src/lib/libssl/tls12_lib.c')
0 files changed, 0 insertions, 0 deletions