summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-07-06 18:50:11 +1000
committerPauli <pauli@openssl.org>2021-07-06 20:14:36 +1000
commit561e5cda7b7139c665dd9d2f39058b4081da54d2 (patch)
tree84d61a844e2e1625b833c057af869e1c25ecd90e /include
parentef1e0242a9aec5210845df86162c0b9219ff0f11 (diff)
err: remove ERR_GET_FUNC()
This is problematic in 3.0 because the function codes are all defined as zero. This leads to either every error matching or no error ever matching. Both are problematic for users. The OTC vote resolved to remove this function completely. Fixes #15946 Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> (Merged from https://github.com/openssl/openssl/pull/16004)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/err.h.in5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/openssl/err.h.in b/include/openssl/err.h.in
index 306656a2c1..7ca0b970a1 100644
--- a/include/openssl/err.h.in
+++ b/include/openssl/err.h.in
@@ -247,11 +247,6 @@ static ossl_unused ossl_inline int ERR_GET_LIB(unsigned long errcode)
return (errcode >> ERR_LIB_OFFSET) & ERR_LIB_MASK;
}
-static ossl_unused ossl_inline int ERR_GET_FUNC(unsigned long errcode ossl_unused)
-{
- return 0;
-}
-
static ossl_unused ossl_inline int ERR_GET_RFLAGS(unsigned long errcode)
{
if (ERR_SYSTEM_ERROR(errcode))