diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-06-15 07:46:40 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-08-27 02:16:53 -0400 |
commit | 1cd73b08a681db8aa7039419ddf9b40b068a2bd3 (patch) | |
tree | 42dc1d1c710762643bfc2fc70904e0841e60075f /src/sys-crypto-md.h | |
parent | 4e5b822b16f8c22be608567549a67f5e464d9419 (diff) | |
download | lighttpd-git-1cd73b08a681db8aa7039419ddf9b40b068a2bd3.tar.gz |
[core] move backtrace and assert macros to ck.[ch]
Diffstat (limited to 'src/sys-crypto-md.h')
-rw-r--r-- | src/sys-crypto-md.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sys-crypto-md.h b/src/sys-crypto-md.h index ad6f2508..729bd2ab 100644 --- a/src/sys-crypto-md.h +++ b/src/sys-crypto-md.h @@ -612,7 +612,7 @@ EVP_SHA512_Update(EVP_SHA512_CTX *ctx, const void *data, size_t length) #elif defined(USE_GNUTLS_CRYPTO) #include <gnutls/crypto.h> -#include "buffer.h" /* SEGFAULT() */ +#include "ck.h" #define USE_LIB_CRYPTO_MD5 typedef gnutls_hash_hd_t MD5_CTX; @@ -620,7 +620,7 @@ static inline int MD5_Init(MD5_CTX *ctx) { if (gnutls_hash_init(ctx, GNUTLS_DIG_MD5) < 0) - SEGFAULT(); + ck_bt_abort(__FILE__, __LINE__, "aborted"); return 1; } static inline int @@ -642,7 +642,7 @@ static inline int SHA1_Init(SHA_CTX *ctx) { if (gnutls_hash_init(ctx, GNUTLS_DIG_SHA1) < 0) - SEGFAULT(); + ck_bt_abort(__FILE__, __LINE__, "aborted"); return 1; } static inline int @@ -664,7 +664,7 @@ static inline int SHA256_Init(SHA256_CTX *ctx) { if (gnutls_hash_init(ctx, GNUTLS_DIG_SHA256) < 0) - SEGFAULT(); + ck_bt_abort(__FILE__, __LINE__, "aborted"); return 1; } static inline int @@ -686,7 +686,7 @@ static inline int SHA512_Init(SHA512_CTX *ctx) { if (gnutls_hash_init(ctx, GNUTLS_DIG_SHA512) < 0) - SEGFAULT(); + ck_bt_abort(__FILE__, __LINE__, "aborted"); return 1; } static inline int |