diff options
author | Matt Johnston <matt@ucc.asn.au> | 2005-07-18 14:32:52 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2005-07-18 14:32:52 +0000 |
commit | e444f0cfe67c71d3f38854f27cefae9aea6c4cd9 (patch) | |
tree | 7539060f852ea180fe550525412f7345a464adba /random.c | |
parent | b8e28df43a1d37b5a50b34db357daea98c42a89c (diff) |
- progress towards client agent forwarding
(incomplete and does not compile)
--HG--
branch : agent-client
extra : convert_revision : 01038174ec27245b51bd43a66c01ad930880f67b
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -68,12 +68,8 @@ static void readrand(unsigned char* buf, unsigned int buflen) { #endif #ifdef DROPBEAR_PRNGD_SOCKET - memset((void*)&egdsock, 0x0, sizeof(egdsock)); - egdsock.sun_family = AF_UNIX; - strlcpy(egdsock.sun_path, DROPBEAR_PRNGD_SOCKET, - sizeof(egdsock.sun_path)); + readfd = connect_unix(DROPBEAR_PRNGD_SOCKET); - readfd = socket(PF_UNIX, SOCK_STREAM, 0); if (readfd < 0) { dropbear_exit("couldn't open random device"); } |