summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto.h
diff options
context:
space:
mode:
authorderaadt <>2015-04-11 16:16:15 +0000
committerderaadt <>2015-04-11 16:16:15 +0000
commit01d65208fd8dd61fb0f8c5d92ff80c7630a7c2b5 (patch)
tree4cf4654b69cedb1946aed375cd29d1ff7cc53a6c /src/lib/libcrypto/crypto.h
parentb6e092d1e41107edc3265fcda97c497aa21950e1 (diff)
downloadopenbsd-01d65208fd8dd61fb0f8c5d92ff80c7630a7c2b5.tar.gz
openbsd-01d65208fd8dd61fb0f8c5d92ff80c7630a7c2b5.tar.bz2
openbsd-01d65208fd8dd61fb0f8c5d92ff80c7630a7c2b5.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 '')
-rw-r--r--src/lib/libcrypto/crypto.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h
index 27b7f3fe02..4012f1c99a 100644
--- a/src/lib/libcrypto/crypto.h
+++ b/src/lib/libcrypto/crypto.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto.h,v 1.33 2015/02/07 13:19:15 doug Exp $ */ 1/* $OpenBSD: crypto.h,v 1.34 2015/04/11 16:16:15 deraadt Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -348,8 +348,6 @@ int CRYPTO_is_mem_check_on(void);
348const char *SSLeay_version(int type); 348const char *SSLeay_version(int type);
349unsigned long SSLeay(void); 349unsigned long SSLeay(void);
350 350
351int OPENSSL_issetugid(void);
352
353/* An opaque type representing an implementation of "ex_data" support */ 351/* An opaque type representing an implementation of "ex_data" support */
354typedef struct st_CRYPTO_EX_DATA_IMPL CRYPTO_EX_DATA_IMPL; 352typedef struct st_CRYPTO_EX_DATA_IMPL CRYPTO_EX_DATA_IMPL;
355/* Return an opaque pointer to the current "ex_data" implementation */ 353/* Return an opaque pointer to the current "ex_data" implementation */