summaryrefslogtreecommitdiff
path: root/src/lib/libssl/hidden/openssl/ssl.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/libssl/hidden/openssl/ssl.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/libssl/hidden/openssl/ssl.h')
-rw-r--r--src/lib/libssl/hidden/openssl/ssl.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/libssl/hidden/openssl/ssl.h b/src/lib/libssl/hidden/openssl/ssl.h
new file mode 100644
index 0000000000..540c6e7652
--- /dev/null
+++ b/src/lib/libssl/hidden/openssl/ssl.h
@@ -0,0 +1,31 @@
1/* $OpenBSD: ssl.h,v 1.1 2022/11/11 11:25:18 beck Exp $ */
2/*
3 * Copyright (c) 2022 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 _LIBSSL_SSL_H_
19#define _LIBSSL_SSL_H_
20
21#include_next <openssl/ssl.h>
22#include "ssl_namespace.h"
23
24LSSL_USED(BIO_f_ssl);
25LSSL_USED(BIO_new_ssl);
26LSSL_USED(BIO_new_ssl_connect);
27LSSL_UNUSED(BIO_new_buffer_ssl_connect);
28LSSL_UNUSED(BIO_ssl_copy_session_id);
29LSSL_UNUSED(BIO_ssl_shutdown);
30
31#endif /* _LIBSSL_SSL_H_ */