diff options
author | tb <> | 2022-06-07 17:14:17 +0000 |
---|---|---|
committer | tb <> | 2022-06-07 17:14:17 +0000 |
commit | 84fda0b834c56a0e8aeefe010f345664c6301fde (patch) | |
tree | db2ad61994de76e45fc2e43320edb725cf093600 /src/lib/libssl/tls12_lib.c | |
parent | d0df4d7c22ef21d8e07b0f25f1669cdbab030a3a (diff) | |
download | openbsd-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