Lines Matching refs:hs_buf
420 if (!ssl->s3->hs_buf) { in read_v2_client_hello()
421 ssl->s3->hs_buf.reset(BUF_MEM_new()); in read_v2_client_hello()
423 if (!ssl->s3->hs_buf || in read_v2_client_hello()
424 !BUF_MEM_reserve(ssl->s3->hs_buf.get(), max_v3_client_hello) || in read_v2_client_hello()
425 !CBB_init_fixed(client_hello.get(), (uint8_t *)ssl->s3->hs_buf->data, in read_v2_client_hello()
426 ssl->s3->hs_buf->max) || in read_v2_client_hello()
459 !CBB_finish(client_hello.get(), NULL, &ssl->s3->hs_buf->length)) { in read_v2_client_hello()
471 if (!ssl->s3->hs_buf) { in parse_message()
478 CBS_init(&cbs, reinterpret_cast<const uint8_t *>(ssl->s3->hs_buf->data), in parse_message()
479 ssl->s3->hs_buf->length); in parse_message()
491 CBS_init(&out->raw, reinterpret_cast<const uint8_t *>(ssl->s3->hs_buf->data), in parse_message()
541 return ssl->s3->hs_buf && ssl->s3->hs_buf->length > msg_len; in tls_has_unprocessed_handshake_data()
546 if (!ssl->s3->hs_buf) { in tls_append_handshake_data()
547 ssl->s3->hs_buf.reset(BUF_MEM_new()); in tls_append_handshake_data()
549 return ssl->s3->hs_buf && in tls_append_handshake_data()
550 BUF_MEM_append(ssl->s3->hs_buf.get(), data.data(), data.size()); in tls_append_handshake_data()
635 !ssl->s3->hs_buf || in ssl3_next_message()
636 ssl->s3->hs_buf->length < CBS_len(&msg.raw)) { in ssl3_next_message()
641 OPENSSL_memmove(ssl->s3->hs_buf->data, in ssl3_next_message()
642 ssl->s3->hs_buf->data + CBS_len(&msg.raw), in ssl3_next_message()
643 ssl->s3->hs_buf->length - CBS_len(&msg.raw)); in ssl3_next_message()
644 ssl->s3->hs_buf->length -= CBS_len(&msg.raw); in ssl3_next_message()
650 if (!SSL_in_init(ssl) && ssl->s3->hs_buf->length == 0) { in ssl3_next_message()
651 ssl->s3->hs_buf.reset(); in ssl3_next_message()