Lines Matching refs:len
61 size_t len = 0; in nss_keylog_export() local
73 len += sprintf(nss_keylog_line + len, in nss_keylog_export()
77 len += sprintf(nss_keylog_line + len, in nss_keylog_export()
81 len += sprintf(nss_keylog_line + len, " "); in nss_keylog_export()
84 len += sprintf(nss_keylog_line + len, in nss_keylog_export()
88 len += sprintf(nss_keylog_line + len, "\n"); in nss_keylog_export()
89 nss_keylog_line[len] = '\0'; in nss_keylog_export()
107 if (fwrite(nss_keylog_line, 1, len, f) != len) { in nss_keylog_export()
147 unsigned char const *buf, size_t len) in ssl_check_record() argument
154 tmp_buf = mbedtls_calloc(1, len); in ssl_check_record()
158 memcpy(tmp_buf, buf, len); in ssl_check_record()
160 ret_cr1 = mbedtls_ssl_check_record(ssl, tmp_buf, len); in ssl_check_record()
164 memcpy(tmp_buf, buf, len); /* Restore buffer */ in ssl_check_record()
165 ret_cr2 = mbedtls_ssl_check_record(ssl, tmp_buf, len); in ssl_check_record()
210 int recv_cb(void *ctx, unsigned char *buf, size_t len) in recv_cb() argument
217 ret = delayed_recv(io_ctx->net, buf, len); in recv_cb()
219 ret = mbedtls_net_recv(io_ctx->net, buf, len); in recv_cb()
238 int recv_timeout_cb(void *ctx, unsigned char *buf, size_t len, in recv_timeout_cb() argument
245 ret = mbedtls_net_recv_timeout(io_ctx->net, buf, len, timeout); in recv_timeout_cb()
263 int send_cb(void *ctx, unsigned char const *buf, size_t len) in send_cb() argument
268 return delayed_send(io_ctx->net, buf, len); in send_cb()
271 return mbedtls_net_send(io_ctx->net, buf, len); in send_cb()