Fix strcpy/strcat abuse and fix stupid behaviour of the default
authorbeck <beck@openbsd.org>
Sun, 16 Apr 2000 23:50:12 +0000 (23:50 +0000)
committerbeck <beck@openbsd.org>
Sun, 16 Apr 2000 23:50:12 +0000 (23:50 +0000)
commit535f5ec40a728dc6af0cadeeb79a35554c7a1548
tree348df84296fe380d43d170686ccf565e89376bf0
parentf0e569bb86952ac3468f6f9690e9cbc70c40ff36
Fix strcpy/strcat abuse and fix stupid behaviour of the default
RAND_file_name - changed so that it stats the filename it returns
before returing it. If the file won't stat, return DEVRANDOM (for us
/dev/arandom) instead, thus making the default behaviour moderately
intelligent.
lib/libcrypto/rand/randfile.c
lib/libssl/src/crypto/rand/randfile.c