summaryrefslogtreecommitdiff
path: root/lib/libcrypto/crypto.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-04-11 16:16:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-04-11 16:16:16 +0000
commit76386d0d14bda74bdd733e62aa9e32191412f59d (patch)
treebc745125af4aeeb371f0f00cba007847140505f1 /lib/libcrypto/crypto.h
parentef153fa4c3e9636d4f3eb07eefb7193e95edd0cd (diff)
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 'lib/libcrypto/crypto.h')
-rw-r--r--lib/libcrypto/crypto.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libcrypto/crypto.h b/lib/libcrypto/crypto.h
index 27b7f3fe022..4012f1c99aa 100644
--- a/lib/libcrypto/crypto.h
+++ b/lib/libcrypto/crypto.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.h,v 1.33 2015/02/07 13:19:15 doug Exp $ */
+/* $OpenBSD: crypto.h,v 1.34 2015/04/11 16:16:15 deraadt Exp $ */
/* ====================================================================
* Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
*
@@ -348,8 +348,6 @@ int CRYPTO_is_mem_check_on(void);
const char *SSLeay_version(int type);
unsigned long SSLeay(void);
-int OPENSSL_issetugid(void);
-
/* An opaque type representing an implementation of "ex_data" support */
typedef struct st_CRYPTO_EX_DATA_IMPL CRYPTO_EX_DATA_IMPL;
/* Return an opaque pointer to the current "ex_data" implementation */