summaryrefslogtreecommitdiff
path: root/accel-pppd/auth/auth_mschap_v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/auth/auth_mschap_v2.c')
-rw-r--r--accel-pppd/auth/auth_mschap_v2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/accel-pppd/auth/auth_mschap_v2.c b/accel-pppd/auth/auth_mschap_v2.c
index cb97207..d067f0b 100644
--- a/accel-pppd/auth/auth_mschap_v2.c
+++ b/accel-pppd/auth/auth_mschap_v2.c
@@ -38,8 +38,6 @@ static char *conf_msg_failure = "E=691 R=0 V=3";
static char *conf_msg_failure2 = "Authentication failure";
static char *conf_msg_success = "Authentication successed";
-static int urandom_fd;
-
struct chap_hdr_t
{
uint16_t proto;
@@ -637,12 +635,6 @@ static void load_config(void)
static void auth_mschap_v2_init()
{
- urandom_fd = open("/dev/urandom", O_RDONLY);
- if (urandom_fd < 0) {
- log_emerg("mschap-v2: failed to open /dev/urandom: %s\n", strerror(errno));
- return;
- }
-
load_config();
if (ppp_auth_register_handler(&chap))