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
commit5c9b3b611b1c619f5126563f11242854906c7a01 (patch)
treea8d9116352c580e672f335db5105948cd1131e79 /src/lib/libc/stdlib
parentff0c9188b62e1decc7b1dffce46d25332dbf8b26 (diff)
downloadopenbsd-5c9b3b611b1c619f5126563f11242854906c7a01.tar.gz
openbsd-5c9b3b611b1c619f5126563f11242854906c7a01.tar.bz2
openbsd-5c9b3b611b1c619f5126563f11242854906c7a01.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