Lines Matching +full:non +full:- +full:l

6 demos/guide/quic-server-non-block.c
12 ossl-guide-quic-server-non-block
13 - OpenSSL Guide: Writing a simple nonblocking QUIC server
18 simple, non-concurrent, QUIC "echo" server application which accepts one client
22 The server only accepts C<http/1.0> and C<hq-interop> ALPN's and doesn't actually
23 implement HTTP but only does a simple echo. This is non-standard and will not
26 There are various methods to test this server: B<quic-client-block.c> and
27 B<quic-client-non-block.c> will send a basic HTTP/1.0 request, which the server
29 C<openssl s_client -connect localhost:4443 -4 -quic -alpn http/1.0> and entering
40 B<quic-server-non-block.c>. It is also available online at
41 L<https://github.com/openssl/openssl/blob/master/demos/guide/quic-server-non-block.c>.
45 L<ossl-guide-libraries-introduction(7)> and L<ossl-guide-quic-introduction(7)>);
53 L<SSL_CTX_new(3)> function for this purpose. We pass as an argument the return
54 value of the function L<OSSL_QUIC_server_method(3)>. You should use this method
59 * subsequent per-client SSL connections. We specifically load a QUIC
67 certificates are often required, and both the server (end-entity or EE)
78 * not only the leaf (end-entity) server certificate, but also any
79 * intermediate issuer-CA certificates. The leaf certificate must be the
82 * In advanced use-cases this can be called multiple times, once per public
94 * key matches the just loaded end-entity certificate. It does not check
115 L<SSL_CTX_set_verify(3)> function and pass the B<SSL_VERIFY_NONE> value to it.
122 * Clients rarely employ certificate-based authentication, and so we don't
128 * need to configure a trusted-certificate store, so no call to
135 QUIC also dictates using Application-Layer Protocol Negotiation (ALPN) to select
136 an application protocol. We use L<SSL_CTX_set_alpn_select_cb(3)> for this
143 In this case, we only accept "http/1.0" and "hq-interop".
146 * ALPN strings for TLS handshake. Only 'http/1.0' and 'hq-interop'
151 10, 'h', 'q', '-', 'i', 'n', 't', 'e', 'r', 'o', 'p',
171 return -1;
181 return -1;
188 return -1;
232 occurred. However, since we are in nonblocking mode, L<SSL_accept_connection(3)>
244 a more real-world application would likely use this time to perform other tasks.
291 ret = SSL_read_ex(conn, buf + total_read, sizeof(buf) - total_read,
313 L<SSL_write_ex2(3)> to pass in a special flag SSL_WRITE_FLAG_CONCLUDE that will
327 We then shut down the connection with L<SSL_shutdown(3)>, which may need
358 L<ossl-guide-introduction(7)>, L<ossl-guide-libraries-introduction(7)>,
359 L<ossl-guide-libssl-introduction(7)>, L<ossl-guide-quic-introduction(7)>,
360 L<ossl-guide-quic-client-non-block(7)>, L<ossl-guide-quic-client-block(7)>,
361 L<ossl-guide-tls-server-block(7)>, L<ossl-guide-quic-server-block(7)>
365 Copyright 2024-2025 The OpenSSL Project Authors. All Rights Reserved.
370 L<https://www.openssl.org/source/license.html>.