diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-02-15 17:08:49 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-02-15 17:08:49 -0800 |
commit | 4247fc89d9dba503a1eb6e211eae604835d782f7 (patch) | |
tree | d54ec9d63195e5af4c15fede15703ccb1b0fffff /vm.h | |
parent | c3a0ceb2cea1a9d43f2baf5a2e63d0d712c8df19 (diff) | |
download | txr-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 'vm.h')
0 files changed, 0 insertions, 0 deletions