Home
last modified time | relevance | path

Searched refs:ssl (Results 1 – 25 of 673) sorted by relevance

12345678910>>...27

/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/
H A Dbio_ssl.c27 SSL *ssl; /* The ssl handle :-) */ member
80 if (bs->ssl != NULL) in ssl_free()
81 SSL_shutdown(bs->ssl); in ssl_free()
83 SSL_free(bs->ssl); in ssl_free()
95 SSL *ssl; in ssl_read() local
102 ssl = sb->ssl; in ssl_read()
106 ret = ssl_read_internal(ssl, buf, size, readbytes); in ssl_read()
108 switch (SSL_get_error(ssl, ret)) { in ssl_read()
115 SSL_renegotiate(ssl); in ssl_read()
126 SSL_renegotiate(ssl); in ssl_read()
[all …]
H A Dssl_conf.c84 SSL *ssl; member
186 if (cctx->ssl) in cmd_SignatureAlgorithms()
187 rv = SSL_set1_sigalgs_list(cctx->ssl, value); in cmd_SignatureAlgorithms()
198 if (cctx->ssl) in cmd_ClientSignatureAlgorithms()
199 rv = SSL_set1_client_sigalgs_list(cctx->ssl, value); in cmd_ClientSignatureAlgorithms()
209 if (cctx->ssl) in cmd_Groups()
210 rv = SSL_set1_groups_list(cctx->ssl, value); in cmd_Groups()
250 else if (cctx->ssl) in cmd_ECDHParameters()
251 rv = SSL_set_tmp_ecdh(cctx->ssl, ecdh); in cmd_ECDHParameters()
263 if (cctx->ssl) in cmd_CipherString()
[all …]
/netbsd-src/external/bsd/unbound/dist/daemon/
H A Dremote.c206 if(p->ssl) in daemon_remote_clear()
207 SSL_free(p->ssl); in daemon_remote_clear()
459 n->ssl = SSL_new(rc->ctx); in remote_accept_callback()
460 if(!n->ssl) { in remote_accept_callback()
466 SSL_set_accept_state(n->ssl); in remote_accept_callback()
467 (void)SSL_set_mode(n->ssl, (long)SSL_MODE_AUTO_RETRY); in remote_accept_callback()
468 if(!SSL_set_fd(n->ssl, newfd)) { in remote_accept_callback()
470 SSL_free(n->ssl); in remote_accept_callback()
476 n->ssl = NULL; in remote_accept_callback()
509 if(s->ssl) { in clean_point()
[all …]
H A Dcachedump.c67 dump_rrset_line(RES* ssl, struct ub_packed_rrset_key* k, time_t now, size_t i) in dump_rrset_line() argument
71 return ssl_printf(ssl, "BADRR\n"); in dump_rrset_line()
73 return ssl_printf(ssl, "%s", s); in dump_rrset_line()
78 dump_rrset(RES* ssl, struct ub_packed_rrset_key* k, in dump_rrset() argument
88 if(!ssl_printf(ssl, ";rrset%s " ARG_LL "d %u %u %d %d\n", in dump_rrset()
96 if(!dump_rrset_line(ssl, k, now, i)) in dump_rrset()
104 dump_rrset_lruhash(RES* ssl, struct lruhash* h, time_t now) in dump_rrset_lruhash() argument
111 if(!dump_rrset(ssl, (struct ub_packed_rrset_key*)e->key, in dump_rrset_lruhash()
123 dump_rrset_cache(RES* ssl, struct worker* worker) in dump_rrset_cache() argument
127 if(!ssl_printf(ssl, "START_RRSET_CACHE\n")) return 0; in dump_rrset_cache()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/ossl_shim/
H A Dossl_shim.cc103 static bool SetTestConfig(SSL *ssl, const TestConfig *config) { in SetTestConfig() argument
104 return SSL_set_ex_data(ssl, g_config_index, (void *)config) == 1; in SetTestConfig()
107 static const TestConfig *GetTestConfig(const SSL *ssl) { in GetTestConfig() argument
108 return (const TestConfig *)SSL_get_ex_data(ssl, g_config_index); in GetTestConfig()
111 static bool SetTestState(SSL *ssl, std::unique_ptr<TestState> state) { in SetTestState() argument
113 if (SSL_set_ex_data(ssl, g_state_index, state.get()) == 1) { in SetTestState()
120 static TestState *GetTestState(const SSL *ssl) { in GetTestState() argument
121 return (TestState *)SSL_get_ex_data(ssl, g_state_index); in GetTestState()
148 static bool GetCertificate(SSL *ssl, bssl::UniquePtr<X509> *out_x509, in GetCertificate() argument
150 const TestConfig *config = GetTestConfig(ssl); in GetCertificate()
[all …]
/netbsd-src/external/bsd/nsd/dist/
H A Dremote.c128 SSL* ssl; member
179 SSL* ssl; member
223 static void process_stats(RES* ssl, xfrd_state_type* xfrd, int peek);
348 if(p->ssl) in daemon_remote_close()
349 SSL_free(p->ssl); in daemon_remote_close()
665 n->ssl = SSL_new(rc->ctx); in remote_accept_callback()
666 if(!n->ssl) { in remote_accept_callback()
672 SSL_set_accept_state(n->ssl); in remote_accept_callback()
673 (void)SSL_set_mode(n->ssl, SSL_MODE_AUTO_RETRY); in remote_accept_callback()
674 if(!SSL_set_fd(n->ssl, newfd)) { in remote_accept_callback()
[all …]
H A Dnsd-control.c377 SSL* ssl; in setup_ssl() local
382 ssl = SSL_new(ctx); in setup_ssl()
383 if(!ssl) in setup_ssl()
385 SSL_set_connect_state(ssl); in setup_ssl()
386 (void)SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); in setup_ssl()
387 if(!SSL_set_fd(ssl, fd)) in setup_ssl()
391 if( (r=SSL_do_handshake(ssl)) == 1) in setup_ssl()
393 r = SSL_get_error(ssl, r); in setup_ssl()
400 if(SSL_get_verify_result(ssl) != X509_V_OK) in setup_ssl()
402 x = SSL_get_peer_certificate(ssl); in setup_ssl()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/ssl-tests/
H A D02-protocol-version.conf686 ssl_conf = 0-version-negotiation-ssl
688 [0-version-negotiation-ssl]
711 ssl_conf = 1-version-negotiation-ssl
713 [1-version-negotiation-ssl]
736 ssl_conf = 2-version-negotiation-ssl
738 [2-version-negotiation-ssl]
761 ssl_conf = 3-version-negotiation-ssl
763 [3-version-negotiation-ssl]
786 ssl_conf = 4-version-negotiation-ssl
788 [4-version-negotiation-ssl]
[all …]
H A D07-dtls-protocol-version.conf72 ssl_conf = 0-version-negotiation-ssl
74 [0-version-negotiation-ssl]
99 ssl_conf = 1-version-negotiation-ssl
101 [1-version-negotiation-ssl]
126 ssl_conf = 2-version-negotiation-ssl
128 [2-version-negotiation-ssl]
152 ssl_conf = 3-version-negotiation-ssl
154 [3-version-negotiation-ssl]
180 ssl_conf = 4-version-negotiation-ssl
182 [4-version-negotiation-ssl]
[all …]
H A D14-curves.conf38 ssl_conf = 0-curve-sect163k1-ssl
40 [0-curve-sect163k1-ssl]
66 ssl_conf = 1-curve-sect163r1-ssl
68 [1-curve-sect163r1-ssl]
94 ssl_conf = 2-curve-sect163r2-ssl
96 [2-curve-sect163r2-ssl]
122 ssl_conf = 3-curve-sect193r1-ssl
124 [3-curve-sect193r1-ssl]
150 ssl_conf = 4-curve-sect193r2-ssl
152 [4-curve-sect193r2-ssl]
[all …]
H A D10-resumption.conf76 ssl_conf = 0-resumption-ssl
78 [0-resumption-ssl]
113 ssl_conf = 1-resumption-ssl
115 [1-resumption-ssl]
150 ssl_conf = 2-resumption-ssl
152 [2-resumption-ssl]
187 ssl_conf = 3-resumption-ssl
189 [3-resumption-ssl]
224 ssl_conf = 4-resumption-ssl
226 [4-resumption-ssl]
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/ssl-tests/
H A D02-protocol-version.cnf686 ssl_conf = 0-version-negotiation-ssl
688 [0-version-negotiation-ssl]
711 ssl_conf = 1-version-negotiation-ssl
713 [1-version-negotiation-ssl]
736 ssl_conf = 2-version-negotiation-ssl
738 [2-version-negotiation-ssl]
761 ssl_conf = 3-version-negotiation-ssl
763 [3-version-negotiation-ssl]
786 ssl_conf = 4-version-negotiation-ssl
788 [4-version-negotiation-ssl]
[all …]
H A D07-dtls-protocol-version.cnf72 ssl_conf = 0-version-negotiation-ssl
74 [0-version-negotiation-ssl]
99 ssl_conf = 1-version-negotiation-ssl
101 [1-version-negotiation-ssl]
126 ssl_conf = 2-version-negotiation-ssl
128 [2-version-negotiation-ssl]
152 ssl_conf = 3-version-negotiation-ssl
154 [3-version-negotiation-ssl]
180 ssl_conf = 4-version-negotiation-ssl
182 [4-version-negotiation-ssl]
[all …]
H A D14-curves.cnf103 ssl_conf = 0-curve-prime256v1-ssl
105 [0-curve-prime256v1-ssl]
132 ssl_conf = 1-curve-secp384r1-ssl
134 [1-curve-secp384r1-ssl]
161 ssl_conf = 2-curve-secp521r1-ssl
163 [2-curve-secp521r1-ssl]
190 ssl_conf = 3-curve-X25519-ssl
192 [3-curve-X25519-ssl]
219 ssl_conf = 4-curve-X448-ssl
221 [4-curve-X448-ssl]
[all …]
H A D10-resumption.cnf73 ssl_conf = 0-resumption-ssl
75 [0-resumption-ssl]
110 ssl_conf = 1-resumption-ssl
112 [1-resumption-ssl]
147 ssl_conf = 2-resumption-ssl
149 [2-resumption-ssl]
184 ssl_conf = 3-resumption-ssl
186 [3-resumption-ssl]
221 ssl_conf = 4-resumption-ssl
223 [4-resumption-ssl]
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man7/
H A Dssl.pod5 ssl - OpenSSL SSL/TLS library
13 The OpenSSL B<ssl> library implements the Secure Sockets Layer (SSL v2/v3) and
38 Currently the OpenSSL B<ssl> library functions deals with the following data
45 This is a dispatch structure describing the internal B<ssl> library
79 Currently the OpenSSL B<ssl> library provides the following C header files
84 =item B<ssl.h>
87 program to make the API of the B<ssl> library available. It internally
100 it's already included by ssl.h>.
106 it's already included by ssl.h>.
112 Currently the OpenSSL B<ssl> library exports 214 API functions.
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Ddanetest.c55 static int verify_chain(SSL *ssl, STACK_OF(X509) *chain) in verify_chain() argument
65 || !TEST_ptr(ssl_ctx = SSL_get_SSL_CTX(ssl)) in verify_chain()
70 ssl))) in verify_chain()
74 SSL_is_server(ssl) ? "ssl_client" : "ssl_server"); in verify_chain()
76 SSL_get0_param(ssl)); in verify_chain()
77 store_ctx_dane_init(store_ctx, ssl); in verify_chain()
79 if (SSL_get_verify_callback(ssl) != NULL) in verify_chain()
80 X509_STORE_CTX_set_verify_cb(store_ctx, SSL_get_verify_callback(ssl)); in verify_chain()
86 SSL_set_verify_result(ssl, X509_STORE_CTX_get_error(store_ctx)); in verify_chain()
246 static int tlsa_import_rr(SSL *ssl, const char *rrdata) in tlsa_import_rr() argument
[all …]
H A Dhandshake_helper.c749 SSL *ssl; member
763 SSL *ssl = NULL; in create_peer() local
766 if (!TEST_ptr(ssl = SSL_new(ctx)) in create_peer()
771 peer->ssl = ssl; in create_peer()
777 SSL_free(ssl); in create_peer()
785 SSL_free(peer->ssl); in peer_free_data()
799 int ret = SSL_do_handshake(peer->ssl); in do_handshake_step()
806 int error = SSL_get_error(peer->ssl, ret); in do_handshake_step()
834 ret = SSL_read(peer->ssl, peer->read_buf, peer->read_buf_len); in do_app_data_step()
845 int error = SSL_get_error(peer->ssl, ret); in do_app_data_step()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Ddanetest.c55 static int verify_chain(SSL *ssl, STACK_OF(X509) *chain) in verify_chain() argument
64 || !TEST_ptr(ssl_ctx = SSL_get_SSL_CTX(ssl)) in verify_chain()
68 ssl))) in verify_chain()
71 X509_STORE_CTX_set_default(store_ctx, SSL_is_server(ssl) in verify_chain()
74 SSL_get0_param(ssl)); in verify_chain()
75 store_ctx_dane_init(store_ctx, ssl); in verify_chain()
77 if (SSL_get_verify_callback(ssl) != NULL) in verify_chain()
78 X509_STORE_CTX_set_verify_cb(store_ctx, SSL_get_verify_callback(ssl)); in verify_chain()
84 SSL_set_verify_result(ssl, X509_STORE_CTX_get_error(store_ctx)); in verify_chain()
243 static int tlsa_import_rr(SSL *ssl, const char *rrdata) in tlsa_import_rr() argument
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Dssl.h596 # define SSL_clear_mode(ssl,op) \ argument
597 SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL)
598 # define SSL_set_mode(ssl,op) \ argument
599 SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
600 # define SSL_get_mode(ssl) \ argument
601 SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)
602 # define SSL_set_mtu(ssl, mtu) \ argument
603 SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)
604 # define DTLS_set_link_mtu(ssl, mtu) \ argument
605 SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL)
[all …]
H A Dtls1.h212 int SSL_set_tlsext_max_fragment_length(SSL *ssl, uint8_t mode);
260 # define SSL_set_tlsext_debug_callback(ssl, cb) \ argument
261 SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\
264 # define SSL_set_tlsext_debug_arg(ssl, arg) \ argument
265 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg)
267 # define SSL_get_tlsext_status_type(ssl) \ argument
268 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)
270 # define SSL_set_tlsext_status_type(ssl, type) \ argument
271 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)
273 # define SSL_get_tlsext_status_exts(ssl, arg) \ argument
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/ssl/
H A Dssl_rsa.c28 int SSL_use_certificate(SSL *ssl, X509 *x) in SSL_use_certificate() argument
36 rv = ssl_security_cert(ssl, NULL, x, 0, 1); in SSL_use_certificate()
42 return ssl_set_cert(ssl->cert, x); in SSL_use_certificate()
45 int SSL_use_certificate_file(SSL *ssl, const char *file, int type) in SSL_use_certificate_file() argument
67 x = X509_new_ex(ssl->ctx->libctx, ssl->ctx->propq); in SSL_use_certificate_file()
77 cert = PEM_read_bio_X509(in, &x, ssl->default_passwd_callback, in SSL_use_certificate_file()
78 ssl->default_passwd_callback_userdata); in SSL_use_certificate_file()
89 ret = SSL_use_certificate(ssl, x); in SSL_use_certificate_file()
96 int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len) in SSL_use_certificate_ASN1() argument
101 x = X509_new_ex(ssl->ctx->libctx, ssl->ctx->propq); in SSL_use_certificate_ASN1()
[all …]
H A Dssl_conf.c85 SSL *ssl; member
192 if (cctx->ssl) in cmd_SignatureAlgorithms()
193 rv = SSL_set1_sigalgs_list(cctx->ssl, value); in cmd_SignatureAlgorithms()
204 if (cctx->ssl) in cmd_ClientSignatureAlgorithms()
205 rv = SSL_set1_client_sigalgs_list(cctx->ssl, value); in cmd_ClientSignatureAlgorithms()
215 if (cctx->ssl) in cmd_Groups()
216 rv = SSL_set1_groups_list(cctx->ssl, value); in cmd_Groups()
249 else if (cctx->ssl) in cmd_ECDHParameters()
250 rv = SSL_set1_groups_list(cctx->ssl, value); in cmd_ECDHParameters()
261 if (cctx->ssl) in cmd_CipherString()
[all …]
/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dstreamtcp.c145 write_q(int fd, int udp, SSL* ssl, sldns_buffer* buf, uint16_t id, in write_q() argument
244 if(ssl) { in write_q()
245 if(SSL_write(ssl, (void*)&len, (int)sizeof(len)) <= 0) { in write_q()
262 if(ssl) { in write_q()
263 if(SSL_write(ssl, (void*)sldns_buffer_begin(buf), in write_q()
289 recv_one(int fd, int udp, SSL* ssl, sldns_buffer* buf) in recv_one() argument
295 if(ssl) { in recv_one()
296 int sr = SSL_read(ssl, (void*)&len, (int)sizeof(len)); in recv_one()
324 if(ssl) { in recv_one()
325 int r = SSL_read(ssl, (void*)sldns_buffer_begin(buf), in recv_one()
[all …]
/netbsd-src/usr.bin/ftp/
H A Dssl.c1 /* $NetBSD: ssl.c,v 1.20 2024/09/25 16:53:58 christos Exp $ */
38 __RCSID("$NetBSD: ssl.c,v 1.20 2024/09/25 16:53:58 christos Exp $");
61 #include <openssl/ssl.h>
65 #include "ssl.h"
88 SSL *ssl; /* SSL handle */ member
132 if (conn->ssl != NULL) in fetch_writev()
133 len = SSL_write(conn->ssl, iov->iov_base, (int)iov->iov_len); in fetch_writev()
288 SSL_free(conn->ssl); in fetch_close()
303 fetch_ssl_read(SSL *ssl, void *buf, size_t len) in fetch_ssl_read()
306 rlen = SSL_read(ssl, bu in fetch_ssl_read()
302 fetch_ssl_read(SSL * ssl,void * buf,size_t len) fetch_ssl_read() argument
602 SSL *ssl = NULL; fetch_start_ssl() local
742 fetch_set_ssl(struct fetch_connect * conn,void * ssl) fetch_set_ssl() argument
[all...]

12345678910>>...27