summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authortedu <>2015-01-07 15:46:23 +0000
committertedu <>2015-01-07 15:46:23 +0000
commite940bceab13a32c9af44d3254ff07896ccc2343e (patch)
treea8d9116352c580e672f335db5105948cd1131e79 /src/lib/libc/stdlib
parent84d3a443bfbb7a97be016bcdc5e73d244c6987ad (diff)
downloadopenbsd-e940bceab13a32c9af44d3254ff07896ccc2343e.tar.gz
openbsd-e940bceab13a32c9af44d3254ff07896ccc2343e.tar.bz2
openbsd-e940bceab13a32c9af44d3254ff07896ccc2343e.zip
set errno = EINVAL for invalid salts and hashes in most functions.
remember to set EACCES in bcrypt_checkpass for hash differences. the higher level crypt_checkpass function will reset errno to EACCES in all cases, which is probably the right behavior, but this change gives code working with the lower level functions the correct errno if they care.
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions