summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/crypto_lock.c')
-rw-r--r--src/lib/libcrypto/crypto_lock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto_lock.c b/src/lib/libcrypto/crypto_lock.c
index 6d9dbab22b..59c3933c7d 100644
--- a/src/lib/libcrypto/crypto_lock.c
+++ b/src/lib/libcrypto/crypto_lock.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto_lock.c,v 1.5 2023/06/04 17:28:35 tb Exp $ */ 1/* $OpenBSD: crypto_lock.c,v 1.6 2023/07/08 08:28:23 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Brent Cook <bcook@openbsd.org> 3 * Copyright (c) 2018 Brent Cook <bcook@openbsd.org>
4 * 4 *
@@ -78,6 +78,7 @@ CRYPTO_lock(int mode, int type, const char *file, int line)
78 else if (mode & CRYPTO_UNLOCK) 78 else if (mode & CRYPTO_UNLOCK)
79 (void) pthread_mutex_unlock(&locks[type]); 79 (void) pthread_mutex_unlock(&locks[type]);
80} 80}
81LCRYPTO_ALIAS(CRYPTO_lock);
81 82
82int 83int
83CRYPTO_add_lock(int *pointer, int amount, int type, const char *file, 84CRYPTO_add_lock(int *pointer, int amount, int type, const char *file,
@@ -92,3 +93,4 @@ CRYPTO_add_lock(int *pointer, int amount, int type, const char *file,
92 93
93 return (ret); 94 return (ret);
94} 95}
96LCRYPTO_ALIAS(CRYPTO_add_lock);