summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hidden/openssl/hmac.h
diff options
context:
space:
mode:
authorbeck <>2022-11-11 11:25:18 +0000
committerbeck <>2022-11-11 11:25:18 +0000
commit83e73dadd90af52585df1bcce4e5b84da25fe19e (patch)
treeed6caa2922a04c9566669564e9dda8a563bf522a /src/lib/libcrypto/hidden/openssl/hmac.h
parent522ea7abc19e814a672474a8f25f67f470ceb772 (diff)
downloadopenbsd-83e73dadd90af52585df1bcce4e5b84da25fe19e.tar.gz
openbsd-83e73dadd90af52585df1bcce4e5b84da25fe19e.tar.bz2
openbsd-83e73dadd90af52585df1bcce4e5b84da25fe19e.zip
Add support for symbol hiding disabled by default.
Fully explained in libcrypto/README. TL;DR make sure libcrypto and libssl's function calls internally and to each other are via symbol names that won't get overridden by linking other libraries. Mostly work by guenther@, which will currently be gated behind a build setting NAMESPACE=yes. once we convert all the symbols to this method we will do a major bump and pick up the changes. ok tb@ jsing@
Diffstat (limited to 'src/lib/libcrypto/hidden/openssl/hmac.h')
-rw-r--r--src/lib/libcrypto/hidden/openssl/hmac.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/libcrypto/hidden/openssl/hmac.h b/src/lib/libcrypto/hidden/openssl/hmac.h
new file mode 100644
index 0000000000..d8370945d0
--- /dev/null
+++ b/src/lib/libcrypto/hidden/openssl/hmac.h
@@ -0,0 +1,36 @@
1/* $OpenBSD: hmac.h,v 1.1 2022/11/11 11:25:18 beck Exp $ */
2/*
3 * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */
17
18#ifndef _LIBCRYPTO_HMAC_H_
19#define _LIBCRYPTO_HMAC_H_
20
21#include_next <openssl/hmac.h>
22#include "crypto_namespace.h"
23
24LCRYPTO_USED(HMAC_CTX_new);
25LCRYPTO_USED(HMAC_CTX_free);
26LCRYPTO_UNUSED(HMAC_CTX_reset);
27LCRYPTO_UNUSED(HMAC_Init);
28LCRYPTO_USED(HMAC_Init_ex);
29LCRYPTO_USED(HMAC_Update);
30LCRYPTO_USED(HMAC_Final);
31LCRYPTO_USED(HMAC);
32LCRYPTO_USED(HMAC_CTX_copy);
33LCRYPTO_USED(HMAC_CTX_set_flags);
34LCRYPTO_USED(HMAC_CTX_get_md);
35
36#endif /* _LIBCRYPTO_HMAC_H_ */