summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto
diff options
context:
space:
mode:
authorderaadt <>2015-04-11 16:16:15 +0000
committerderaadt <>2015-04-11 16:16:15 +0000
commit0f4348bfcce7ca22317af7acf3b98ba84ad07eaa (patch)
tree4cf4654b69cedb1946aed375cd29d1ff7cc53a6c /src/lib/libcrypto/crypto
parent3f6d0024da68bdf5d0f128537ac3ed536e6e6a6c (diff)
downloadopenbsd-0f4348bfcce7ca22317af7acf3b98ba84ad07eaa.tar.gz
openbsd-0f4348bfcce7ca22317af7acf3b98ba84ad07eaa.tar.bz2
openbsd-0f4348bfcce7ca22317af7acf3b98ba84ad07eaa.zip
Send OPENSSL_issetugid() straight to hell, no final cigarette.
The issetugid() API is supposed to make a strong promise where "0 means it is safe to look at the environment". Way back in the past someone on the OpenSSL team responded to the environment access danger by creating a wrapper called OPENSSL_issetugid, and went to use it a number of places. However, by default on systems lacking true issetugid(), OPENSSL_issetugid returns 0. 0 indicating safely. False safety. Which means OPENSSL_issetugid() fails to make any sort of promise about safety, in fact it is just the opposite. Can you believe the OpenSSL team? This nastiness was noticed over the years, however noone could gain traction and get it fixed in OpenSSL. Also see a paragraph about this in http://www.tedunangst.com/flak/post/worst-common-denominator-programming ok jsing
Diffstat (limited to 'src/lib/libcrypto/crypto')
-rw-r--r--src/lib/libcrypto/crypto/Makefile4
-rw-r--r--src/lib/libcrypto/crypto/shlib_version2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/crypto/Makefile b/src/lib/libcrypto/crypto/Makefile
index 4e8f489c2d..a4e65fd6a6 100644
--- a/src/lib/libcrypto/crypto/Makefile
+++ b/src/lib/libcrypto/crypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.56 2015/02/10 13:28:17 jsing Exp $ 1# $OpenBSD: Makefile,v 1.57 2015/04/11 16:16:15 deraadt Exp $
2 2
3LIB= crypto 3LIB= crypto
4 4
@@ -27,7 +27,7 @@ CFLAGS+= -I${LCRYPTO_SRC}/modes -I${LCRYPTO_SRC}/asn1 -I${LCRYPTO_SRC}/evp
27 27
28# crypto/ 28# crypto/
29SRCS+= cryptlib.c malloc-wrapper.c mem_dbg.c cversion.c ex_data.c cpt_err.c 29SRCS+= cryptlib.c malloc-wrapper.c mem_dbg.c cversion.c ex_data.c cpt_err.c
30SRCS+= uid.c o_time.c o_str.c o_init.c 30SRCS+= o_time.c o_str.c o_init.c
31SRCS+= mem_clr.c 31SRCS+= mem_clr.c
32 32
33# aes/ 33# aes/
diff --git a/src/lib/libcrypto/crypto/shlib_version b/src/lib/libcrypto/crypto/shlib_version
index 2e4d25cdf5..ed8f7473b5 100644
--- a/src/lib/libcrypto/crypto/shlib_version
+++ b/src/lib/libcrypto/crypto/shlib_version
@@ -1,2 +1,2 @@
1major=32 1major=33
2minor=0 2minor=0