1
0

ossl-guide-tls-client-block.pod 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. =pod
  2. =begin comment
  3. NB: Changes to the source code samples in this file should also be reflected in
  4. demos/guide/tls-client-block.c
  5. =end comment
  6. =head1 NAME
  7. ossl-guide-tls-client-block
  8. - OpenSSL Guide: Writing a simple blocking TLS client
  9. =head1 SIMPLE BLOCKING TLS CLIENT EXAMPLE
  10. This page will present various source code samples demonstrating how to write
  11. a simple TLS client application which connects to a server, sends an HTTP/1.0
  12. request to it, and reads back the response.
  13. We use a blocking socket for the purposes of this example. This means that
  14. attempting to read data from a socket that has no data available on it to read
  15. will block (and the function will not return), until data becomes available.
  16. For example, this can happen if we have sent our request, but we are still
  17. waiting for the server's response. Similarly any attempts to write to a socket
  18. that is not able to write at the moment will block until writing is possible.
  19. This blocking behaviour simplifies the implementation of a client because you do
  20. not have to worry about what happens if data is not yet available. The
  21. application will simply wait until it is available.
  22. The complete source code for this example blocking TLS client is available in
  23. the B<demos/guide> directory of the OpenSSL source distribution in the file
  24. B<tls-client-block.c>. It is also available online at
  25. L<https://github.com/openssl/openssl/blob/master/demos/guide/tls-client-block.c>.
  26. We assume that you already have OpenSSL installed on your system; that you
  27. already have some fundamental understanding of OpenSSL concepts and TLS (see
  28. L<ossl-guide-libraries-introduction(7)> and L<ossl-guide-tls-introduction(7)>);
  29. and that you know how to write and build C code and link it against the
  30. libcrypto and libssl libraries that are provided by OpenSSL. It also assumes
  31. that you have a basic understanding of TCP/IP and sockets.
  32. =head2 Creating the SSL_CTX and SSL objects
  33. The first step is to create an B<SSL_CTX> object for our client. We use the
  34. L<SSL_CTX_new(3)> function for this purpose. We could alternatively use
  35. L<SSL_CTX_new_ex(3)> if we want to associate the B<SSL_CTX> with a particular
  36. B<OSSL_LIB_CTX> (see L<ossl-guide-libraries-introduction(7)> to learn about
  37. B<OSSL_LIB_CTX>). We pass as an argument the return value of the function
  38. L<TLS_client_method(3)>. You should use this method whenever you are writing a
  39. TLS client. This method will automatically use TLS version negotiation to select
  40. the highest version of the protocol that is mutually supported by both the
  41. client and the server.
  42. /*
  43. * Create an SSL_CTX which we can use to create SSL objects from. We
  44. * want an SSL_CTX for creating clients so we use TLS_client_method()
  45. * here.
  46. */
  47. ctx = SSL_CTX_new(TLS_client_method());
  48. if (ctx == NULL) {
  49. printf("Failed to create the SSL_CTX\n");
  50. goto end;
  51. }
  52. Since we are writing a client we must ensure that we verify the server's
  53. certificate. We do this by calling the L<SSL_CTX_set_verify(3)> function and
  54. pass the B<SSL_VERIFY_PEER> value to it. The final argument to this function
  55. is a callback that you can optionally supply to override the default handling
  56. for certificate verification. Most applications do not need to do this so this
  57. can safely be set to NULL to get the default handling.
  58. /*
  59. * Configure the client to abort the handshake if certificate
  60. * verification fails. Virtually all clients should do this unless you
  61. * really know what you are doing.
  62. */
  63. SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);
  64. In order for certificate verification to be successful you must have configured
  65. where the trusted certificate store to be used is located (see
  66. L<ossl-guide-tls-introduction(7)>). In most cases you just want to use the
  67. default store so we call L<SSL_CTX_set_default_verify_paths(3)>.
  68. /* Use the default trusted certificate store */
  69. if (!SSL_CTX_set_default_verify_paths(ctx)) {
  70. printf("Failed to set the default trusted certificate store\n");
  71. goto end;
  72. }
  73. We would also like to restrict the TLS versions that we are willing to accept to
  74. TLSv1.2 or above. TLS protocol versions earlier than that are generally to be
  75. avoided where possible. We can do that using
  76. L<SSL_CTX_set_min_proto_version(3)>:
  77. /*
  78. * TLSv1.1 or earlier are deprecated by IETF and are generally to be
  79. * avoided if possible. We require a minimum TLS version of TLSv1.2.
  80. */
  81. if (!SSL_CTX_set_min_proto_version(ctx, TLS1_2_VERSION)) {
  82. printf("Failed to set the minimum TLS protocol version\n");
  83. goto end;
  84. }
  85. That is all the setup that we need to do for the B<SSL_CTX>, so next we need to
  86. create an B<SSL> object to represent the TLS connection. In a real application
  87. we might expect to be creating more than one TLS connection over time. In that
  88. case we would expect to reuse the B<SSL_CTX> that we already created each time.
  89. There is no need to repeat those steps. In fact it is best not to since certain
  90. internal resources are cached in the B<SSL_CTX>. You will get better performance
  91. by reusing an existing B<SSL_CTX> instead of creating a new one each time.
  92. Creating the B<SSL> object is a simple matter of calling the B<SSL_new(3)>
  93. function and passing the B<SSL_CTX> we created as an argument.
  94. /* Create an SSL object to represent the TLS connection */
  95. ssl = SSL_new(ctx);
  96. if (ssl == NULL) {
  97. printf("Failed to create the SSL object\n");
  98. goto end;
  99. }
  100. =head2 Creating the socket and BIO
  101. TLS data is transmitted over an underlying transport layer. Normally a TCP
  102. socket. It is the application's responsibility for ensuring that the socket is
  103. created and associated with an SSL object (via a BIO).
  104. Socket creation for use by a client is typically a 2 step process, i.e.
  105. constructing the socket; and connecting the socket.
  106. How to construct a socket is platform specific - but most platforms (including
  107. Windows) provide a POSIX compatible interface via the I<socket> function, e.g.
  108. to create an IPv4 TCP socket:
  109. int sock;
  110. sock = socket(AF_INET, SOCK_STREAM, 0);
  111. if (sock == -1)
  112. return NULL;
  113. Once the socket is constructed it must be connected to the remote server. Again
  114. the details are platform specific but most platforms (including Windows)
  115. provide the POSIX compatible I<connect> function. For example:
  116. struct sockaddr_in serveraddr;
  117. struct hostent *server;
  118. server = gethostbyname("www.openssl.org");
  119. if (server == NULL) {
  120. close(sock);
  121. return NULL;
  122. }
  123. memset(&serveraddr, 0, sizeof(serveraddr));
  124. serveraddr.sin_family = server->h_addrtype;
  125. serveraddr.sin_port = htons(443);
  126. memcpy(&serveraddr.sin_addr.s_addr, server->h_addr, server->h_length);
  127. if (connect(sock, (struct sockaddr *)&serveraddr,
  128. sizeof(serveraddr)) == -1) {
  129. close(sock);
  130. return NULL;
  131. }
  132. OpenSSL provides portable helper functions to do these tasks which also
  133. integrate into the OpenSSL error system to log error data, e.g.
  134. int sock = -1;
  135. BIO_ADDRINFO *res;
  136. const BIO_ADDRINFO *ai = NULL;
  137. /*
  138. * Lookup IP address info for the server.
  139. */
  140. if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_STREAM, 0,
  141. &res))
  142. return NULL;
  143. /*
  144. * Loop through all the possible addresses for the server and find one
  145. * we can connect to.
  146. */
  147. for (ai = res; ai != NULL; ai = BIO_ADDRINFO_next(ai)) {
  148. /*
  149. * Create a TCP socket. We could equally use non-OpenSSL calls such
  150. * as "socket" here for this and the subsequent connect and close
  151. * functions. But for portability reasons and also so that we get
  152. * errors on the OpenSSL stack in the event of a failure we use
  153. * OpenSSL's versions of these functions.
  154. */
  155. sock = BIO_socket(BIO_ADDRINFO_family(ai), SOCK_STREAM, 0, 0);
  156. if (sock == -1)
  157. continue;
  158. /* Connect the socket to the server's address */
  159. if (!BIO_connect(sock, BIO_ADDRINFO_address(ai), BIO_SOCK_NODELAY)) {
  160. BIO_closesocket(sock);
  161. sock = -1;
  162. continue;
  163. }
  164. /* We have a connected socket so break out of the loop */
  165. break;
  166. }
  167. /* Free the address information resources we allocated earlier */
  168. BIO_ADDRINFO_free(res);
  169. See L<BIO_lookup_ex(3)>, L<BIO_socket(3)>, L<BIO_connect(3)>,
  170. L<BIO_closesocket(3)>, L<BIO_ADDRINFO_next(3)>, L<BIO_ADDRINFO_address(3)> and
  171. L<BIO_ADDRINFO_free(3)> for further information on the functions used here. In
  172. the above example code the B<hostname> and B<port> variables are strings, e.g.
  173. "www.example.com" and "443". Note also the use of the family variable, which
  174. can take the values of AF_INET or AF_INET6 based on the command line -6 option,
  175. to allow specific connections to an ipv4 or ipv6 enabled host.
  176. Sockets created using the methods described above will automatically be blocking
  177. sockets - which is exactly what we want for this example.
  178. Once the socket has been created and connected we need to associate it with a
  179. BIO object:
  180. BIO *bio;
  181. /* Create a BIO to wrap the socket */
  182. bio = BIO_new(BIO_s_socket());
  183. if (bio == NULL) {
  184. BIO_closesocket(sock);
  185. return NULL;
  186. }
  187. /*
  188. * Associate the newly created BIO with the underlying socket. By
  189. * passing BIO_CLOSE here the socket will be automatically closed when
  190. * the BIO is freed. Alternatively you can use BIO_NOCLOSE, in which
  191. * case you must close the socket explicitly when it is no longer
  192. * needed.
  193. */
  194. BIO_set_fd(bio, sock, BIO_CLOSE);
  195. See L<BIO_new(3)>, L<BIO_s_socket(3)> and L<BIO_set_fd(3)> for further
  196. information on these functions.
  197. Finally we associate the B<SSL> object we created earlier with the B<BIO> using
  198. the L<SSL_set_bio(3)> function. Note that this passes ownership of the B<BIO>
  199. object to the B<SSL> object. Once ownership is passed the SSL object is
  200. responsible for its management and will free it automatically when the B<SSL> is
  201. freed. So, once L<SSL_set_bio(3)> has been been called, you should not call
  202. L<BIO_free(3)> on the B<BIO>.
  203. SSL_set_bio(ssl, bio, bio);
  204. =head2 Setting the server's hostname
  205. We have already connected our underlying socket to the server, but the client
  206. still needs to know the server's hostname. It uses this information for 2 key
  207. purposes and we need to set the hostname for each one.
  208. Firstly, the server's hostname is included in the initial ClientHello message
  209. sent by the client. This is known as the Server Name Indication (SNI). This is
  210. important because it is common for multiple hostnames to be fronted by a single
  211. server that handles requests for all of them. In other words a single server may
  212. have multiple hostnames associated with it and it is important to indicate which
  213. one we want to connect to. Without this information we may get a handshake
  214. failure, or we may get connected to the "default" server which may not be the
  215. one we were expecting.
  216. To set the SNI hostname data we call the L<SSL_set_tlsext_host_name(3)> function
  217. like this:
  218. /*
  219. * Tell the server during the handshake which hostname we are attempting
  220. * to connect to in case the server supports multiple hosts.
  221. */
  222. if (!SSL_set_tlsext_host_name(ssl, hostname)) {
  223. printf("Failed to set the SNI hostname\n");
  224. goto end;
  225. }
  226. Here the C<hostname> argument is a string representing the hostname of the
  227. server, e.g. "www.example.com".
  228. Secondly, we need to tell OpenSSL what hostname we expect to see in the
  229. certificate coming back from the server. This is almost always the same one that
  230. we asked for in the original request. This is important because, without this,
  231. we do not verify that the hostname in the certificate is what we expect it to be
  232. and any certificate is acceptable unless your application explicitly checks this
  233. itself. We do this via the L<SSL_set1_host(3)> function:
  234. /*
  235. * Ensure we check during certificate verification that the server has
  236. * supplied a certificate for the hostname that we were expecting.
  237. * Virtually all clients should do this unless you really know what you
  238. * are doing.
  239. */
  240. if (!SSL_set1_host(ssl, hostname)) {
  241. printf("Failed to set the certificate verification hostname");
  242. goto end;
  243. }
  244. All of the above steps must happen before we attempt to perform the handshake
  245. otherwise they will have no effect.
  246. =head2 Performing the handshake
  247. Before we can start sending or receiving application data over a TLS connection
  248. the TLS handshake must be performed. We can do this explicitly via the
  249. L<SSL_connect(3)> function.
  250. /* Do the handshake with the server */
  251. if (SSL_connect(ssl) < 1) {
  252. printf("Failed to connect to the server\n");
  253. /*
  254. * If the failure is due to a verification error we can get more
  255. * information about it from SSL_get_verify_result().
  256. */
  257. if (SSL_get_verify_result(ssl) != X509_V_OK)
  258. printf("Verify error: %s\n",
  259. X509_verify_cert_error_string(SSL_get_verify_result(ssl)));
  260. goto end;
  261. }
  262. The L<SSL_connect(3)> function can return 1, 0 or less than 0. Only a return
  263. value of 1 is considered a success. For a simple blocking client we only need
  264. to concern ourselves with whether the call was successful or not. Anything else
  265. indicates that we have failed to connect to the server.
  266. A common cause of failures at this stage is due to a problem verifying the
  267. server's certificate. For example if the certificate has expired, or it is not
  268. signed by a CA in our trusted certificate store. We can use the
  269. L<SSL_get_verify_result(3)> function to find out more information about the
  270. verification failure. A return value of B<X509_V_OK> indicates that the
  271. verification was successful (so the connection error must be due to some other
  272. cause). Otherwise we use the L<X509_verify_cert_error_string(3)> function to get
  273. a human readable error message.
  274. =head2 Sending and receiving data
  275. Once the handshake is complete we are able to send and receive application data.
  276. Exactly what data is sent and in what order is usually controlled by some
  277. application level protocol. In this example we are using HTTP 1.0 which is a
  278. very simple request and response protocol. The client sends a request to the
  279. server. The server sends the response data and then immediately closes down the
  280. connection.
  281. To send data to the server we use the L<SSL_write_ex(3)> function and to receive
  282. data from the server we use the L<SSL_read_ex(3)> function. In HTTP 1.0 the
  283. client always writes data first. Our HTTP request will include the hostname that
  284. we are connecting to. For simplicity, we write the HTTP request in three
  285. chunks. First we write the start of the request. Secondly we write the hostname
  286. we are sending the request to. Finally we send the end of the request.
  287. size_t written;
  288. const char *request_start = "GET / HTTP/1.0\r\nConnection: close\r\nHost: ";
  289. const char *request_end = "\r\n\r\n";
  290. /* Write an HTTP GET request to the peer */
  291. if (!SSL_write_ex(ssl, request_start, strlen(request_start), &written)) {
  292. printf("Failed to write start of HTTP request\n");
  293. goto end;
  294. }
  295. if (!SSL_write_ex(ssl, hostname, strlen(hostname), &written)) {
  296. printf("Failed to write hostname in HTTP request\n");
  297. goto end;
  298. }
  299. if (!SSL_write_ex(ssl, request_end, strlen(request_end), &written)) {
  300. printf("Failed to write end of HTTP request\n");
  301. goto end;
  302. }
  303. The L<SSL_write_ex(3)> function returns 0 if it fails and 1 if it is successful.
  304. If it is successful then we can proceed to waiting for a response from the
  305. server.
  306. size_t readbytes;
  307. char buf[160];
  308. /*
  309. * Get up to sizeof(buf) bytes of the response. We keep reading until the
  310. * server closes the connection.
  311. */
  312. while (SSL_read_ex(ssl, buf, sizeof(buf), &readbytes)) {
  313. /*
  314. * OpenSSL does not guarantee that the returned data is a string or
  315. * that it is NUL terminated so we use fwrite() to write the exact
  316. * number of bytes that we read. The data could be non-printable or
  317. * have NUL characters in the middle of it. For this simple example
  318. * we're going to print it to stdout anyway.
  319. */
  320. fwrite(buf, 1, readbytes, stdout);
  321. }
  322. /* In case the response didn't finish with a newline we add one now */
  323. printf("\n");
  324. We use the L<SSL_read_ex(3)> function to read the response. We don't know
  325. exactly how much data we are going to receive back so we enter a loop reading
  326. blocks of data from the server and printing each block that we receive to the
  327. screen. The loop ends as soon as L<SSL_read_ex(3)> returns 0 - meaning that it
  328. failed to read any data.
  329. A failure to read data could mean that there has been some error, or it could
  330. simply mean that server has sent all the data that it wants to send and has
  331. indicated that it has finished by sending a "close_notify" alert. This alert is
  332. a TLS protocol level message indicating that the endpoint has finished sending
  333. all of its data and it will not send any more. Both of these conditions result
  334. in a 0 return value from L<SSL_read_ex(3)> and we need to use the function
  335. L<SSL_get_error(3)> to determine the cause of the 0 return value.
  336. /*
  337. * Check whether we finished the while loop above normally or as the
  338. * result of an error. The 0 argument to SSL_get_error() is the return
  339. * code we received from the SSL_read_ex() call. It must be 0 in order
  340. * to get here. Normal completion is indicated by SSL_ERROR_ZERO_RETURN.
  341. */
  342. if (SSL_get_error(ssl, 0) != SSL_ERROR_ZERO_RETURN) {
  343. /*
  344. * Some error occurred other than a graceful close down by the
  345. * peer
  346. */
  347. printf ("Failed reading remaining data\n");
  348. goto end;
  349. }
  350. If L<SSL_get_error(3)> returns B<SSL_ERROR_ZERO_RETURN> then we know that the
  351. server has finished sending its data. Otherwise an error has occurred.
  352. =head2 Shutting down the connection
  353. Once we have finished reading data from the server then we are ready to close
  354. the connection down. We do this via the L<SSL_shutdown(3)> function which has
  355. the effect of sending a TLS protocol level message (a "close_notify" alert) to
  356. the server saying that we have finished writing data:
  357. /*
  358. * The peer already shutdown gracefully (we know this because of the
  359. * SSL_ERROR_ZERO_RETURN above). We should do the same back.
  360. */
  361. ret = SSL_shutdown(ssl);
  362. if (ret < 1) {
  363. /*
  364. * ret < 0 indicates an error. ret == 0 would be unexpected here
  365. * because that means "we've sent a close_notify and we're waiting
  366. * for one back". But we already know we got one from the peer
  367. * because of the SSL_ERROR_ZERO_RETURN above.
  368. */
  369. printf("Error shutting down\n");
  370. goto end;
  371. }
  372. The L<SSL_shutdown(3)> function will either return 1, 0, or less than 0. A
  373. return value of 1 is a success, and a return value less than 0 is an error. More
  374. precisely a return value of 1 means that we have sent a "close_notify" alert to
  375. the server, and that we have also received one back. A return value of 0 means
  376. that we have sent a "close_notify" alert to the server, but we have not yet
  377. received one back. Usually in this scenario you would call L<SSL_shutdown(3)>
  378. again which (with a blocking socket) would block until the "close_notify" is
  379. received. However in this case we already know that the server has sent us a
  380. "close_notify" because of the SSL_ERROR_ZERO_RETURN that we received from the
  381. call to L<SSL_read_ex(3)>. So this scenario should never happen in practice. We
  382. just treat it as an error in this example.
  383. =head2 Final clean up
  384. Before the application exits we have to clean up some memory that we allocated.
  385. If we are exiting due to an error we might also want to display further
  386. information about that error if it is available to the user:
  387. /* Success! */
  388. res = EXIT_SUCCESS;
  389. end:
  390. /*
  391. * If something bad happened then we will dump the contents of the
  392. * OpenSSL error stack to stderr. There might be some useful diagnostic
  393. * information there.
  394. */
  395. if (res == EXIT_FAILURE)
  396. ERR_print_errors_fp(stderr);
  397. /*
  398. * Free the resources we allocated. We do not free the BIO object here
  399. * because ownership of it was immediately transferred to the SSL object
  400. * via SSL_set_bio(). The BIO will be freed when we free the SSL object.
  401. */
  402. SSL_free(ssl);
  403. SSL_CTX_free(ctx);
  404. return res;
  405. To display errors we make use of the L<ERR_print_errors_fp(3)> function which
  406. simply dumps out the contents of any errors on the OpenSSL error stack to the
  407. specified location (in this case I<stderr>).
  408. We need to free up the B<SSL> object that we created for the connection via the
  409. L<SSL_free(3)> function. Also, since we are not going to be creating any more
  410. TLS connections we must also free up the B<SSL_CTX> via a call to
  411. L<SSL_CTX_free(3)>.
  412. =head1 TROUBLESHOOTING
  413. There are a number of things that might go wrong when running the demo
  414. application. This section describes some common things you might encounter.
  415. =head2 Failure to connect the underlying socket
  416. This could occur for numerous reasons. For example if there is a problem in the
  417. network route between the client and the server; or a firewall is blocking the
  418. communication; or the server is not in DNS. Check the network configuration.
  419. =head2 Verification failure of the server certificate
  420. A verification failure of the server certificate would result in a failure when
  421. running the L<SSL_connect(3)> function. L<ERR_print_errors_fp(3)> would display
  422. an error which would look something like this:
  423. Verify error: unable to get local issuer certificate
  424. 40E74AF1F47F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2069:
  425. A server certificate verification failure could be caused for a number of
  426. reasons. For example
  427. =over 4
  428. =item Failure to correctly setup the trusted certificate store
  429. See the page L<ossl-guide-tls-introduction(7)> and check that your trusted
  430. certificate store is correctly configured
  431. =item Unrecognised CA
  432. If the CA used by the server's certificate is not in the trusted certificate
  433. store for the client then this will cause a verification failure during
  434. connection. Often this can occur if the server is using a self-signed
  435. certificate (i.e. a test certificate that has not been signed by a CA at all).
  436. =item Missing intermediate CAs
  437. This is a server misconfiguration where the client has the relevant root CA in
  438. its trust store, but the server has not supplied all of the intermediate CA
  439. certificates between that root CA and the server's own certificate. Therefore
  440. a trust chain cannot be established.
  441. =item Mismatched hostname
  442. If for some reason the hostname of the server that the client is expecting does
  443. not match the hostname in the certificate then this will cause verification to
  444. fail.
  445. =item Expired certificate
  446. The date that the server's certificate is valid to has passed.
  447. =back
  448. The "unable to get local issuer certificate" we saw in the example above means
  449. that we have been unable to find the issuer of the server's certificate (or one
  450. of its intermediate CA certificates) in our trusted certificate store (e.g.
  451. because the trusted certificate store is misconfigured, or there are missing
  452. intermediate CAs, or the issuer is simply unrecognised).
  453. =head1 FURTHER READING
  454. See L<ossl-guide-tls-client-non-block(7)> to read a tutorial on how to modify
  455. the client developed on this page to support a nonblocking socket.
  456. See L<ossl-guide-quic-client-block(7)> to read a tutorial on how to modify the
  457. client developed on this page to support QUIC instead of TLS.
  458. =head1 SEE ALSO
  459. L<ossl-guide-introduction(7)>, L<ossl-guide-libraries-introduction(7)>,
  460. L<ossl-guide-libssl-introduction(7)>, L<ossl-guide-tls-introduction(7)>,
  461. L<ossl-guide-tls-client-non-block(7)>, L<ossl-guide-quic-client-block(7)>
  462. =head1 COPYRIGHT
  463. Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
  464. Licensed under the Apache License 2.0 (the "License"). You may not use
  465. this file except in compliance with the License. You can obtain a copy
  466. in the file LICENSE in the source distribution or at
  467. L<https://www.openssl.org/source/license.html>.
  468. =cut