Lines Matching refs:len

49     size_t len = 0;  in nss_keylog_export()  local
61 len += sprintf(nss_keylog_line + len, in nss_keylog_export()
65 len += sprintf(nss_keylog_line + len, in nss_keylog_export()
69 len += sprintf(nss_keylog_line + len, " "); in nss_keylog_export()
72 len += sprintf(nss_keylog_line + len, in nss_keylog_export()
76 len += sprintf(nss_keylog_line + len, "\n"); in nss_keylog_export()
77 nss_keylog_line[len] = '\0'; in nss_keylog_export()
95 if (fwrite(nss_keylog_line, 1, len, f) != len) { in nss_keylog_export()
135 unsigned char const *buf, size_t len) in ssl_check_record() argument
142 tmp_buf = mbedtls_calloc(1, len); in ssl_check_record()
146 memcpy(tmp_buf, buf, len); in ssl_check_record()
148 ret_cr1 = mbedtls_ssl_check_record(ssl, tmp_buf, len); in ssl_check_record()
152 memcpy(tmp_buf, buf, len); /* Restore buffer */ in ssl_check_record()
153 ret_cr2 = mbedtls_ssl_check_record(ssl, tmp_buf, len); in ssl_check_record()
198 int recv_cb(void *ctx, unsigned char *buf, size_t len) in recv_cb() argument
205 ret = delayed_recv(io_ctx->net, buf, len); in recv_cb()
207 ret = mbedtls_net_recv(io_ctx->net, buf, len); in recv_cb()
226 int recv_timeout_cb(void *ctx, unsigned char *buf, size_t len, in recv_timeout_cb() argument
233 ret = mbedtls_net_recv_timeout(io_ctx->net, buf, len, timeout); in recv_timeout_cb()
251 int send_cb(void *ctx, unsigned char const *buf, size_t len) in send_cb() argument
256 return delayed_send(io_ctx->net, buf, len); in send_cb()
259 return mbedtls_net_send(io_ctx->net, buf, len); in send_cb()