From 27dbaf2e9d62402fb258a5aaee9282c9a8c9964e Mon Sep 17 00:00:00 2001 From: morgana Date: Tue, 2 Dec 2008 18:26:33 +0000 Subject: [PATCH] Remove call to RAND_load_file() on Sun systems. Sun now provides /dev/(u)random on systems back to Solaris 2.6. Closes bug #1079670. --- etc/uams/uams_dhx_pam.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/etc/uams/uams_dhx_pam.c b/etc/uams/uams_dhx_pam.c index adb00a1a..47b7b3f6 100644 --- a/etc/uams/uams_dhx_pam.c +++ b/etc/uams/uams_dhx_pam.c @@ -1,5 +1,5 @@ /* - * $Id: uams_dhx_pam.c,v 1.26 2008-12-02 18:24:55 morgana Exp $ + * $Id: uams_dhx_pam.c,v 1.27 2008-12-02 18:26:33 morgana Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) @@ -193,12 +193,6 @@ static int dhx_setup(void *obj, char *ibuf, int ibuflen _U_, BIGNUM *bn, *gbn, *pbn; DH *dh; - /* TODO: seed dhx_setup properly... this is a hack */ -#ifdef sun - /* *SEVERE* hack... fix */ - RAND_load_file("/var/adm/messages", KEYSIZE); -#endif /* sun */ - /* get the client's public key */ if (!(bn = BN_bin2bn(ibuf, KEYSIZE, NULL))) { /* Log Entry */ -- 2.39.2