diff options
| author | guenther <> | 2016-11-04 18:23:32 +0000 |
|---|---|---|
| committer | guenther <> | 2016-11-04 18:23:32 +0000 |
| commit | e8686503dae1f619d00440b2df8c7bdef857a901 (patch) | |
| tree | 30cc145fffcee6328b94fed90a468aa94b74da74 /src/lib/libtls/tls_internal.h | |
| parent | 3b007660bd04b1ebd97816eb1f5c5949de969c45 (diff) | |
| download | openbsd-e8686503dae1f619d00440b2df8c7bdef857a901.tar.gz openbsd-e8686503dae1f619d00440b2df8c7bdef857a901.tar.bz2 openbsd-e8686503dae1f619d00440b2df8c7bdef857a901.zip | |
Add an explict list of exported symbols with just the functions declared
in <tls.h>, and use __{BEGIN,END}_HIDDEN_DECLS in tls_internal.h to
optimize internal functions
ok jsing@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
| -rw-r--r-- | src/lib/libtls/tls_internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index 7b07c96c86..4fe4ee7811 100644 --- a/src/lib/libtls/tls_internal.h +++ b/src/lib/libtls/tls_internal.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls_internal.h,v 1.47 2016/11/04 18:07:24 beck Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.48 2016/11/04 18:23:32 guenther Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> | 3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> |
| 4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| @@ -24,6 +24,8 @@ | |||
| 24 | 24 | ||
| 25 | #include <openssl/ssl.h> | 25 | #include <openssl/ssl.h> |
| 26 | 26 | ||
| 27 | __BEGIN_HIDDEN_DECLS | ||
| 28 | |||
| 27 | #define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem" | 29 | #define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem" |
| 28 | 30 | ||
| 29 | #define TLS_CIPHERS_DEFAULT "TLSv1.2+AEAD+ECDHE:TLSv1.2+AEAD+DHE" | 31 | #define TLS_CIPHERS_DEFAULT "TLSv1.2+AEAD+ECDHE:TLSv1.2+AEAD+DHE" |
| @@ -209,4 +211,6 @@ int tls_ocsp_verify_cb(SSL *ssl, void *arg); | |||
| 209 | void tls_ocsp_ctx_free(struct tls_ocsp_ctx *ctx); | 211 | void tls_ocsp_ctx_free(struct tls_ocsp_ctx *ctx); |
| 210 | struct tls_ocsp_ctx *tls_ocsp_setup_from_peer(struct tls *ctx); | 212 | struct tls_ocsp_ctx *tls_ocsp_setup_from_peer(struct tls *ctx); |
| 211 | 213 | ||
| 214 | __END_HIDDEN_DECLS | ||
| 215 | |||
| 212 | #endif /* HEADER_TLS_INTERNAL_H */ | 216 | #endif /* HEADER_TLS_INTERNAL_H */ |
