Home
last modified time | relevance | path

Searched refs:alpn (Results 1 – 21 of 21) sorted by relevance

/freebsd/crypto/openssl/test/ssl-tests/
H A D09-alpn.cnf5 test-0 = 0-alpn-simple
6 test-1 = 1-alpn-server-finds-match
7 test-2 = 2-alpn-server-honours-server-pref
8 test-3 = 3-alpn-alert-on-mismatch
9 test-4 = 4-alpn-no-server-support
10 test-5 = 5-alpn-no-client-support
11 test-6 = 6-alpn-with-sni-no-context-switch
12 test-7 = 7-alpn-with-sni-context-switch
13 test-8 = 8-alpn-selected-sni-server-supports-alpn
14 test-9 = 9-alpn-selected-sni-server-does-not-support-alpn
[all …]
H A D09-alpn.cnf.in20 name => "alpn-simple",
36 name => "alpn-server-finds-match",
52 name => "alpn-server-honours-server-pref",
68 name => "alpn-alert-on-mismatch",
85 name => "alpn-no-server-support",
97 name => "alpn-no-client-support",
109 name => "alpn-with-sni-no-context-switch",
133 name => "alpn-with-sni-context-switch",
157 name => "alpn-selected-sni-server-supports-alpn",
180 name => "alpn-selected-sni-server-does-not-support-alpn",
[all …]
H A D08-npn.cnf17 test-12 = 12-alpn-preferred-over-npn
18 test-13 = 13-sni-npn-preferred-over-alpn
25 test-20 = 20-alpn-preferred-over-npn-resumption
26 test-21 = 21-npn-used-if-alpn-not-supported-resumption
450 [12-alpn-preferred-over-npn]
451 ssl_conf = 12-alpn-preferred-over-npn-ssl
453 [12-alpn-preferred-over-npn-ssl]
454 server = 12-alpn-preferred-over-npn-server
455 client = 12-alpn-preferred-over-npn-client
457 [12-alpn-preferred-over-npn-server]
[all …]
H A D08-npn.cnf.in244 name => "alpn-preferred-over-npn",
264 name => "sni-npn-preferred-over-alpn",
425 name => "alpn-preferred-over-npn-resumption",
452 name => "npn-used-if-alpn-not-supported-resumption",
/freebsd/crypto/openssl/doc/man3/
H A DSSL_SESSION_get0_hostname.pod19 const unsigned char **alpn,
21 int SSL_SESSION_set1_alpn_selected(SSL_SESSION *s, const unsigned char *alpn,
39 session and its associated length in bytes. The returned value of B<*alpn> is a
43 value in B<alpn> which should be of length B<len> bytes. A copy of the input
45 B<alpn>.
/freebsd/crypto/openssl/ssl/
H A Dssl_lib.c813 if (s->ctx->ext.alpn) { in SSL_new()
814 s->ext.alpn = OPENSSL_malloc(s->ctx->ext.alpn_len); in SSL_new()
815 if (s->ext.alpn == NULL) { in SSL_new()
819 memcpy(s->ext.alpn, s->ctx->ext.alpn, s->ctx->ext.alpn_len); in SSL_new()
1248 OPENSSL_free(s->ext.alpn); in SSL_free()
3083 unsigned char *alpn; in SSL_CTX_set_alpn_protos() local
3086 OPENSSL_free(ctx->ext.alpn); in SSL_CTX_set_alpn_protos()
3087 ctx->ext.alpn = NULL; in SSL_CTX_set_alpn_protos()
3095 alpn = OPENSSL_memdup(protos, protos_len); in SSL_CTX_set_alpn_protos()
3096 if (alpn == NULL) { in SSL_CTX_set_alpn_protos()
[all …]
H A Dssl_sess.c1061 const unsigned char **alpn, in SSL_SESSION_get0_alpn_selected() argument
1064 *alpn = s->ext.alpn_selected; in SSL_SESSION_get0_alpn_selected()
1068 int SSL_SESSION_set1_alpn_selected(SSL_SESSION *s, const unsigned char *alpn, in SSL_SESSION_set1_alpn_selected() argument
1072 if (alpn == NULL || len == 0) { in SSL_SESSION_set1_alpn_selected()
1077 s->ext.alpn_selected = OPENSSL_memdup(alpn, len); in SSL_SESSION_set1_alpn_selected()
H A Dssl_local.h1098 unsigned char *alpn; member
1637 unsigned char *alpn; member
/freebsd/crypto/openssl/ssl/statem/
H A Dextensions_clnt.c412 if (s->ext.alpn == NULL || !SSL_IS_FIRST_HANDSHAKE(s)) in tls_construct_ctos_alpn()
419 || !WPACKET_sub_memcpy_u16(pkt, s->ext.alpn, s->ext.alpn_len) in tls_construct_ctos_alpn()
843 if ((s->ext.alpn == NULL && edsess->ext.alpn_selected != NULL)) { in tls_construct_ctos_early_data()
856 if (!PACKET_buf_init(&prots, s->ext.alpn, s->ext.alpn_len)) { in tls_construct_ctos_early_data()
1591 if (!PACKET_buf_init(&confpkt, s->ext.alpn, s->ext.alpn_len)) { in tls_parse_stoc_alpn()
/freebsd/contrib/bearssl/tools/
H A Dtwrch.c99 free_alpn(void *alpn) in free_alpn() argument
101 xfree(*(char **)alpn); in free_alpn()
H A Dclient.c453 free_alpn(void *alpn) in free_alpn() argument
455 xfree(*(char **)alpn); in free_alpn()
H A Dserver.c620 free_alpn(void *alpn) in free_alpn() argument
622 xfree(*(char **)alpn); in free_alpn()
/freebsd/crypto/openssl/test/
H A Dssl_old_test.c1719 unsigned char *alpn = next_protos_parse(&alpn_len, alpn_client); in main() local
1721 if (alpn == NULL) { in main()
1726 if (SSL_CTX_set_alpn_protos(c_ctx, alpn, alpn_len)) { in main()
1728 OPENSSL_free(alpn); in main()
1731 OPENSSL_free(alpn); in main()
/freebsd/crypto/openssl/apps/
H A Ds_client.c1847 unsigned char *alpn = next_protos_parse(&alpn_len, alpn_in); in s_client_main() local
1849 if (alpn == NULL) { in s_client_main()
1854 if (SSL_CTX_set_alpn_protos(ctx, alpn, alpn_len) != 0) { in s_client_main()
1858 OPENSSL_free(alpn); in s_client_main()
/freebsd/crypto/openssl/doc/man1/
H A Dopenssl-s_server.pod.in129 [B<-alpn> I<val>]
756 =item B<-alpn> I<val>, B<-nextprotoneg> I<val>
H A Dopenssl-s_client.pod.in106 [B<-alpn> I<protocols>]
703 =item B<-alpn> I<protocols>, B<-nextprotoneg> I<protocols>
/freebsd/crypto/openssl/include/openssl/
H A Dssl.h1738 const unsigned char **alpn,
1741 const unsigned char *alpn,
H A Dssl.h.in1666 const unsigned char **alpn,
1669 const unsigned char *alpn,
/freebsd/contrib/unbound/services/
H A Dlisten_dnsport.c4270 const unsigned char* alpn = NULL; in doq_handshake_completed_cb() local
4273 SSL_get0_alpn_selected(doq_conn->ssl, &alpn, &alpnlen); in doq_handshake_completed_cb()
4276 memmove(alpnstr, alpn, alpnlen); in doq_handshake_completed_cb()
/freebsd/contrib/unbound/util/
H A Dnetevent.c3526 const unsigned char *alpn; local
3528 SSL_get0_alpn_selected(c->ssl, &alpn, &alpnlen);
3529 if(alpnlen == 2 && memcmp("h2", alpn, 2) == 0) {
/freebsd/crypto/openssl/crypto/err/
H A Dopenssl.txt1357 SSL_R_INCONSISTENT_EARLY_DATA_ALPN:222:inconsistent early data alpn