summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-02-15 17:08:49 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-02-15 17:08:49 -0800
commit4247fc89d9dba503a1eb6e211eae604835d782f7 (patch)
treed54ec9d63195e5af4c15fede15703ccb1b0fffff /stream.c
parentc3a0ceb2cea1a9d43f2baf5a2e63d0d712c8df19 (diff)
downloadtxr-4247fc89d9dba503a1eb6e211eae604835d782f7.tar.gz
txr-4247fc89d9dba503a1eb6e211eae604835d782f7.tar.bz2
txr-4247fc89d9dba503a1eb6e211eae604835d782f7.zip
crypt: refactor hardening a bit.
* sysif.c (validate_salt): Take const wchar_t * argument instead of val. Set errno and return null pointer instead of throwing, so we don't have two places that throw an exception related to crypt. (crypt_wrap): Put exception at the end. Return hash only if validate_salt returns a non-null pointer and so does crypt. In all other cases, reach exception call.
Diffstat (limited to 'stream.c')
0 files changed, 0 insertions, 0 deletions