summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2025-09-28 07:52:53 +0000
committertb <>2025-09-28 07:52:53 +0000
commitdee41641c860153d9ff3214fdf9f43ae9a10429c (patch)
tree1508d0ce3d97673d8e9b1a341f23582658d2fceb /src/lib
parent67355f1acbcfe22e391065386b442de8180421de (diff)
downloadopenbsd-dee41641c860153d9ff3214fdf9f43ae9a10429c.tar.gz
openbsd-dee41641c860153d9ff3214fdf9f43ae9a10429c.tar.bz2
openbsd-dee41641c860153d9ff3214fdf9f43ae9a10429c.zip
Revert NULL,0 -> OPENSSL_FILE,OPENSSL_LINE from r1.78
This wasn't part of the initial proposal and causes issues in curl downstream. We could pile more hacks on top of this, but at some point this is getting too silly. Relatedly, most of the FOOerr() could be removed, although PEMerr(), RSAerr() and SSLerr() are used by some downstreams and probably not worth patching out. Discussed with @vszakats in https://github.com/libressl/portable/issues/1154
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/crypto.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h
index b4230f1b28..9fcf868403 100644
--- a/src/lib/libcrypto/crypto.h
+++ b/src/lib/libcrypto/crypto.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto.h,v 1.79 2025/03/09 15:29:56 tb Exp $ */ 1/* $OpenBSD: crypto.h,v 1.80 2025/09/28 07:52:53 tb 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 *
@@ -197,15 +197,15 @@ extern "C" {
197 197
198#ifndef CRYPTO_w_lock 198#ifndef CRYPTO_w_lock
199#define CRYPTO_w_lock(type) \ 199#define CRYPTO_w_lock(type) \
200 CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,OPENSSL_FILE,OPENSSL_LINE) 200 CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,NULL,0)
201#define CRYPTO_w_unlock(type) \ 201#define CRYPTO_w_unlock(type) \
202 CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,OPENSSL_FILE,OPENSSL_LINE) 202 CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,NULL,0)
203#define CRYPTO_r_lock(type) \ 203#define CRYPTO_r_lock(type) \
204 CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ,type,OPENSSL_FILE,OPENSSL_LINE) 204 CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ,type,NULL,0)
205#define CRYPTO_r_unlock(type) \ 205#define CRYPTO_r_unlock(type) \
206 CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ,type,OPENSSL_FILE,OPENSSL_LINE) 206 CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ,type,NULL,0)
207#define CRYPTO_add(addr,amount,type) \ 207#define CRYPTO_add(addr,amount,type) \
208 CRYPTO_add_lock(addr,amount,type,OPENSSL_FILE,OPENSSL_LINE) 208 CRYPTO_add_lock(addr,amount,type,NULL,0)
209#endif 209#endif
210 210
211/* Some applications as well as some parts of OpenSSL need to allocate 211/* Some applications as well as some parts of OpenSSL need to allocate
@@ -275,9 +275,9 @@ DECLARE_STACK_OF(void)
275 275
276int CRYPTO_mem_ctrl(int mode); 276int CRYPTO_mem_ctrl(int mode);
277 277
278#define OPENSSL_malloc(num) CRYPTO_malloc((num),OPENSSL_FILE,OPENSSL_LINE) 278#define OPENSSL_malloc(num) CRYPTO_malloc((num),NULL,0)
279#define OPENSSL_strdup(str) CRYPTO_strdup((str),OPENSSL_FILE,OPENSSL_LINE) 279#define OPENSSL_strdup(str) CRYPTO_strdup((str),NULL,0)
280#define OPENSSL_free(addr) CRYPTO_free((addr),OPENSSL_FILE,OPENSSL_LINE) 280#define OPENSSL_free(addr) CRYPTO_free((addr),NULL,0)
281 281
282const char *OpenSSL_version(int type); 282const char *OpenSSL_version(int type);
283#define OPENSSL_VERSION 0 283#define OPENSSL_VERSION 0