mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-17 23:54:35 +00:00
Fix ifdefs around get_random_bytes_prngd.
get_random_bytes_prngd() is used if either of PRNGD_PORT or PRNGD_SOCKET are defined, so adjust ifdef accordingly.
This commit is contained in:
parent
0767627cf6
commit
f841fc9c8c
@ -44,7 +44,7 @@
|
||||
#include "misc.h"
|
||||
#include "log.h"
|
||||
|
||||
#ifdef PRNGD_SOCKET
|
||||
#if defined(PRNGD_PORT) || defined(PRNGD_SOCKET)
|
||||
/*
|
||||
* EGD/PRNGD interface.
|
||||
*
|
||||
@ -145,7 +145,7 @@ done:
|
||||
close(fd);
|
||||
return rval;
|
||||
}
|
||||
#endif /* PRNGD_SOCKET */
|
||||
#endif /* PRNGD_PORT || PRNGD_SOCKET */
|
||||
|
||||
int
|
||||
seed_from_prngd(unsigned char *buf, size_t bytes)
|
||||
|
Loading…
Reference in New Issue
Block a user