Lines Matching defs:cur
495 * \param cur Pointer to the current position in the buffer.
503 static inline int mbedtls_ssl_chk_buf_ptr(const uint8_t *cur,
506 return (cur > end) || (need > (size_t) (end - cur));
510 const uint8_t *cur;
516 const uint8_t *cur, const uint8_t *end, size_t need);
522 static inline int mbedtls_ssl_chk_buf_ptr(const uint8_t *cur,
525 if ((cur > end) || (need > (size_t) (end - cur))) {
526 mbedtls_ssl_set_chk_buf_ptr_fail_args(cur, end, need);
538 * \param cur Pointer to the current position in the buffer.
543 #define MBEDTLS_SSL_CHK_BUF_PTR(cur, end, need) \
545 if (mbedtls_ssl_chk_buf_ptr((cur), (end), (need)) != 0) \
560 * \param cur Pointer to the current position in the buffer.
565 #define MBEDTLS_SSL_CHK_BUF_READ_PTR(cur, end, need) \
567 if (mbedtls_ssl_chk_buf_ptr((cur), (end), (need)) != 0) \