Lines Matching full:rustls
33 #include <rustls.h>
176 * - Read a chunk of bytes from the socket into rustls' TLS input buffer.
177 * - Tell rustls to process any new packets.
178 * - Read out as many plaintext bytes from rustls as possible, until hitting
182 * In that case, it will copy bytes from the socket into rustls' TLS input
183 * buffer, and process packets, but won't consume bytes from rustls' plaintext
222 failf(data, "rustls: peer closed TCP connection " in cr_recv()
307 * - Copy `plainlen` bytes into rustls' plaintext input buffer (if > 0).
308 * - Fully drain rustls' plaintext output buffer into the socket until
312 * In that case, it won't read anything into rustls' plaintext input buffer.
313 * It will only drain rustls' plaintext output buffer into the socket.
358 CURL_TRC_CF(data, cf, "cf_send: adding %zu plain bytes to rustls", blen); in cr_send()
377 * complete send() and remember how much we already added to rustls. */ in cr_send()
379 " bytes already to rustls", blen); in cr_send()
396 /* A server certificate verify callback for rustls that always returns
464 /* rustls doesn't support IP addresses (as of 0.19.0), and will reject in cr_init_backend()
483 failf(data, "rustls: failed to parse trusted certificates from blob"); in cr_init_backend()
495 failf(data, "rustls: failed to load trusted certificates"); in cr_init_backend()
506 failf(data, "rustls: failed to load trusted certificates"); in cr_init_backend()
518 failf(data, "rustls: failed to load trusted certificates"); in cr_init_backend()
604 * Connection has been established according to rustls. Set send/recv in cr_connect_common()
609 /* rustls claims it is no longer handshaking *before* it has in cr_connect_common()
642 failf(data, "rustls: operation timed out before socket check"); in cr_connect_common()
656 failf(data, "rustls connection timeout after %" in cr_connect_common()
741 failf(data, "rustls: error sending close_notify: %d", tmperr); in cr_close()
760 { CURLSSLBACKEND_RUSTLS, "rustls" },