Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 565394 | Differences between
and this patch

Collapse All | Expand All

(-)a/tls.c (+2 lines)
Lines 73-82 Link Here
73
		printf("egd_sock is %s\n", egd_sock);
73
		printf("egd_sock is %s\n", egd_sock);
74
#ifdef HAVE_RAND_STATUS
74
#ifdef HAVE_RAND_STATUS
75
	if (RAND_status() != 1) {
75
	if (RAND_status() != 1) {
76
#ifndef OPENSSL_NO_EGD
76
		if ( RAND_egd(egd_sock) == -1 ) {
77
		if ( RAND_egd(egd_sock) == -1 ) {
77
			fprintf(stderr, "egd_sock is %s\n", egd_sock);
78
			fprintf(stderr, "egd_sock is %s\n", egd_sock);
78
			sys_err("RAND_egd failed\n");
79
			sys_err("RAND_egd failed\n");
79
		}
80
		}
81
#endif
80
		if (RAND_status() != 1)
82
		if (RAND_status() != 1)
81
			sys_err("ssl_init: System without /dev/urandom, PRNG seeding must be done manually.\r\n");
83
			sys_err("ssl_init: System without /dev/urandom, PRNG seeding must be done manually.\r\n");
82
	}
84
	}

Return to bug 565394