diff options
| author | Sam Varshavchik | 2022-05-23 21:01:44 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2022-05-23 21:01:44 -0400 | 
| commit | 27df85cdad37e4945b1144ed2d4be92b40e4519f (patch) | |
| tree | c6eb242df4318b0a8f189f2bf12a3cd6241c18f9 /tcpd/libcouriertls.c | |
| parent | 545e97ccb9facf67865f8f758053d440e9076de0 (diff) | |
| download | courier-libs-27df85cdad37e4945b1144ed2d4be92b40e4519f.tar.bz2 | |
openssl 3.0 fixes.
Diffstat (limited to 'tcpd/libcouriertls.c')
| -rw-r--r-- | tcpd/libcouriertls.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/tcpd/libcouriertls.c b/tcpd/libcouriertls.c index 9c2847a..22b9593 100644 --- a/tcpd/libcouriertls.c +++ b/tcpd/libcouriertls.c @@ -1017,6 +1017,8 @@ SSL_CTX *tls_create_int(int isserver, const struct tls_info *info,  			SSLeay_add_ssl_algorithms();  #endif +#if OPENSSL_VERSION_MAJOR < 3 +  			while (RAND_status() != 1)  			{  				const char *p=random128(); @@ -1024,6 +1026,7 @@ SSL_CTX *tls_create_int(int isserver, const struct tls_info *info,  				RAND_add(p, l, l/16);  			} +#endif  		}  	} | 
