diff --git a/Sources/bls-signatures/src/bls.cpp b/Sources/bls-signatures/src/bls.cpp index 17e8e4c..4b21ce8 100644 --- a/Sources/bls-signatures/src/bls.cpp +++ b/Sources/bls-signatures/src/bls.cpp @@ -30,7 +30,7 @@ Util::SecureFreeCallback Util::secureFreeCallback; static void relic_core_initializer(void* ptr) { core_init(); - if (err_get_code() != RLC_OK) { + if (err_get_code_2() != RLC_OK) { throw std::runtime_error("core_init() failed"); } diff --git a/Sources/relic/include/relic_err.h b/Sources/relic/include/relic_err.h index e16f71f..389b4ea 100644 --- a/Sources/relic/include/relic_err.h +++ b/Sources/relic/include/relic_err.h @@ -348,6 +348,6 @@ void err_get_msg(err_t *e, char **msg); * * @returns ERR_OK if no errors occurred in the function, ERR_ERR otherwise. */ -int err_get_code(void); +int err_get_code_2(void); #endif /* !RLC_ERR_H */ diff --git a/Sources/relic/src/relic_err.c b/Sources/relic/src/relic_err.c index 4fb9293..e664894 100644 --- a/Sources/relic/src/relic_err.c +++ b/Sources/relic/src/relic_err.c @@ -98,7 +98,7 @@ void err_get_msg(err_t *e, char **msg) { #endif /* CHECK */ -int err_get_code(void) { +int err_get_code_2(void) { ctx_t *ctx = core_get(); int r = ctx->code; ctx->code = RLC_OK;