summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/threads/mttest.c
diff options
context:
space:
mode:
authorderaadt <>2001-01-02 23:03:49 +0000
committerderaadt <>2001-01-02 23:03:49 +0000
commitf3315ef2b941ac47909f427a6db39ed51459e3b0 (patch)
tree1c54da557168553515928c2e307ef8b713cad607 /src/lib/libcrypto/threads/mttest.c
parentb11608439e707f8c7601b090028e530ea5a1e067 (diff)
downloadopenbsd-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/mttest.c')
-rw-r--r--src/lib/libcrypto/threads/mttest.c3
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();