diff options
author | deraadt <> | 2001-01-02 23:03:49 +0000 |
---|---|---|
committer | deraadt <> | 2001-01-02 23:03:49 +0000 |
commit | f3315ef2b941ac47909f427a6db39ed51459e3b0 (patch) | |
tree | 1c54da557168553515928c2e307ef8b713cad607 /src/lib/libcrypto/threads | |
parent | b11608439e707f8c7601b090028e530ea5a1e067 (diff) | |
download | openbsd-f3315ef2b941ac47909f427a6db39ed51459e3b0.tar.gz openbsd-f3315ef2b941ac47909f427a6db39ed51459e3b0.tar.bz2 openbsd-f3315ef2b941ac47909f427a6db39ed51459e3b0.zip |
do not honour environment variables if issetugid, and even more strongly support the random device
Diffstat (limited to 'src/lib/libcrypto/threads')
-rw-r--r-- | src/lib/libcrypto/threads/mttest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/threads/mttest.c b/src/lib/libcrypto/threads/mttest.c index 100165948c..019add4d9c 100644 --- a/src/lib/libcrypto/threads/mttest.c +++ b/src/lib/libcrypto/threads/mttest.c | |||
@@ -248,7 +248,8 @@ bad: | |||
248 | goto end; | 248 | goto end; |
249 | } | 249 | } |
250 | 250 | ||
251 | if (cipher == NULL) cipher=getenv("SSL_CIPHER"); | 251 | if (cipher == NULL && issetugid() == 0) |
252 | cipher=getenv("SSL_CIPHER"); | ||
252 | 253 | ||
253 | SSL_load_error_strings(); | 254 | SSL_load_error_strings(); |
254 | OpenSSL_add_ssl_algorithms(); | 255 | OpenSSL_add_ssl_algorithms(); |