<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          s2nTLS/SSL 協(xié)議實(shí)現(xiàn)

          聯(lián)合創(chuàng)作 · 2023-09-30 09:13

          s2n 是來(lái)自亞馬遜的一個(gè) TLS/SSL 協(xié)議的實(shí)現(xiàn),實(shí)現(xiàn)的目標(biāo)是簡(jiǎn)單、快速安全。

          示例代碼:

          /* Create a server mode connection handle */
          struct s2n_connection *conn = s2n_connection_new(S2N_SERVER);
          if (conn == NULL) {
              ... error ...
          }
          
          /* Associate a connection with a file descriptor */
          if (s2n_connection_set_fd(conn, fd) < 0) {
              ... error ...
          }
          
          /* Negotiate the TLS handshake */
          int more;
          if (s2n_negotiate(conn, &more) < 0) {
              ... error ...
          }
          
          /* Write data to the connection */
          int bytes_written;
          bytes_written = s2n_send(conn, "Hello World", sizeof("Hello World"), &more);
          瀏覽 24
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  在线免费观看亚洲网站 | 91欧美色 | 九九成人网站 | 久久久久理论 | 一级黄色a片在线观看 |