Home
last modified time | relevance | path

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

12345678910>>...17

/freebsd/crypto/openssl/ssl/
H A Dbio_ssl.c27 SSL *ssl; /* The ssl handle :-) */ member
80 if (bs->ssl != NULL && !SSL_in_init(bs->ssl)) 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_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 …]
/freebsd/contrib/unbound/daemon/
H A Dremote.c214 if(p->ssl) in daemon_remote_clear()
215 SSL_free(p->ssl); in daemon_remote_clear()
467 n->ssl = SSL_new(rc->ctx); in remote_accept_callback()
468 if(!n->ssl) { in remote_accept_callback()
474 SSL_set_accept_state(n->ssl); in remote_accept_callback()
475 (void)SSL_set_mode(n->ssl, (long)SSL_MODE_AUTO_RETRY); in remote_accept_callback()
476 if(!SSL_set_fd(n->ssl, newfd)) { in remote_accept_callback()
478 SSL_free(n->ssl); in remote_accept_callback()
484 n->ssl = NULL; in remote_accept_callback()
517 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 …]
/freebsd/lib/libbearssl/
H A DMakefile177 ssl/prf.c \
178 ssl/prf_md5sha1.c \
179 ssl/prf_sha256.c \
180 ssl/prf_sha384.c \
181 ssl/ssl_ccert_single_ec.c \
182 ssl/ssl_ccert_single_rsa.c \
183 ssl/ssl_client.c \
184 ssl/ssl_client_default_rsapub.c \
185 ssl/ssl_client_full.c \
186 ssl/ssl_engine.c \
[all …]
/freebsd/crypto/openssl/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 …]
H A D03-custom_verify.cnf18 ssl_conf = 0-verify-success-ssl
20 [0-verify-success-ssl]
41 ssl_conf = 1-verify-custom-reject-ssl
43 [1-verify-custom-reject-ssl]
69 ssl_conf = 2-verify-custom-allow-ssl
71 [2-verify-custom-allow-ssl]
96 ssl_conf = 3-verify-custom-retry-ssl
98 [3-verify-custom-retry-ssl]
123 ssl_conf = 4-noverify-success-ssl
125 [4-noverify-success-ssl]
[all …]
H A D17-renegotiate.cnf26 ssl_conf = 0-renegotiate-client-no-resume-ssl
28 [0-renegotiate-client-no-resume-ssl]
54 ssl_conf = 1-renegotiate-client-resume-ssl
56 [1-renegotiate-client-resume-ssl]
81 ssl_conf = 2-renegotiate-server-no-resume-ssl
83 [2-renegotiate-server-no-resume-ssl]
109 ssl_conf = 3-renegotiate-server-resume-ssl
111 [3-renegotiate-server-resume-ssl]
136 ssl_conf = 4-renegotiate-client-auth-require-ssl
138 [4-renegotiate-client-auth-require-ssl]
[all …]
H A D13-fragmentation.cnf30 ssl_conf = 0-one-fragment-minus-app-data-ssl
32 [0-one-fragment-minus-app-data-ssl]
53 ssl_conf = 1-one-fragment-app-data-ssl
55 [1-one-fragment-app-data-ssl]
76 ssl_conf = 2-one-fragment-plus-app-data-ssl
78 [2-one-fragment-plus-app-data-ssl]
99 ssl_conf = 3-small-app-data-ssl
101 [3-small-app-data-ssl]
122 ssl_conf = 4-small-app-data-large-fragment-size-ssl
124 [4-small-app-data-large-fragment-size-ssl]
[all …]
H A D22-compression.cnf16 ssl_conf = 0-tlsv1_3-both-compress-ssl
18 [0-tlsv1_3-both-compress-ssl]
42 ssl_conf = 1-tlsv1_3-client-compress-ssl
44 [1-tlsv1_3-client-compress-ssl]
67 ssl_conf = 2-tlsv1_3-server-compress-ssl
69 [2-tlsv1_3-server-compress-ssl]
92 ssl_conf = 3-tlsv1_3-neither-compress-ssl
94 [3-tlsv1_3-neither-compress-ssl]
116 ssl_conf = 4-tlsv1_2-both-compress-ssl
118 [4-tlsv1_2-both-compress-ssl]
[all …]
/freebsd/crypto/openssl/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 …]
H A Dssl_ctx_test.c34 SSL *ssl = NULL; in test_set_min_max_version() local
42 ssl = SSL_new(ctx); in test_set_min_max_version()
43 if (ssl == NULL) in test_set_min_max_version()
55 if (!TEST_int_eq(SSL_set_min_proto_version(ssl, t.min_version), t.min_ok)) in test_set_min_max_version()
57 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) in test_set_min_max_version()
59 if (!TEST_int_eq(SSL_get_min_proto_version(ssl), t.expected_min)) in test_set_min_max_version()
61 if (!TEST_int_eq(SSL_get_max_proto_version(ssl), t.expected_max)) in test_set_min_max_version()
67 SSL_free(ssl); in test_set_min_max_version()
/freebsd/usr.sbin/rpc.tlsclntd/
H A Drpc.tlsclntd.c316 SSL *ssl; in rpctlscd_connect_1_svc() local
329 ssl = rpctls_connect(rpctls_ctx, s, argp->certname.certname_val, in rpctlscd_connect_1_svc()
331 if (ssl == NULL) { in rpctlscd_connect_1_svc()
339 result->ssl = ++rpctls_ssl_refno; in rpctlscd_connect_1_svc()
342 result->ssl = ++rpctls_ssl_refno; in rpctlscd_connect_1_svc()
345 if (ssl == NULL) { in rpctlscd_connect_1_svc()
359 newslp->ssl = ssl; in rpctlscd_connect_1_svc()
377 if (slp->refno == argp->ssl) in rpctlscd_handlerecord_1_svc()
389 ret = SSL_read(slp->ssl, &junk, 0); in rpctlscd_handlerecord_1_svc()
392 ret = SSL_get_shutdown(slp->ssl); in rpctlscd_handlerecord_1_svc()
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Dtls_openssl.c88 static size_t SSL_get_client_random(const SSL *ssl, unsigned char *out, in SSL_get_client_random() argument
91 if (!ssl->s3 || outlen < SSL3_RANDOM_SIZE) in SSL_get_client_random()
93 os_memcpy(out, ssl->s3->client_random, SSL3_RANDOM_SIZE); in SSL_get_client_random()
98 static size_t SSL_get_server_random(const SSL *ssl, unsigned char *out, in SSL_get_server_random() argument
101 if (!ssl->s3 || outlen < SSL3_RANDOM_SIZE) in SSL_get_server_random()
103 os_memcpy(out, ssl->s3->server_random, SSL3_RANDOM_SIZE); in SSL_get_server_random()
228 SSL_CTX *ssl; member
243 SSL *ssl; member
562 static int tls_cryptoapi_cert(SSL *ssl, const char *name) in tls_cryptoapi_cert() argument
630 if (!SSL_use_certificate(ssl, cert)) { in tls_cryptoapi_cert()
[all …]
H A Dtls_wolfssl.c73 WOLFSSL *ssl; member
140 static int wolfssl_receive_cb(WOLFSSL *ssl, char *buf, int sz, void *ctx) in wolfssl_receive_cb() argument
162 static int wolfssl_send_cb(WOLFSSL *ssl, char *buf, int sz, void *ctx) in wolfssl_send_cb() argument
346 conn->ssl = wolfSSL_new(ssl_ctx); in tls_connection_init()
347 if (!conn->ssl) { in tls_connection_init()
352 wolfSSL_SetIOReadCtx(conn->ssl, &conn->input); in tls_connection_init()
353 wolfSSL_SetIOWriteCtx(conn->ssl, &conn->output); in tls_connection_init()
354 wolfSSL_set_ex_data(conn->ssl, 0, conn); in tls_connection_init()
359 wolfSSL_KeepArrays(conn->ssl); in tls_connection_init()
360 wolfSSL_KeepHandshakeResources(conn->ssl); in tls_connection_init()
[all …]
/freebsd/contrib/libpcap/
H A Dsslutils.c140 SSL *ssl = SSL_new(ctx); // TODO: also a DTLS context in ssl_promotion() local
141 SSL_set_fd(ssl, (int)s); in ssl_promotion()
144 if (SSL_accept(ssl) <= 0) { in ssl_promotion()
150 if (SSL_connect(ssl) <= 0) { in ssl_promotion()
157 return ssl; in ssl_promotion()
162 void ssl_finish(SSL *ssl) in ssl_finish() argument
175 SSL_shutdown(ssl); in ssl_finish()
176 SSL_free(ssl); in ssl_finish()
181 int ssl_send(SSL *ssl, char const *buffer, int size, char *errbuf, size_t errbuflen) in ssl_send() argument
183 int status = SSL_write(ssl, buffer, size); in ssl_send()
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_tls.c21 struct eap_ssl_data ssl; member
53 tls_connection_remove_session(data->ssl.conn); in eap_tls_state()
68 tls_connection_set_success_data(data->ssl.conn, buf); in eap_tls_valid_session()
81 if (eap_server_tls_ssl_init(sm, &data->ssl, 1, EAP_TYPE_TLS)) { in eap_tls_init()
105 if (eap_server_tls_ssl_init(sm, &data->ssl, 0, EAP_UNAUTH_TLS_TYPE)) { in eap_unauth_tls_init()
127 if (eap_server_tls_ssl_init(sm, &data->ssl, 0, in eap_wfa_unauth_tls_init()
145 eap_server_tls_ssl_deinit(sm, &data->ssl); in eap_tls_reset()
176 if (data->ssl.state == FRAG_ACK) { in eap_tls_buildReq()
180 if (data->ssl.state == WAIT_FRAG_ACK) { in eap_tls_buildReq()
181 res = eap_server_tls_build_msg(&data->ssl, data->eap_type, 0, in eap_tls_buildReq()
[all …]
/freebsd/contrib/libpcap/rpcapd/
H A Ddaemon.c97 SSL *ssl; //!< Optional SSL handler for the controlling sockets member
222 SSL *ssl = NULL; in daemon_serviceloop() local
337 ssl = ssl_promotion(1, sockctrl, errbuf, PCAP_ERRBUF_SIZE); in daemon_serviceloop()
338 if (! ssl) in daemon_serviceloop()
362 nrecv = sock_recv(sockctrl, ssl, (char *) &tls_header, in daemon_serviceloop()
419 pars.ssl = ssl; in daemon_serviceloop()
452 if (rpcap_senderror(pars.sockctrl, pars.ssl, 0, PCAP_ERR_NETW, errmsgbuf, errbuf) == -1) in daemon_serviceloop()
475 if (rpcap_senderror(pars.sockctrl, pars.ssl, 0, PCAP_ERR_HOSTNOAUTH, errmsgbuf, errbuf) == -1) in daemon_serviceloop()
527 if (rpcap_senderror(pars.sockctrl, pars.ssl, 0, PCAP_ERR_NETW, errmsgbuf, errbuf) == -1) in daemon_serviceloop()
536 …if (rpcap_senderror(pars.sockctrl, pars.ssl, 0, PCAP_ERR_INITTIMEOUT, "The RPCAP initial timeout h… in daemon_serviceloop()
[all …]
/freebsd/crypto/openssl/test/helpers/
H A Dhandshake.c309 SSL *ssl; in verify_retry_cb() local
313 || (ssl = X509_STORE_CTX_get_ex_data(ctx, idx)) == NULL) in verify_retry_cb()
319 return SSL_set_retry_verify(ssl); in verify_retry_cb()
727 SSL *ssl; member
741 SSL *ssl = NULL; in create_peer() local
744 if (!TEST_ptr(ssl = SSL_new(ctx)) in create_peer()
749 peer->ssl = ssl; in create_peer()
755 SSL_free(ssl); in create_peer()
763 SSL_free(peer->ssl); in peer_free_data()
777 int ret = SSL_do_handshake(peer->ssl); in do_handshake_step()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dssl.h614 # define SSL_clear_mode(ssl,op) \ argument
615 SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL)
616 # define SSL_set_mode(ssl,op) \ argument
617 SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
618 # define SSL_get_mode(ssl) \ argument
619 SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)
620 # define SSL_set_mtu(ssl, mtu) \ argument
621 SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)
622 # define DTLS_set_link_mtu(ssl, mtu) \ argument
623 SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL)
[all …]
H A Dtls1.h217 int SSL_set_tlsext_max_fragment_length(SSL *ssl, uint8_t mode);
265 # define SSL_set_tlsext_debug_callback(ssl, cb) \ argument
266 SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\
269 # define SSL_set_tlsext_debug_arg(ssl, arg) \ argument
270 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg)
272 # define SSL_get_tlsext_status_type(ssl) \ argument
273 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)
275 # define SSL_set_tlsext_status_type(ssl, type) \ argument
276 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)
278 # define SSL_get_tlsext_status_exts(ssl, arg) \ argument
[all …]

12345678910>>...17