diff options
| author | beck <> | 2022-11-11 11:25:18 +0000 |
|---|---|---|
| committer | beck <> | 2022-11-11 11:25:18 +0000 |
| commit | 0ba6b15619d4e4feafccdbd0226ee99b70553a11 (patch) | |
| tree | ed6caa2922a04c9566669564e9dda8a563bf522a /src/lib/libssl/hidden/openssl/ssl.h | |
| parent | e917fd8e13a8b1acf3b53461d4ba34d7022a216e (diff) | |
| download | openbsd-0ba6b15619d4e4feafccdbd0226ee99b70553a11.tar.gz openbsd-0ba6b15619d4e4feafccdbd0226ee99b70553a11.tar.bz2 openbsd-0ba6b15619d4e4feafccdbd0226ee99b70553a11.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.h | 31 |
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 | |||
| 24 | LSSL_USED(BIO_f_ssl); | ||
| 25 | LSSL_USED(BIO_new_ssl); | ||
| 26 | LSSL_USED(BIO_new_ssl_connect); | ||
| 27 | LSSL_UNUSED(BIO_new_buffer_ssl_connect); | ||
| 28 | LSSL_UNUSED(BIO_ssl_copy_session_id); | ||
| 29 | LSSL_UNUSED(BIO_ssl_shutdown); | ||
| 30 | |||
| 31 | #endif /* _LIBSSL_SSL_H_ */ | ||
