Symbol: tls
lib/libtls/tls.c
102
error->tls = 1;
lib/libtls/tls.c
183
tls_set_error(struct tls *ctx, int code, const char *fmt, ...)
lib/libtls/tls.c
198
tls_set_errorx(struct tls *ctx, int code, const char *fmt, ...)
lib/libtls/tls.c
211
tls_set_ssl_errorx(struct tls *ctx, int code, const char *fmt, ...)
lib/libtls/tls.c
217
if (ctx->error.tls != 0)
lib/libtls/tls.c
245
struct tls *
lib/libtls/tls.c
248
struct tls *ctx;
lib/libtls/tls.c
264
tls_configure(struct tls *ctx, struct tls_config *config)
lib/libtls/tls.c
340
tls_keypair_to_pkey(struct tls *ctx, struct tls_keypair *keypair, EVP_PKEY **pkey)
lib/libtls/tls.c
402
tls_keypair_setup_pkey(struct tls *ctx, struct tls_keypair *keypair, EVP_PKEY *pkey)
lib/libtls/tls.c
482
tls_configure_ssl_keypair(struct tls *ctx, SSL_CTX *ssl_ctx,
lib/libtls/tls.c
537
tls_configure_ssl(struct tls *ctx, SSL_CTX *ssl_ctx)
lib/libtls/tls.c
593
struct tls *ctx = arg;
lib/libtls/tls.c
617
tls_configure_ssl_verify(struct tls *ctx, SSL_CTX *ssl_ctx, int verify)
lib/libtls/tls.c
70
tls_error(struct tls *ctx)
lib/libtls/tls.c
710
tls_free(struct tls *ctx)
lib/libtls/tls.c
721
tls_reset(struct tls *ctx)
lib/libtls/tls.c
76
tls_error_code(struct tls *ctx)
lib/libtls/tls.c
766
tls_ssl_error(struct tls *ctx, SSL *ssl_conn, int ssl_ret, const char *prefix)
lib/libtls/tls.c
819
tls_handshake(struct tls *ctx)
lib/libtls/tls.c
857
tls_read(struct tls *ctx, void *buf, size_t buflen)
lib/libtls/tls.c
88
error->tls = 0;
lib/libtls/tls.c
889
tls_write(struct tls *ctx, const void *buf, size_t buflen)
lib/libtls/tls.c
921
tls_close(struct tls *ctx)
lib/libtls/tls.h
101
int tls_error_code(struct tls *_ctx);
lib/libtls/tls.h
176
struct tls *tls_client(void);
lib/libtls/tls.h
177
struct tls *tls_server(void);
lib/libtls/tls.h
178
int tls_configure(struct tls *_ctx, struct tls_config *_config);
lib/libtls/tls.h
179
void tls_reset(struct tls *_ctx);
lib/libtls/tls.h
180
void tls_free(struct tls *_ctx);
lib/libtls/tls.h
182
int tls_accept_fds(struct tls *_ctx, struct tls **_cctx, int _fd_read,
lib/libtls/tls.h
184
int tls_accept_socket(struct tls *_ctx, struct tls **_cctx, int _socket);
lib/libtls/tls.h
185
int tls_accept_cbs(struct tls *_ctx, struct tls **_cctx,
lib/libtls/tls.h
187
int tls_connect(struct tls *_ctx, const char *_host, const char *_port);
lib/libtls/tls.h
188
int tls_connect_fds(struct tls *_ctx, int _fd_read, int _fd_write,
lib/libtls/tls.h
190
int tls_connect_servername(struct tls *_ctx, const char *_host,
lib/libtls/tls.h
192
int tls_connect_socket(struct tls *_ctx, int _s, const char *_servername);
lib/libtls/tls.h
193
int tls_connect_cbs(struct tls *_ctx, tls_read_cb _read_cb,
lib/libtls/tls.h
195
int tls_handshake(struct tls *_ctx);
lib/libtls/tls.h
196
ssize_t tls_read(struct tls *_ctx, void *_buf, size_t _buflen);
lib/libtls/tls.h
197
ssize_t tls_write(struct tls *_ctx, const void *_buf, size_t _buflen);
lib/libtls/tls.h
198
int tls_close(struct tls *_ctx);
lib/libtls/tls.h
200
int tls_peer_cert_provided(struct tls *_ctx);
lib/libtls/tls.h
201
int tls_peer_cert_contains_name(struct tls *_ctx, const char *_name);
lib/libtls/tls.h
203
const char *tls_peer_cert_common_name(struct tls *_ctx);
lib/libtls/tls.h
204
const char *tls_peer_cert_hash(struct tls *_ctx);
lib/libtls/tls.h
205
const char *tls_peer_cert_issuer(struct tls *_ctx);
lib/libtls/tls.h
206
const char *tls_peer_cert_subject(struct tls *_ctx);
lib/libtls/tls.h
207
time_t tls_peer_cert_notbefore(struct tls *_ctx);
lib/libtls/tls.h
208
time_t tls_peer_cert_notafter(struct tls *_ctx);
lib/libtls/tls.h
209
const uint8_t *tls_peer_cert_chain_pem(struct tls *_ctx, size_t *_len);
lib/libtls/tls.h
211
const char *tls_conn_alpn_selected(struct tls *_ctx);
lib/libtls/tls.h
212
const char *tls_conn_cipher(struct tls *_ctx);
lib/libtls/tls.h
213
int tls_conn_cipher_strength(struct tls *_ctx);
lib/libtls/tls.h
214
const char *tls_conn_servername(struct tls *_ctx);
lib/libtls/tls.h
215
int tls_conn_session_resumed(struct tls *_ctx);
lib/libtls/tls.h
216
const char *tls_conn_version(struct tls *_ctx);
lib/libtls/tls.h
221
int tls_ocsp_process_response(struct tls *_ctx, const unsigned char *_response,
lib/libtls/tls.h
223
int tls_peer_ocsp_cert_status(struct tls *_ctx);
lib/libtls/tls.h
224
int tls_peer_ocsp_crl_reason(struct tls *_ctx);
lib/libtls/tls.h
225
time_t tls_peer_ocsp_next_update(struct tls *_ctx);
lib/libtls/tls.h
226
int tls_peer_ocsp_response_status(struct tls *_ctx);
lib/libtls/tls.h
227
const char *tls_peer_ocsp_result(struct tls *_ctx);
lib/libtls/tls.h
228
time_t tls_peer_ocsp_revocation_time(struct tls *_ctx);
lib/libtls/tls.h
229
time_t tls_peer_ocsp_this_update(struct tls *_ctx);
lib/libtls/tls.h
230
const char *tls_peer_ocsp_url(struct tls *_ctx);
lib/libtls/tls.h
87
struct tls;
lib/libtls/tls.h
90
typedef ssize_t (*tls_read_cb)(struct tls *_ctx, void *_buf, size_t _buflen,
lib/libtls/tls.h
92
typedef ssize_t (*tls_write_cb)(struct tls *_ctx, const void *_buf,
lib/libtls/tls.h
98
const char *tls_error(struct tls *_ctx);
lib/libtls/tls_bio_cb.c
104
struct tls *ctx = BIO_get_data(bio);
lib/libtls/tls_bio_cb.c
122
struct tls *ctx = BIO_get_data(bio);
lib/libtls/tls_bio_cb.c
138
tls_set_cbs(struct tls *ctx, tls_read_cb read_cb, tls_write_cb write_cb,
lib/libtls/tls_client.c
169
tls_client_read_session(struct tls *ctx)
lib/libtls/tls_client.c
232
tls_client_write_session(struct tls *ctx)
lib/libtls/tls_client.c
289
tls_connect_common(struct tls *ctx, const char *servername)
lib/libtls/tls_client.c
37
struct tls *
lib/libtls/tls_client.c
40
struct tls *ctx;
lib/libtls/tls_client.c
404
tls_connect_socket(struct tls *ctx, int s, const char *servername)
lib/libtls/tls_client.c
410
tls_connect_fds(struct tls *ctx, int fd_read, int fd_write,
lib/libtls/tls_client.c
436
tls_connect_cbs(struct tls *ctx, tls_read_cb read_cb,
lib/libtls/tls_client.c
454
tls_handshake_client(struct tls *ctx)
lib/libtls/tls_client.c
54
tls_connect(struct tls *ctx, const char *host, const char *port)
lib/libtls/tls_client.c
60
tls_connect_servername(struct tls *ctx, const char *host, const char *port,
lib/libtls/tls_conninfo.c
106
tls_get_peer_cert_subject(struct tls *ctx, char **subject)
lib/libtls/tls_conninfo.c
122
tls_get_peer_cert_common_name(struct tls *ctx, char **common_name)
lib/libtls/tls_conninfo.c
130
tls_get_peer_cert_times(struct tls *ctx, time_t *notbefore,
lib/libtls/tls_conninfo.c
158
tls_get_peer_cert_info(struct tls *ctx)
lib/libtls/tls_conninfo.c
183
tls_conninfo_alpn_proto(struct tls *ctx)
lib/libtls/tls_conninfo.c
203
tls_conninfo_cert_pem(struct tls *ctx)
lib/libtls/tls_conninfo.c
244
tls_conninfo_session(struct tls *ctx)
lib/libtls/tls_conninfo.c
252
tls_conninfo_populate(struct tls *ctx)
lib/libtls/tls_conninfo.c
323
tls_conn_alpn_selected(struct tls *ctx)
lib/libtls/tls_conninfo.c
331
tls_conn_cipher(struct tls *ctx)
lib/libtls/tls_conninfo.c
339
tls_conn_cipher_strength(struct tls *ctx)
lib/libtls/tls_conninfo.c
347
tls_conn_servername(struct tls *ctx)
lib/libtls/tls_conninfo.c
355
tls_conn_session_resumed(struct tls *ctx)
lib/libtls/tls_conninfo.c
363
tls_conn_version(struct tls *ctx)
lib/libtls/tls_conninfo.c
75
tls_get_peer_cert_hash(struct tls *ctx, char **hash)
lib/libtls/tls_conninfo.c
90
tls_get_peer_cert_issuer(struct tls *ctx, char **issuer)
lib/libtls/tls_internal.h
239
struct tls *tls_new(void);
lib/libtls/tls_internal.h
240
struct tls *tls_server_conn(struct tls *ctx);
lib/libtls/tls_internal.h
242
int tls_get_common_name(struct tls *_ctx, X509 *_cert, const char *_in_name,
lib/libtls/tls_internal.h
244
int tls_check_name(struct tls *ctx, X509 *cert, const char *servername,
lib/libtls/tls_internal.h
246
int tls_configure_server(struct tls *ctx);
lib/libtls/tls_internal.h
248
int tls_configure_ssl(struct tls *ctx, SSL_CTX *ssl_ctx);
lib/libtls/tls_internal.h
249
int tls_configure_ssl_keypair(struct tls *ctx, SSL_CTX *ssl_ctx,
lib/libtls/tls_internal.h
251
int tls_configure_ssl_verify(struct tls *ctx, SSL_CTX *ssl_ctx, int verify);
lib/libtls/tls_internal.h
253
int tls_handshake_client(struct tls *ctx);
lib/libtls/tls_internal.h
254
int tls_handshake_server(struct tls *ctx);
lib/libtls/tls_internal.h
261
int tls_set_cbs(struct tls *ctx,
lib/libtls/tls_internal.h
277
int tls_set_error(struct tls *ctx, int code, const char *fmt, ...)
lib/libtls/tls_internal.h
280
int tls_set_errorx(struct tls *ctx, int code, const char *fmt, ...)
lib/libtls/tls_internal.h
283
int tls_set_ssl_errorx(struct tls *ctx, int code, const char *fmt, ...)
lib/libtls/tls_internal.h
287
int tls_ssl_error(struct tls *ctx, SSL *ssl_conn, int ssl_ret,
lib/libtls/tls_internal.h
290
int tls_conninfo_populate(struct tls *ctx);
lib/libtls/tls_internal.h
296
struct tls_ocsp *tls_ocsp_setup_from_peer(struct tls *ctx);
lib/libtls/tls_internal.h
51
int tls;
lib/libtls/tls_ocsp.c
172
tls_ocsp_setup_from_peer(struct tls *ctx)
lib/libtls/tls_ocsp.c
212
tls_ocsp_verify_response(struct tls *ctx, OCSP_RESPONSE *resp)
lib/libtls/tls_ocsp.c
298
tls_ocsp_process_response_internal(struct tls *ctx, const unsigned char *response,
lib/libtls/tls_ocsp.c
323
struct tls *ctx;
lib/libtls/tls_ocsp.c
357
struct tls *ctx;
lib/libtls/tls_ocsp.c
390
tls_peer_ocsp_url(struct tls *ctx)
lib/libtls/tls_ocsp.c
398
tls_peer_ocsp_result(struct tls *ctx)
lib/libtls/tls_ocsp.c
408
tls_peer_ocsp_response_status(struct tls *ctx)
lib/libtls/tls_ocsp.c
418
tls_peer_ocsp_cert_status(struct tls *ctx)
lib/libtls/tls_ocsp.c
428
tls_peer_ocsp_crl_reason(struct tls *ctx)
lib/libtls/tls_ocsp.c
438
tls_peer_ocsp_this_update(struct tls *ctx)
lib/libtls/tls_ocsp.c
448
tls_peer_ocsp_next_update(struct tls *ctx)
lib/libtls/tls_ocsp.c
458
tls_peer_ocsp_revocation_time(struct tls *ctx)
lib/libtls/tls_ocsp.c
468
tls_ocsp_process_response(struct tls *ctx, const unsigned char *response,
lib/libtls/tls_ocsp.c
61
tls_ocsp_asn1_parse_time(struct tls *ctx, ASN1_GENERALIZEDTIME *gt, time_t *gt_time)
lib/libtls/tls_ocsp.c
78
tls_ocsp_fill_info(struct tls *ctx, int response_status, int cert_status,
lib/libtls/tls_peer.c
27
tls_peer_cert_common_name(struct tls *ctx)
lib/libtls/tls_peer.c
35
tls_peer_cert_hash(struct tls *ctx)
lib/libtls/tls_peer.c
42
tls_peer_cert_issuer(struct tls *ctx)
lib/libtls/tls_peer.c
50
tls_peer_cert_subject(struct tls *ctx)
lib/libtls/tls_peer.c
58
tls_peer_cert_provided(struct tls *ctx)
lib/libtls/tls_peer.c
64
tls_peer_cert_contains_name(struct tls *ctx, const char *name)
lib/libtls/tls_peer.c
78
tls_peer_cert_notbefore(struct tls *ctx)
lib/libtls/tls_peer.c
88
tls_peer_cert_notafter(struct tls *ctx)
lib/libtls/tls_peer.c
98
tls_peer_cert_chain_pem(struct tls *ctx, size_t *size)
lib/libtls/tls_server.c
175
struct tls *tls_ctx;
lib/libtls/tls_server.c
231
tls_configure_server_ssl(struct tls *ctx, SSL_CTX **ssl_ctx,
lib/libtls/tls_server.c
31
struct tls *
lib/libtls/tls_server.c
324
tls_configure_server_sni(struct tls *ctx)
lib/libtls/tls_server.c
34
struct tls *ctx;
lib/libtls/tls_server.c
355
tls_configure_server(struct tls *ctx)
lib/libtls/tls_server.c
369
static struct tls *
lib/libtls/tls_server.c
370
tls_accept_common(struct tls *ctx)
lib/libtls/tls_server.c
372
struct tls *conn_ctx = NULL;
lib/libtls/tls_server.c
406
tls_accept_socket(struct tls *ctx, struct tls **cctx, int s)
lib/libtls/tls_server.c
412
tls_accept_fds(struct tls *ctx, struct tls **cctx, int fd_read, int fd_write)
lib/libtls/tls_server.c
414
struct tls *conn_ctx;
lib/libtls/tls_server.c
437
tls_accept_cbs(struct tls *ctx, struct tls **cctx,
lib/libtls/tls_server.c
440
struct tls *conn_ctx;
lib/libtls/tls_server.c
459
tls_handshake_server(struct tls *ctx)
lib/libtls/tls_server.c
47
struct tls *
lib/libtls/tls_server.c
48
tls_server_conn(struct tls *ctx)
lib/libtls/tls_server.c
50
struct tls *conn_ctx;
lib/libtls/tls_server.c
71
struct tls *ctx = arg;
lib/libtls/tls_server.c
84
struct tls *ctx = (struct tls *)arg;
lib/libtls/tls_server.c
87
struct tls *conn_ctx;
lib/libtls/tls_verify.c
319
tls_get_common_name(struct tls *ctx, X509 *cert, const char *in_name,
lib/libtls/tls_verify.c
341
tls_check_common_name(struct tls *ctx, X509 *cert, const char *name,
lib/libtls/tls_verify.c
376
tls_check_name(struct tls *ctx, X509 *cert, const char *name, int *match)
lib/libtls/tls_verify.c
88
tls_check_subject_altname(struct tls *ctx, X509 *cert, const char *name,
libexec/login_ldap/aldap.c
101
ldap->tls = tls_client();
libexec/login_ldap/aldap.c
102
if (ldap->tls == NULL) {
libexec/login_ldap/aldap.c
107
if (tls_configure(ldap->tls, cfg) == -1) {
libexec/login_ldap/aldap.c
112
if (tls_connect_socket(ldap->tls, ldap->fd, name) == -1) {
libexec/login_ldap/aldap.c
117
if (tls_handshake(ldap->tls) == -1) {
libexec/login_ldap/aldap.c
1387
*estr = tls_error(a->tls);
libexec/login_ldap/aldap.c
143
if (ldap->tls != NULL) {
libexec/login_ldap/aldap.c
144
wrote = tls_write(ldap->tls, data + done, len);
libexec/login_ldap/aldap.c
364
if (ldap->tls) {
libexec/login_ldap/aldap.c
365
ret = tls_read(ldap->tls, rbuf, sizeof(rbuf));
libexec/login_ldap/aldap.c
72
if (al->tls != NULL) {
libexec/login_ldap/aldap.c
73
tls_close(al->tls);
libexec/login_ldap/aldap.c
74
tls_free(al->tls);
libexec/login_ldap/aldap.h
47
struct tls *tls;
libexec/spamd/spamd.c
137
struct tls *tlsctx;
libexec/spamd/spamd.c
62
struct tls *cctx;
regress/lib/libc/printf/string.c
339
tls("<%ls>", L"text", "<text>");
regress/lib/libc/printf/string.c
34
void tls(const char *, const wchar_t *, const char *);
regress/lib/libc/printf/string.c
342
tls("<%-ls>", L"text", "<text>");
regress/lib/libc/printf/string.c
343
tls("<%6ls>", L"text", "< text>");
regress/lib/libc/printf/string.c
344
tls("<%-6ls>", L"text", "<text >");
regress/lib/libc/printf/string.c
345
tls("<%.2ls>", L"text", "<te>");
regress/lib/libc/printf/string.c
346
tls("<%4.2ls>", L"text", "< te>");
regress/lib/libc/printf/string.c
347
tls("<%-4.2ls>", L"text", "<te >");
regress/lib/libc/printf/string.c
363
tls("<%#ls>", L"text", "<text>");
regress/lib/libc/printf/string.c
364
tls("<% -6ls>", L"text", "<text >");
regress/lib/libc/printf/string.c
365
tls("<%+-6ls>", L"text", "<text >");
regress/lib/libc/printf/string.c
366
tls("<%06ls>", L"text", "<00text>");
regress/lib/libc/printf/string.c
367
tls("<%-06ls>", L"text", "<text >");
regress/lib/libc/printf/string.c
390
tls("<%ls>", ws, "<\xd0\xa1\xd0\xbe\xd1\x84\xd1\x8f>");
regress/lib/libc/printf/string.c
392
tls("<%-ls>", ws, "<\xd0\xa1\xd0\xbe\xd1\x84\xd1\x8f>");
regress/lib/libc/printf/string.c
393
tls("<%9ls>", ws, "< \xd0\xa1\xd0\xbe\xd1\x84\xd1\x8f>");
regress/lib/libc/printf/string.c
394
tls("<%-9ls>", ws, "<\xd0\xa1\xd0\xbe\xd1\x84\xd1\x8f >");
regress/lib/libc/printf/string.c
395
tls("<%.4ls>", ws, "<\xd0\xa1\xd0\xbe>");
regress/lib/libc/printf/string.c
396
tls("<%.3ls>", ws, "<\xd0\xa1>");
regress/lib/libc/printf/string.c
397
tls("<%6.4ls>", ws, "< \xd0\xa1\xd0\xbe>");
regress/lib/libc/printf/string.c
398
tls("<%3.3ls>", ws, "< \xd0\xa1>");
regress/lib/libc/printf/string.c
399
tls("<%-6.4ls>", ws, "<\xd0\xa1\xd0\xbe >");
regress/lib/libc/printf/string.c
400
tls("<%-3.3ls>", ws, "<\xd0\xa1 >");
regress/lib/libc/printf/string.c
417
tls("<%#ls>", ws + 2, "<\xd1\x84\xd1\x8f>");
regress/lib/libc/printf/string.c
418
tls("<% -6ls>", ws + 2, "<\xd1\x84\xd1\x8f >");
regress/lib/libc/printf/string.c
419
tls("<%+-6ls>", ws + 2, "<\xd1\x84\xd1\x8f >");
regress/lib/libc/printf/string.c
420
tls("<%06ls>", ws + 2, "<00\xd1\x84\xd1\x8f>");
regress/lib/libc/printf/string.c
421
tls("<%-06ls>", ws + 2, "<\xd1\x84\xd1\x8f >");
regress/lib/libtls/signer/signertest.c
282
do_tls_handshake(char *name, struct tls *ctx)
regress/lib/libtls/signer/signertest.c
296
do_client_server_handshake(char *desc, struct tls *client,
regress/lib/libtls/signer/signertest.c
297
struct tls *server_cctx)
regress/lib/libtls/signer/signertest.c
318
test_tls_handshake_socket(struct tls *client, struct tls *server)
regress/lib/libtls/signer/signertest.c
320
struct tls *server_cctx;
regress/lib/libtls/signer/signertest.c
362
struct tls *client, *server;
regress/lib/libtls/tls/tlstest.c
105
client_write(struct tls *ctx, const void *buf, size_t buflen, void *cb_arg)
regress/lib/libtls/tls/tlstest.c
112
server_read(struct tls *ctx, void *buf, size_t buflen, void *cb_arg)
regress/lib/libtls/tls/tlstest.c
119
server_write(struct tls *ctx, const void *buf, size_t buflen, void *cb_arg)
regress/lib/libtls/tls/tlstest.c
126
do_tls_handshake(char *name, struct tls *ctx)
regress/lib/libtls/tls/tlstest.c
140
do_tls_close(char *name, struct tls *ctx)
regress/lib/libtls/tls/tlstest.c
154
do_client_server_handshake(char *desc, struct tls *client,
regress/lib/libtls/tls/tlstest.c
155
struct tls *server_cctx)
regress/lib/libtls/tls/tlstest.c
176
do_client_server_close(char *desc, struct tls *client, struct tls *server_cctx)
regress/lib/libtls/tls/tlstest.c
197
do_client_server_test(char *desc, struct tls *client, struct tls *server_cctx)
regress/lib/libtls/tls/tlstest.c
215
test_tls_cbs(struct tls *client, struct tls *server)
regress/lib/libtls/tls/tlstest.c
217
struct tls *server_cctx;
regress/lib/libtls/tls/tlstest.c
238
test_tls_fds(struct tls *client, struct tls *server)
regress/lib/libtls/tls/tlstest.c
240
struct tls *server_cctx;
regress/lib/libtls/tls/tlstest.c
268
test_tls_socket(struct tls *client, struct tls *server)
regress/lib/libtls/tls/tlstest.c
270
struct tls *server_cctx;
regress/lib/libtls/tls/tlstest.c
298
struct tls *client, *server;
regress/lib/libtls/tls/tlstest.c
351
struct tls *client, *server;
regress/lib/libtls/tls/tlstest.c
413
struct tls *client = NULL, *server = NULL, *server_cctx = NULL;
regress/lib/libtls/tls/tlstest.c
539
struct tls *client, *server, *server_cctx;
regress/lib/libtls/tls/tlstest.c
98
client_read(struct tls *ctx, void *buf, size_t buflen, void *cb_arg)
regress/lib/libtls/verify/verifytest.c
25
extern int tls_check_name(struct tls *ctx, X509 *cert, const char *name,
regress/lib/libtls/verify/verifytest.c
464
struct tls *tls;
regress/lib/libtls/verify/verifytest.c
487
if ((tls = tls_client()) == NULL)
regress/lib/libtls/verify/verifytest.c
494
if (tls_check_name(tls, cert, vt->name, &match) != vt->want_return) {
regress/lib/libtls/verify/verifytest.c
496
"%s\n", test_no, vt->name, tls_error(tls));
regress/lib/libtls/verify/verifytest.c
509
tls_free(tls);
sbin/unwind/libunbound/libunbound/libunbound.c
1048
int ub_ctx_set_tls(struct ub_ctx* ctx, int tls)
sbin/unwind/libunbound/libunbound/libunbound.c
1056
ctx->env->cfg->ssl_upstream = tls;
sbin/unwind/libunbound/libunbound/unbound.h
351
int ub_ctx_set_tls(struct ub_ctx* ctx, int tls);
sys/net/if_spppsubr.c
1445
(cp->tls)(sp);
sys/net/if_spppsubr.c
1479
(cp->tls)(sp);
sys/net/if_spppsubr.c
214
void (*tls)(struct sppp *sp);
usr.bin/ftp/fetch.c
1006
ftp_close(&fin, &tls, &fd);
usr.bin/ftp/fetch.c
1058
error = save_chunked(fin, tls, out, buf, buflen);
usr.bin/ftp/fetch.c
1093
warnx("Reading from socket: %s", sockerror(tls));
usr.bin/ftp/fetch.c
1129
ftp_close(&fin, &tls, &fd);
usr.bin/ftp/fetch.c
1155
save_chunked(FILE *fin, struct tls *tls, int out, char *buf, size_t buflen)
usr.bin/ftp/fetch.c
1214
warnx("Error while reading from socket: %s", sockerror(tls));
usr.bin/ftp/fetch.c
1675
ftp_close(FILE **fin, struct tls **tls, int *fd)
usr.bin/ftp/fetch.c
1680
if (*tls != NULL) {
usr.bin/ftp/fetch.c
1683
tls_conn_session_resumed(*tls) ? "yes" : "no");
usr.bin/ftp/fetch.c
1685
ret = tls_close(*tls);
usr.bin/ftp/fetch.c
1687
tls_free(*tls);
usr.bin/ftp/fetch.c
1688
*tls = NULL;
usr.bin/ftp/fetch.c
1702
sockerror(struct tls *tls)
usr.bin/ftp/fetch.c
1706
if (tls != NULL) {
usr.bin/ftp/fetch.c
1707
const char *tlserr = tls_error(tls);
usr.bin/ftp/fetch.c
1763
struct tls *tls = arg;
usr.bin/ftp/fetch.c
1767
ret = tls_write(tls, buf, len);
usr.bin/ftp/fetch.c
1776
struct tls *tls = arg;
usr.bin/ftp/fetch.c
1780
ret = tls_read(tls, buf, len);
usr.bin/ftp/fetch.c
341
struct tls *tls = NULL;
usr.bin/ftp/fetch.c
646
if ((tls = tls_client()) == NULL) {
usr.bin/ftp/fetch.c
65
struct tls;
usr.bin/ftp/fetch.c
650
if (tls_configure(tls, tls_config) != 0) {
usr.bin/ftp/fetch.c
652
tls_error(tls));
usr.bin/ftp/fetch.c
655
if (tls_connect_socket(tls, fd, sslhost) != 0) {
usr.bin/ftp/fetch.c
656
fprintf(ttyout, "TLS connect failure: %s\n", tls_error(tls));
usr.bin/ftp/fetch.c
660
ret = tls_handshake(tls);
usr.bin/ftp/fetch.c
663
fprintf(ttyout, "TLS handshake failure: %s\n", tls_error(tls));
usr.bin/ftp/fetch.c
666
fin = funopen(tls, stdio_tls_read_wrapper,
usr.bin/ftp/fetch.c
73
static int save_chunked(FILE *, struct tls *, int , char *, size_t);
usr.bin/ftp/fetch.c
78
static void ftp_close(FILE **, struct tls **, int *);
usr.bin/ftp/fetch.c
79
static const char *sockerror(struct tls *);
usr.bin/ftp/fetch.c
793
warnx("Writing HTTP request: %s", sockerror(tls));
usr.bin/ftp/fetch.c
797
warnx("Receiving HTTP reply: %s", sockerror(tls));
usr.bin/ftp/fetch.c
876
warnx("Receiving HTTP reply: %s", sockerror(tls));
usr.bin/ftp/fetch.c
961
ftp_close(&fin, &tls, &fd);
usr.bin/ldap/aldap.c
101
ldap->tls = tls_client();
usr.bin/ldap/aldap.c
102
if (ldap->tls == NULL) {
usr.bin/ldap/aldap.c
107
if (tls_configure(ldap->tls, cfg) == -1) {
usr.bin/ldap/aldap.c
112
if (tls_connect_socket(ldap->tls, ldap->fd, name) == -1) {
usr.bin/ldap/aldap.c
117
if (tls_handshake(ldap->tls) == -1) {
usr.bin/ldap/aldap.c
1387
*estr = tls_error(a->tls);
usr.bin/ldap/aldap.c
143
if (ldap->tls != NULL) {
usr.bin/ldap/aldap.c
144
wrote = tls_write(ldap->tls, data + done, len);
usr.bin/ldap/aldap.c
364
if (ldap->tls) {
usr.bin/ldap/aldap.c
365
ret = tls_read(ldap->tls, rbuf, sizeof(rbuf));
usr.bin/ldap/aldap.c
72
if (al->tls != NULL) {
usr.bin/ldap/aldap.c
73
tls_close(al->tls);
usr.bin/ldap/aldap.c
74
tls_free(al->tls);
usr.bin/ldap/aldap.h
45
struct tls *tls;
usr.bin/nc/netcat.c
1103
readwrite(int net_fd, struct tls *tls_ctx)
usr.bin/nc/netcat.c
127
void readwrite(int, struct tls *);
usr.bin/nc/netcat.c
1298
drainbuf(int fd, unsigned char *buf, size_t *bufpos, struct tls *tls)
usr.bin/nc/netcat.c
130
int timeout_tls(int, struct tls *, int (*)(struct tls *));
usr.bin/nc/netcat.c
1306
if (tls) {
usr.bin/nc/netcat.c
1307
n = tls_write(tls, buf, *bufpos);
usr.bin/nc/netcat.c
1309
errx(1, "tls write failed (%s)", tls_error(tls));
usr.bin/nc/netcat.c
1327
fillbuf(int fd, unsigned char *buf, size_t *bufpos, struct tls *tls)
usr.bin/nc/netcat.c
1335
if (tls) {
usr.bin/nc/netcat.c
1336
n = tls_read(tls, buf + *bufpos, num);
usr.bin/nc/netcat.c
1338
errx(1, "tls read failed (%s)", tls_error(tls));
usr.bin/nc/netcat.c
142
void save_peer_cert(struct tls *_tls_ctx, FILE *_fp);
usr.bin/nc/netcat.c
144
void report_tls(struct tls *tls_ctx, char * host);
usr.bin/nc/netcat.c
146
ssize_t drainbuf(int, unsigned char *, size_t *, struct tls *);
usr.bin/nc/netcat.c
147
ssize_t fillbuf(int, unsigned char *, size_t *, struct tls *);
usr.bin/nc/netcat.c
148
void tls_setup_client(struct tls *, int, char *);
usr.bin/nc/netcat.c
149
struct tls *tls_setup_server(struct tls *, int, char *);
usr.bin/nc/netcat.c
165
struct tls *tls_ctx = NULL;
usr.bin/nc/netcat.c
1720
save_peer_cert(struct tls *tls_ctx, FILE *fp)
usr.bin/nc/netcat.c
1734
report_tls(struct tls *tls_ctx, char *host)
usr.bin/nc/netcat.c
630
struct tls *tls_cctx = NULL;
usr.bin/nc/netcat.c
779
timeout_tls(int s, struct tls *tls_ctx, int (*func)(struct tls *))
usr.bin/nc/netcat.c
806
tls_setup_client(struct tls *tls_ctx, int s, char *host)
usr.bin/nc/netcat.c
832
struct tls *
usr.bin/nc/netcat.c
833
tls_setup_server(struct tls *tls_ctx, int connfd, char *host)
usr.bin/nc/netcat.c
835
struct tls *tls_cctx;
usr.bin/tcpbench/tcpbench.c
106
struct tls *tls;
usr.bin/tcpbench/tcpbench.c
126
static int timeout_tls(int, struct tls *, int (*)(struct tls *));
usr.bin/tcpbench/tcpbench.c
609
if (sc->tls)
usr.bin/tcpbench/tcpbench.c
610
n = tls_read(sc->tls, sc->buf, sc->buflen);
usr.bin/tcpbench/tcpbench.c
614
if (sc->tls)
usr.bin/tcpbench/tcpbench.c
615
err(1, "tls_read: %s", tls_error(sc->tls));
usr.bin/tcpbench/tcpbench.c
646
timeout_tls(int s, struct tls *tls_ctx, int (*func)(struct tls *))
usr.bin/tcpbench/tcpbench.c
681
static struct tls *tls = NULL;
usr.bin/tcpbench/tcpbench.c
683
if (ptb->tls_cfg && tls == NULL) {
usr.bin/tcpbench/tcpbench.c
684
tls = tls_server();
usr.bin/tcpbench/tcpbench.c
685
if (tls == NULL)
usr.bin/tcpbench/tcpbench.c
687
if (tls_configure(tls, ptb->tls_cfg) == -1)
usr.bin/tcpbench/tcpbench.c
688
errx(1, "tls_configure: %s", tls_error(tls));
usr.bin/tcpbench/tcpbench.c
730
if (tls && tls_accept_socket(tls, &sc->tls, sc->fd) == -1)
usr.bin/tcpbench/tcpbench.c
731
err(1, "tls_accept_socket: %s", tls_error(tls));
usr.bin/tcpbench/tcpbench.c
847
if (sc->tls)
usr.bin/tcpbench/tcpbench.c
848
n = tls_write(sc->tls, sc->buf, blen);
usr.bin/tcpbench/tcpbench.c
852
if (sc->tls)
usr.bin/tcpbench/tcpbench.c
853
warn("tls_write: %s", tls_error(sc->tls));
usr.bin/tcpbench/tcpbench.c
954
sc->tls = tls_client();
usr.bin/tcpbench/tcpbench.c
955
if (sc->tls == NULL)
usr.bin/tcpbench/tcpbench.c
958
if (tls_configure(sc->tls, ptb->tls_cfg) == -1)
usr.bin/tcpbench/tcpbench.c
960
tls_error(sc->tls));
usr.bin/tcpbench/tcpbench.c
962
if (tls_connect_socket(sc->tls, sc->fd,
usr.bin/tcpbench/tcpbench.c
965
tls_error(sc->tls));
usr.bin/tcpbench/tcpbench.c
966
if (timeout_tls(sc->fd, sc->tls, tls_handshake) == -1) {
usr.bin/tcpbench/tcpbench.c
969
if ((errstr = tls_error(sc->tls)) == NULL)
usr.sbin/acme-client/http.c
62
struct tls *ctx; /* TLS context */
usr.sbin/httpd/config.c
306
struct tls_config tls;
usr.sbin/httpd/config.c
317
memset(&tls, 0, sizeof(tls));
usr.sbin/httpd/config.c
318
tls.id = srv_conf->id;
usr.sbin/httpd/config.c
319
tls.tls_type = type;
usr.sbin/httpd/config.c
320
tls.tls_len = len;
usr.sbin/httpd/config.c
321
tls.tls_chunk_offset = 0;
usr.sbin/httpd/config.c
324
tls.tls_chunk_len = len;
usr.sbin/httpd/config.c
325
if (tls.tls_chunk_len > (MAX_IMSG_DATA_SIZE - sizeof(tls)))
usr.sbin/httpd/config.c
326
tls.tls_chunk_len = MAX_IMSG_DATA_SIZE - sizeof(tls);
usr.sbin/httpd/config.c
329
iov[c].iov_base = &tls;
usr.sbin/httpd/config.c
330
iov[c++].iov_len = sizeof(tls);
usr.sbin/httpd/config.c
332
iov[c++].iov_len = tls.tls_chunk_len;
usr.sbin/httpd/config.c
340
tls.tls_chunk_offset += tls.tls_chunk_len;
usr.sbin/httpd/config.c
341
data += tls.tls_chunk_len;
usr.sbin/httpd/config.c
342
len -= tls.tls_chunk_len;
usr.sbin/httpd/httpd.h
335
struct tls *clt_tls_ctx;
usr.sbin/httpd/httpd.h
575
struct tls *srv_tls_ctx;
usr.sbin/httpd/parse.y
2420
listen_on(const char *addr, int tls, struct portrange *port)
usr.sbin/httpd/parse.y
2463
s_conf->port = htons(tls ?
usr.sbin/httpd/parse.y
2468
if (tls)
usr.sbin/httpd/parse.y
539
| tls {
usr.sbin/httpd/parse.y
860
tls : TLS '{' optnl tlsopts_l '}'
usr.sbin/ldapd/conn.c
381
if (tls_accept_socket(l->tls, &conn->tls, conn->fd) < 0) {
usr.sbin/ldapd/conn.c
387
buffertls_set(&conn->buftls, conn->bev, conn->tls, conn->fd);
usr.sbin/ldapd/conn.c
66
tls_free(conn->tls);
usr.sbin/ldapd/evbuffer_tls.c
153
struct tls *ctx = buftls->bt_ctx;
usr.sbin/ldapd/evbuffer_tls.c
211
struct tls *ctx = buftls->bt_ctx;
usr.sbin/ldapd/evbuffer_tls.c
253
struct tls *ctx, int fd)
usr.sbin/ldapd/evbuffer_tls.c
295
evtls_read(struct evbuffer *buf, int fd, int howmuch, struct tls *ctx)
usr.sbin/ldapd/evbuffer_tls.c
325
evtls_write(struct evbuffer *buffer, int fd, struct tls *ctx)
usr.sbin/ldapd/evbuffer_tls.c
50
int evtls_read(struct evbuffer *, int, int, struct tls *);
usr.sbin/ldapd/evbuffer_tls.c
51
int evtls_write(struct evbuffer *, int, struct tls *);
usr.sbin/ldapd/evbuffer_tls.c
72
struct tls *ctx = buftls->bt_ctx;
usr.sbin/ldapd/evbuffer_tls.h
25
struct tls;
usr.sbin/ldapd/evbuffer_tls.h
29
struct tls *bt_ctx;
usr.sbin/ldapd/evbuffer_tls.h
32
void buffertls_set(struct buffertls *, struct bufferevent *, struct tls *,
usr.sbin/ldapd/ldapd.h
208
struct tls *tls;
usr.sbin/ldapd/ldapd.h
228
struct tls *tls;
usr.sbin/ldapd/ldape.c
436
l->tls = tls_server();
usr.sbin/ldapd/ldape.c
437
if (l->tls == NULL)
usr.sbin/ldapd/ldape.c
440
if (tls_configure(l->tls, l->ssl->config)) {
usr.sbin/ldapd/ldape.c
441
log_warnx("ldape: %s", tls_error(l->tls));
usr.sbin/lpd/io.c
1031
switch ((n = iobuf_read_ssl(&io->iobuf, (SSL*)io->tls))) {
usr.sbin/lpd/io.c
1056
if (current == io && IO_READING(io) && SSL_pending(io->tls))
usr.sbin/lpd/io.c
1079
switch ((n = iobuf_write_ssl(&io->iobuf, (SSL*)io->tls))) {
usr.sbin/lpd/io.c
128
if (io->tls) {
usr.sbin/lpd/io.c
130
SSL_get_version(io->tls),
usr.sbin/lpd/io.c
131
SSL_get_cipher_name(io->tls),
usr.sbin/lpd/io.c
132
SSL_get_cipher_bits(io->tls, NULL));
usr.sbin/lpd/io.c
199
if (io->tls) {
usr.sbin/lpd/io.c
200
SSL_free(io->tls);
usr.sbin/lpd/io.c
201
io->tls = NULL;
usr.sbin/lpd/io.c
354
if (io->tls)
usr.sbin/lpd/io.c
356
io->tls = ssl;
usr.sbin/lpd/io.c
358
if (SSL_set_fd(io->tls, io->sock) == 0) {
usr.sbin/lpd/io.c
365
SSL_set_connect_state(io->tls);
usr.sbin/lpd/io.c
369
SSL_set_accept_state(io->tls);
usr.sbin/lpd/io.c
624
if (io->tls) {
usr.sbin/lpd/io.c
68
void *tls;
usr.sbin/lpd/io.c
955
if ((ret = SSL_accept(io->tls)) > 0) {
usr.sbin/lpd/io.c
961
switch ((e = SSL_get_error(io->tls, ret))) {
usr.sbin/lpd/io.c
992
if ((ret = SSL_connect(io->tls)) > 0) {
usr.sbin/lpd/io.c
998
switch ((e = SSL_get_error(io->tls, ret))) {
usr.sbin/nsd/axfr.c
262
(q->tls||q->tls_auth)?(q->tls?" tls":" tls-auth"):""));
usr.sbin/nsd/axfr.c
275
(q->tls||q->tls_auth)?(q->tls?" tls":" tls-auth"):"",
usr.sbin/nsd/axfr.c
276
(q->tls||q->tls_auth)?" ":"",
usr.sbin/nsd/axfr.c
277
(q->tls||q->tls_auth)?(q->cert_cn?q->cert_cn:"not-verified"):""));
usr.sbin/nsd/dnstap/dnstap.c
524
int tls, char* tls_server_name, char* tls_cert_bundle,
usr.sbin/nsd/dnstap/dnstap.c
545
(tls?"tls ":""), ip));
usr.sbin/nsd/dnstap/dnstap.c
567
if(!tls) {
usr.sbin/nsd/dnstap/dnstap.c
600
else if(!tls)
usr.sbin/nsd/dnstap/dnstap.c
621
else if(!tls)
usr.sbin/nsd/dnstap/dnstap.h
97
int tls, char* tls_server_name, char* tls_cert_bundle,
usr.sbin/nsd/nsd-checkconf.c
286
const char *z, const char* pat, const char* tls, int final)
usr.sbin/nsd/nsd-checkconf.c
305
if (tls) {
usr.sbin/nsd/nsd-checkconf.c
307
tls_auth_options_type* tlsauth = tls_auth_options_find(opt, tls);
usr.sbin/nsd/nsd-checkconf.c
312
printf("Could not find tls-auth %s\n", tls);
usr.sbin/nsd/query.h
86
SSL* tls;
usr.sbin/nsd/server.c
308
SSL* tls;
usr.sbin/nsd/server.c
3877
if(p->tls) {
usr.sbin/nsd/server.c
4387
if(data->tls) {
usr.sbin/nsd/server.c
4388
SSL_shutdown(data->tls);
usr.sbin/nsd/server.c
4389
SSL_free(data->tls);
usr.sbin/nsd/server.c
4390
data->tls = NULL;
usr.sbin/nsd/server.c
4969
r = SSL_do_handshake(data->tls);
usr.sbin/nsd/server.c
4976
want = SSL_get_error(data->tls, r);
usr.sbin/nsd/server.c
5043
r = (*received=SSL_read(data->tls, bufpos, add_amount));
usr.sbin/nsd/server.c
5049
want = SSL_get_error(data->tls, *received);
usr.sbin/nsd/server.c
5373
(void)SSL_set_mode(data->tls, SSL_MODE_ENABLE_PARTIAL_WRITE);
usr.sbin/nsd/server.c
5403
sent = SSL_write(data->tls, buffer_current(write_buffer), buffer_remaining(write_buffer));
usr.sbin/nsd/server.c
5409
want = SSL_get_error(data->tls, sent);
usr.sbin/nsd/server.c
5621
tcp_data->tls = NULL;
usr.sbin/nsd/server.c
5657
tcp_data->tls = incoming_ssl_fd(tcp_data->nsd->tls_ctx, s);
usr.sbin/nsd/server.c
5658
if(!tcp_data->tls) {
usr.sbin/nsd/server.c
5662
tcp_data->query->tls = tcp_data->tls;
usr.sbin/ntpd/constraint.c
1133
tls_readline(struct tls *tls, size_t *lenp, size_t *maxlength,
usr.sbin/ntpd/constraint.c
1151
ret = tls_read(tls, &c, 1);
usr.sbin/ntpd/constraint.c
76
char *tls_readline(struct tls *, size_t *, size_t *, struct timeval *);
usr.sbin/ntpd/constraint.c
90
struct tls *tls_ctx;
usr.sbin/ocspcheck/http.c
61
struct tls *ctx; /* if TLS */
usr.sbin/relayd/check_tls.c
117
ret = tls_write(cte->tls, buf, len);
usr.sbin/relayd/check_tls.c
157
ret = tls_handshake(cte->tls);
usr.sbin/relayd/check_tls.c
199
tls_close(cte->tls);
usr.sbin/relayd/check_tls.c
200
tls_reset(cte->tls);
usr.sbin/relayd/check_tls.c
211
log_debug("TLS error: %s: %s: %s", where, what, tls_error(cte->tls));
usr.sbin/relayd/check_tls.c
217
if (cte->tls == NULL) {
usr.sbin/relayd/check_tls.c
218
cte->tls = tls_client();
usr.sbin/relayd/check_tls.c
219
if (cte->tls == NULL)
usr.sbin/relayd/check_tls.c
223
if (tls_configure(cte->tls, cte->table->tls_cfg) == -1)
usr.sbin/relayd/check_tls.c
226
if (tls_connect_socket(cte->tls, cte->s, NULL) == -1) {
usr.sbin/relayd/check_tls.c
229
tls_close(cte->tls);
usr.sbin/relayd/check_tls.c
230
tls_reset(cte->tls);
usr.sbin/relayd/check_tls.c
57
ret = tls_read(cte->tls, rbuf, sizeof(rbuf));
usr.sbin/relayd/relay.c
1152
con->se_in.tls = NULL;
usr.sbin/relayd/relay.c
1154
con->se_out.tls = NULL;
usr.sbin/relayd/relay.c
1464
if ((rlay->rl_conf.flags & F_TLS) && (in->tls == NULL)) {
usr.sbin/relayd/relay.c
1644
if (con->se_out.tls == NULL) {
usr.sbin/relayd/relay.c
1839
if (cre->tls != NULL)
usr.sbin/relayd/relay.c
1840
tls_close(cre->tls);
usr.sbin/relayd/relay.c
1841
tls_free(cre->tls);
usr.sbin/relayd/relay.c
1850
cre->tls = NULL;
usr.sbin/relayd/relay.c
2147
struct tls *tls = NULL;
usr.sbin/relayd/relay.c
2287
tls = tls_server();
usr.sbin/relayd/relay.c
2288
if (tls == NULL) {
usr.sbin/relayd/relay.c
2292
if (tls_configure(tls, tls_cfg) == -1) {
usr.sbin/relayd/relay.c
2294
tls_error(tls));
usr.sbin/relayd/relay.c
2295
tls_free(tls);
usr.sbin/relayd/relay.c
2299
rlay->rl_tls_ctx = tls;
usr.sbin/relayd/relay.c
2320
static struct tls *
usr.sbin/relayd/relay.c
2324
struct tls *tls = NULL;
usr.sbin/relayd/relay.c
2345
tls = tls_server();
usr.sbin/relayd/relay.c
2346
if (tls == NULL) {
usr.sbin/relayd/relay.c
2350
if (tls_configure(tls, tls_cfg) == -1) {
usr.sbin/relayd/relay.c
2352
tls_error(tls));
usr.sbin/relayd/relay.c
2353
tls_free(tls);
usr.sbin/relayd/relay.c
2358
cre->tls_ctx = tls;
usr.sbin/relayd/relay.c
2359
return (tls);
usr.sbin/relayd/relay.c
2369
struct tls *tls_server;
usr.sbin/relayd/relay.c
2383
if (tls_accept_socket(tls_server, &cre->tls, cre->s) == -1) {
usr.sbin/relayd/relay.c
2389
cre->tls = tls_client();
usr.sbin/relayd/relay.c
2390
if (cre->tls == NULL ||
usr.sbin/relayd/relay.c
2391
tls_configure(cre->tls, rlay->rl_tls_client_cfg) == -1) {
usr.sbin/relayd/relay.c
2395
if (tls_connect_socket(cre->tls, cre->s, NULL) == -1) {
usr.sbin/relayd/relay.c
2427
ret = tls_handshake(cre->tls);
usr.sbin/relayd/relay.c
2448
servercert = tls_peer_cert_chain_pem(con->se_out.tls,
usr.sbin/relayd/relay.c
2473
tls_error(cre->tls)) >= 0) {
usr.sbin/relayd/relay.c
2523
ret = tls_read(cre->tls, rbuf, howmuch);
usr.sbin/relayd/relay.c
2581
ret = tls_write(cre->tls, EVBUFFER_DATA(bufev->output),
usr.sbin/relayd/relay.c
722
if ((rlay->rl_conf.flags & F_TLSCLIENT) && (out->tls == NULL)) {
usr.sbin/relayd/relay.c
792
if ((rlay->rl_conf.flags & F_TLSCLIENT) && (out->tls != NULL))
usr.sbin/relayd/relay.c
843
if ((rlay->rl_conf.flags & F_TLS) && con->se_in.tls != NULL)
usr.sbin/relayd/relay.c
891
if (cre->tls != NULL)
usr.sbin/relayd/relay.c
892
(void)tls_write(cre->tls, buf, len);
usr.sbin/relayd/relayd.c
544
tls_free(host->cte.tls);
usr.sbin/relayd/relayd.h
186
struct tls *tls;
usr.sbin/relayd/relayd.h
214
struct tls *tls;
usr.sbin/relayd/relayd.h
216
struct tls *tls_ctx;
usr.sbin/relayd/relayd.h
836
struct tls *rl_tls_ctx;
usr.sbin/rpki-client/http.c
1119
if ((conn->tls = tls_client()) == NULL) {
usr.sbin/rpki-client/http.c
1123
if (tls_configure(conn->tls, tls_config) == -1) {
usr.sbin/rpki-client/http.c
1125
tls_error(conn->tls));
usr.sbin/rpki-client/http.c
1128
if (tls_connect_socket(conn->tls, conn->fd, conn->host) == -1) {
usr.sbin/rpki-client/http.c
1130
tls_error(conn->tls));
usr.sbin/rpki-client/http.c
1143
switch (tls_handshake(conn->tls)) {
usr.sbin/rpki-client/http.c
1146
tls_error(conn->tls));
usr.sbin/rpki-client/http.c
127
struct tls *tls;
usr.sbin/rpki-client/http.c
1550
s = tls_read(conn->tls, conn->buf + conn->bufpos,
usr.sbin/rpki-client/http.c
1554
tls_error(conn->tls));
usr.sbin/rpki-client/http.c
1740
s = tls_write(conn->tls, conn->buf + conn->bufpos,
usr.sbin/rpki-client/http.c
1744
tls_error(conn->tls));
usr.sbin/rpki-client/http.c
1873
if (conn->tls != NULL) {
usr.sbin/rpki-client/http.c
1874
switch (tls_close(conn->tls)) {
usr.sbin/rpki-client/http.c
898
tls_free(conn->tls);
usr.sbin/smtpd/iobuf.c
388
iobuf_flush_tls(struct iobuf *io, struct tls *tls)
usr.sbin/smtpd/iobuf.c
393
if ((s = iobuf_write_tls(io, tls)) < 0)
usr.sbin/smtpd/iobuf.c
400
iobuf_write_tls(struct iobuf *io, struct tls *tls)
usr.sbin/smtpd/iobuf.c
407
n = tls_write(tls, q->buf + q->rpos, q->wpos - q->rpos);
usr.sbin/smtpd/iobuf.c
423
iobuf_read_tls(struct iobuf *io, struct tls *tls)
usr.sbin/smtpd/iobuf.c
427
n = tls_read(tls, io->buf + io->wpos, iobuf_left(io));
usr.sbin/smtpd/iobuf.h
38
struct tls;
usr.sbin/smtpd/iobuf.h
57
ssize_t iobuf_read_tls(struct iobuf *, struct tls *);
usr.sbin/smtpd/iobuf.h
67
int iobuf_flush_tls(struct iobuf *, struct tls *);
usr.sbin/smtpd/iobuf.h
69
ssize_t iobuf_write_tls(struct iobuf *, struct tls *);
usr.sbin/smtpd/ioev.c
108
if (io->tls) {
usr.sbin/smtpd/ioev.c
110
tls_conn_version(io->tls),
usr.sbin/smtpd/ioev.c
111
tls_conn_cipher(io->tls));
usr.sbin/smtpd/ioev.c
269
tls_free(io->tls);
usr.sbin/smtpd/ioev.c
270
io->tls = NULL;
usr.sbin/smtpd/ioev.c
394
struct tls *
usr.sbin/smtpd/ioev.c
397
return io->tls;
usr.sbin/smtpd/ioev.c
529
if (io->tls) {
usr.sbin/smtpd/ioev.c
64
struct tls *tls;
usr.sbin/smtpd/ioev.c
805
io_connect_tls(struct io *io, struct tls *tls, const char *hostname)
usr.sbin/smtpd/ioev.c
813
if (io->tls)
usr.sbin/smtpd/ioev.c
816
if (tls_connect_socket(tls, io->sock, hostname) == -1) {
usr.sbin/smtpd/ioev.c
817
io->error = tls_error(tls);
usr.sbin/smtpd/ioev.c
821
io->tls = tls;
usr.sbin/smtpd/ioev.c
829
io_accept_tls(struct io *io, struct tls *tls)
usr.sbin/smtpd/ioev.c
837
if (io->tls)
usr.sbin/smtpd/ioev.c
840
if (tls_accept_socket(tls, &io->tls, io->sock) == -1) {
usr.sbin/smtpd/ioev.c
841
io->error = tls_error(tls);
usr.sbin/smtpd/ioev.c
864
if ((ret = tls_handshake(io->tls)) == 0) {
usr.sbin/smtpd/ioev.c
874
io->error = tls_error(io->tls);
usr.sbin/smtpd/ioev.c
898
switch ((n = iobuf_read_tls(&io->iobuf, io->tls))) {
usr.sbin/smtpd/ioev.c
909
io->error = tls_error(io->tls);
usr.sbin/smtpd/ioev.c
938
switch ((n = iobuf_write_tls(&io->iobuf, io->tls))) {
usr.sbin/smtpd/ioev.c
949
io->error = tls_error(io->tls);
usr.sbin/smtpd/ioev.h
32
struct tls;
usr.sbin/smtpd/ioev.h
49
int io_connect_tls(struct io *, struct tls *, const char *);
usr.sbin/smtpd/ioev.h
50
int io_accept_tls(struct io *, struct tls *);
usr.sbin/smtpd/ioev.h
54
struct tls* io_tls(struct io *);
usr.sbin/smtpd/mta.c
1829
key.tls = relayh->tls;
usr.sbin/smtpd/mta.c
1841
r->tls = key.tls;
usr.sbin/smtpd/mta.c
1930
switch(relay->tls) {
usr.sbin/smtpd/mta.c
2101
if (a->tls < b->tls)
usr.sbin/smtpd/mta.c
2103
if (a->tls > b->tls)
usr.sbin/smtpd/mta.c
704
relayh.tls = RELAY_TLS_OPPORTUNISTIC;
usr.sbin/smtpd/mta.c
728
if (relayh.tls == RELAY_TLS_NO) {
usr.sbin/smtpd/mta.c
739
if (relayh.tls == RELAY_TLS_OPPORTUNISTIC)
usr.sbin/smtpd/mta.c
740
relayh.tls = RELAY_TLS_STARTTLS;
usr.sbin/smtpd/mta_session.c
1571
struct tls *tls;
usr.sbin/smtpd/mta_session.c
1573
if ((tls = tls_client()) == NULL) {
usr.sbin/smtpd/mta_session.c
1586
if (tls_configure(tls, remote->tls_config) == -1) {
usr.sbin/smtpd/mta_session.c
1588
tls_free(tls);
usr.sbin/smtpd/mta_session.c
1593
if (io_connect_tls(s->io, tls, s->mxname) == -1) {
usr.sbin/smtpd/mta_session.c
1595
tls_free(tls);
usr.sbin/smtpd/mta_session.c
228
switch (relay->tls) {
usr.sbin/smtpd/mta_session.c
244
fatalx("bad value for relay->tls: %d", relay->tls);
usr.sbin/smtpd/smtp.c
219
l->tls = tls_server();
usr.sbin/smtpd/smtp.c
220
if (l->tls == NULL)
usr.sbin/smtpd/smtp.c
222
if (tls_configure(l->tls, config) == -1) {
usr.sbin/smtpd/smtp.c
223
fatalx("tls_configure: %s", tls_error(l->tls));
usr.sbin/smtpd/smtp_session.c
1057
if (io_accept_tls(s->io, s->listener->tls) == -1) {
usr.sbin/smtpd/smtpc.c
454
struct tls *tls;
usr.sbin/smtpd/smtpc.c
456
tls = tls_client();
usr.sbin/smtpd/smtpc.c
457
if (tls == NULL)
usr.sbin/smtpd/smtpc.c
460
if (tls_configure(tls, tls_config) == -1)
usr.sbin/smtpd/smtpc.c
461
fatalx("tls_configure: %s", tls_error(tls));
usr.sbin/smtpd/smtpc.c
463
smtp_set_tls(proto, tls);
usr.sbin/smtpd/smtpd.h
122
int tls;
usr.sbin/smtpd/smtpd.h
1678
const char *tls_to_text(struct tls *);
usr.sbin/smtpd/smtpd.h
543
struct tls *tls;
usr.sbin/smtpd/smtpd.h
803
int tls;
usr.sbin/smtpd/to.c
274
int tls;
usr.sbin/smtpd/to.c
317
relay->tls = schemas[i].tls;
usr.sbin/smtpd/to.c
366
if (relay->tls != RELAY_TLS_STARTTLS &&
usr.sbin/smtpd/to.c
367
relay->tls != RELAY_TLS_SMTPS)
usr.sbin/smtpd/to.c
784
tls_to_text(struct tls *tls)
usr.sbin/smtpd/to.c
789
tls_conn_version(tls),
usr.sbin/smtpd/to.c
790
tls_conn_cipher(tls),
usr.sbin/smtpd/to.c
791
tls_conn_cipher_strength(tls));
usr.sbin/syslogd/evbuffer_tls.c
154
struct tls *ctx = buftls->bt_ctx;
usr.sbin/syslogd/evbuffer_tls.c
212
struct tls *ctx = buftls->bt_ctx;
usr.sbin/syslogd/evbuffer_tls.c
254
struct tls *ctx, int fd)
usr.sbin/syslogd/evbuffer_tls.c
296
evtls_read(struct evbuffer *buf, int fd, int howmuch, struct tls *ctx)
usr.sbin/syslogd/evbuffer_tls.c
326
evtls_write(struct evbuffer *buffer, int fd, struct tls *ctx)
usr.sbin/syslogd/evbuffer_tls.c
50
int evtls_read(struct evbuffer *, int, int, struct tls *);
usr.sbin/syslogd/evbuffer_tls.c
51
int evtls_write(struct evbuffer *, int, struct tls *);
usr.sbin/syslogd/evbuffer_tls.c
72
struct tls *ctx = buftls->bt_ctx;
usr.sbin/syslogd/evbuffer_tls.h
25
struct tls;
usr.sbin/syslogd/evbuffer_tls.h
29
struct tls *bt_ctx;
usr.sbin/syslogd/evbuffer_tls.h
32
void buffertls_set(struct buffertls *, struct bufferevent *, struct tls *,
usr.sbin/syslogd/syslogd.c
160
struct tls *f_ctx;
usr.sbin/syslogd/syslogd.c
237
struct tls *server_ctx;
usr.sbin/syslogd/syslogd.c
302
struct tls *p_ctx;
usr.sbin/unbound/daemon/remote.c
2711
int* insecure, int* prime, int* tls)
usr.sbin/unbound/daemon/remote.c
2726
else if(*args == 't' && tls)
usr.sbin/unbound/daemon/remote.c
2727
*tls = 1;
usr.sbin/unbound/daemon/remote.c
2760
int insecure = 0, tls = 0;
usr.sbin/unbound/daemon/remote.c
2764
if(!parse_fs_args(ssl, args, &nm, &dp, &insecure, NULL, &tls))
usr.sbin/unbound/daemon/remote.c
2766
if(tls)
usr.sbin/unbound/daemon/remote.c
2817
int insecure = 0, prime = 0, tls = 0;
usr.sbin/unbound/daemon/remote.c
2821
if(!parse_fs_args(ssl, args, &nm, &dp, &insecure, &prime, &tls))
usr.sbin/unbound/daemon/remote.c
2823
if(tls)
usr.sbin/unbound/libunbound/libunbound.c
1048
int ub_ctx_set_tls(struct ub_ctx* ctx, int tls)
usr.sbin/unbound/libunbound/libunbound.c
1056
ctx->env->cfg->ssl_upstream = tls;
usr.sbin/unbound/libunbound/unbound.h
351
int ub_ctx_set_tls(struct ub_ctx* ctx, int tls);
usr.sbin/ypldap/aldap.c
101
ldap->tls = tls_client();
usr.sbin/ypldap/aldap.c
102
if (ldap->tls == NULL) {
usr.sbin/ypldap/aldap.c
107
if (tls_configure(ldap->tls, cfg) == -1) {
usr.sbin/ypldap/aldap.c
112
if (tls_connect_socket(ldap->tls, ldap->fd, name) == -1) {
usr.sbin/ypldap/aldap.c
117
if (tls_handshake(ldap->tls) == -1) {
usr.sbin/ypldap/aldap.c
1423
*estr = tls_error(a->tls);
usr.sbin/ypldap/aldap.c
143
if (ldap->tls != NULL) {
usr.sbin/ypldap/aldap.c
144
wrote = tls_write(ldap->tls, data + done, len);
usr.sbin/ypldap/aldap.c
400
if (ldap->tls) {
usr.sbin/ypldap/aldap.c
401
ret = tls_read(ldap->tls, rbuf, sizeof(rbuf));
usr.sbin/ypldap/aldap.c
72
if (al->tls != NULL) {
usr.sbin/ypldap/aldap.c
73
tls_close(al->tls);
usr.sbin/ypldap/aldap.c
74
tls_free(al->tls);
usr.sbin/ypldap/aldap.h
48
struct tls *tls;