summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libtls/tls.h')
-rw-r--r--src/lib/libtls/tls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h
index cc8627f2af..8d66c2fbaa 100644
--- a/src/lib/libtls/tls.h
+++ b/src/lib/libtls/tls.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls.h,v 1.51 2017/08/10 18:18:30 jsing Exp $ */ 1/* $OpenBSD: tls.h,v 1.52 2018/02/10 04:41:24 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -128,6 +128,7 @@ int tls_config_set_ocsp_staple_mem(struct tls_config *_config,
128int tls_config_set_ocsp_staple_file(struct tls_config *_config, 128int tls_config_set_ocsp_staple_file(struct tls_config *_config,
129 const char *_staple_file); 129 const char *_staple_file);
130int tls_config_set_protocols(struct tls_config *_config, uint32_t _protocols); 130int tls_config_set_protocols(struct tls_config *_config, uint32_t _protocols);
131int tls_config_set_session_fd(struct tls_config *_config, int _session_fd);
131int tls_config_set_verify_depth(struct tls_config *_config, int _verify_depth); 132int tls_config_set_verify_depth(struct tls_config *_config, int _verify_depth);
132 133
133void tls_config_prefer_ciphers_client(struct tls_config *_config); 134void tls_config_prefer_ciphers_client(struct tls_config *_config);
@@ -188,6 +189,7 @@ const uint8_t *tls_peer_cert_chain_pem(struct tls *_ctx, size_t *_len);
188const char *tls_conn_alpn_selected(struct tls *_ctx); 189const char *tls_conn_alpn_selected(struct tls *_ctx);
189const char *tls_conn_cipher(struct tls *_ctx); 190const char *tls_conn_cipher(struct tls *_ctx);
190const char *tls_conn_servername(struct tls *_ctx); 191const char *tls_conn_servername(struct tls *_ctx);
192int tls_conn_session_resumed(struct tls *_ctx);
191const char *tls_conn_version(struct tls *_ctx); 193const char *tls_conn_version(struct tls *_ctx);
192 194
193uint8_t *tls_load_file(const char *_file, size_t *_len, char *_password); 195uint8_t *tls_load_file(const char *_file, size_t *_len, char *_password);