summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls.h
diff options
context:
space:
mode:
authorjsing <>2015-03-31 14:03:38 +0000
committerjsing <>2015-03-31 14:03:38 +0000
commita0cae064c7fb3e6f9795357b0897fc7cfbada29a (patch)
treec543b48853afa3779822fdf734c77e67d886bf12 /src/lib/libtls/tls.h
parente23e95b70f14a01a428a6d966e2cb510a4bf1cd6 (diff)
downloadopenbsd-a0cae064c7fb3e6f9795357b0897fc7cfbada29a.tar.gz
openbsd-a0cae064c7fb3e6f9795357b0897fc7cfbada29a.tar.bz2
openbsd-a0cae064c7fb3e6f9795357b0897fc7cfbada29a.zip
Provide a tls_accept_fds() function, which allows a TLS connection to be
accepted via an existing pair of file descriptors. Based on a diff from Jan Klemkow.
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 de58b92963..e9971ade0e 100644
--- a/src/lib/libtls/tls.h
+++ b/src/lib/libtls/tls.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls.h,v 1.11 2015/02/26 10:36:30 jsing Exp $ */ 1/* $OpenBSD: tls.h,v 1.12 2015/03/31 14:03:38 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -72,6 +72,8 @@ int tls_configure(struct tls *_ctx, struct tls_config *_config);
72void tls_reset(struct tls *_ctx); 72void tls_reset(struct tls *_ctx);
73void tls_free(struct tls *_ctx); 73void tls_free(struct tls *_ctx);
74 74
75int tls_accept_fds(struct tls *_ctx, struct tls **_cctx, int _fd_read,
76 int _fd_write);
75int tls_accept_socket(struct tls *_ctx, struct tls **_cctx, int _socket); 77int tls_accept_socket(struct tls *_ctx, struct tls **_cctx, int _socket);
76int tls_connect(struct tls *_ctx, const char *_host, const char *_port); 78int tls_connect(struct tls *_ctx, const char *_host, const char *_port);
77int tls_connect_fds(struct tls *_ctx, int _fd_read, int _fd_write, 79int tls_connect_fds(struct tls *_ctx, int _fd_read, int _fd_write,