Lines Matching refs:buf
143 unsigned char const *buf, size_t len ) in ssl_check_record() argument
153 memcpy( tmp_buf, buf, len ); in ssl_check_record()
160 memcpy( tmp_buf, buf, len ); /* Restore buffer */ in ssl_check_record()
204 int recv_cb( void *ctx, unsigned char *buf, size_t len ) in recv_cb() argument
211 ret = delayed_recv( io_ctx->net, buf, len ); in recv_cb()
213 ret = mbedtls_net_recv( io_ctx->net, buf, len ); in recv_cb()
223 if( ssl_check_record( io_ctx->ssl, buf, recv_len ) != 0 ) in recv_cb()
230 int recv_timeout_cb( void *ctx, unsigned char *buf, size_t len, in recv_timeout_cb() argument
237 ret = mbedtls_net_recv_timeout( io_ctx->net, buf, len, timeout ); in recv_timeout_cb()
247 if( ssl_check_record( io_ctx->ssl, buf, recv_len ) != 0 ) in recv_timeout_cb()
254 int send_cb( void *ctx, unsigned char const *buf, size_t len ) in send_cb() argument
259 return( delayed_send( io_ctx->net, buf, len ) ); in send_cb()
261 return( mbedtls_net_send( io_ctx->net, buf, len ) ); in send_cb()
290 int x509_crt_verify_info( char *buf, size_t size, const char *prefix, in x509_crt_verify_info() argument
294 return( mbedtls_x509_crt_verify_info( buf, size, prefix, flags ) ); in x509_crt_verify_info()
298 char *p = buf; in x509_crt_verify_info()