projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename some BUF_xxx to OPENSSL_xxx
[openssl.git]
/
crypto
/
rand
/
rand_egd.c
diff --git
a/crypto/rand/rand_egd.c
b/crypto/rand/rand_egd.c
index d062dd6cd4876b967a919eced85f0da7b59e01af..ea3621c44fb81ebe5db1c962516c3e60a76ba995 100644
(file)
--- a/
crypto/rand/rand_egd.c
+++ b/
crypto/rand/rand_egd.c
@@
-54,9
+54,9
@@
*
*/
*
*/
+#include <openssl/crypto.h>
#include <openssl/e_os2.h>
#include <openssl/rand.h>
#include <openssl/e_os2.h>
#include <openssl/rand.h>
-#include <openssl/buffer.h>
/*-
* Query the EGD <URL: http://www.lothar.com/tech/crypto/>.
/*-
* Query the EGD <URL: http://www.lothar.com/tech/crypto/>.
@@
-144,7
+144,7
@@
int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes)
addr.sun_family = AF_UNIX;
if (strlen(path) >= sizeof(addr.sun_path))
return (-1);
addr.sun_family = AF_UNIX;
if (strlen(path) >= sizeof(addr.sun_path))
return (-1);
-
BUF
_strlcpy(addr.sun_path, path, sizeof addr.sun_path);
+
OPENSSL
_strlcpy(addr.sun_path, path, sizeof addr.sun_path);
len = offsetof(struct sockaddr_un, sun_path) + strlen(path);
fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd == -1)
len = offsetof(struct sockaddr_un, sun_path) + strlen(path);
fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd == -1)