summaryrefslogtreecommitdiffstats
path: root/crypto/err/err_blocks.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-07-26 18:11:55 +0200
committerRichard Levitte <levitte@openssl.org>2019-09-12 18:34:06 +0200
commite5d4233fbd07eac52227c7ec5f479a46f15914bf (patch)
treeb1721a511174bca38d434ea844baae1187e30d38 /crypto/err/err_blocks.c
parent14e275e8fb736be4ea83441b630515f7be97d06b (diff)
Deprecate ERR_get_state()
Internally, we still need this function, so we make it internal and then add a new ERR_get_state() that simply calls the internal variant, unless it's "removed" by configuration. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9462)
Diffstat (limited to 'crypto/err/err_blocks.c')
-rw-r--r--crypto/err/err_blocks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/err/err_blocks.c b/crypto/err/err_blocks.c
index c2ff7c0823..e50f580b33 100644
--- a/crypto/err/err_blocks.c
+++ b/crypto/err/err_blocks.c
@@ -18,7 +18,7 @@ void ERR_new(void)
{
ERR_STATE *es;
- es = ERR_get_state();
+ es = err_get_state_int();
if (es == NULL)
return;
@@ -31,7 +31,7 @@ void ERR_set_debug(const char *file, int line, const char *func)
{
ERR_STATE *es;
- es = ERR_get_state();
+ es = err_get_state_int();
if (es == NULL)
return;
@@ -55,7 +55,7 @@ void ERR_vset_error(int lib, int reason, const char *fmt, va_list args)
unsigned long flags = 0;
size_t i;
- es = ERR_get_state();
+ es = err_get_state_int();
if (es == NULL)
return;
i = es->top;