chromium/third_party/boringssl/src/ssl/ssl_buffer.cc

/* Copyright (c) 2015, Google Inc.
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */

#include <openssl/ssl.h>

#include <assert.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>

#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/mem.h>

#include "../crypto/internal.h"
#include "internal.h"


BSSL_NAMESPACE_BEGIN

// BIO uses int instead of size_t. No lengths will exceed uint16_t, so this will
// not overflow.
static_assert;

static_assert;

void SSLBuffer::Clear() {}

bool SSLBuffer::EnsureCap(size_t header_len, size_t new_cap) {}

void SSLBuffer::DidWrite(size_t new_size) {}

void SSLBuffer::Consume(size_t len) {}

void SSLBuffer::DiscardConsumed() {}

static int dtls_read_buffer_next_packet(SSL *ssl) {}

static int tls_read_buffer_extend_to(SSL *ssl, size_t len) {}

int ssl_read_buffer_extend_to(SSL *ssl, size_t len) {}

int ssl_handle_open_record(SSL *ssl, bool *out_retry, ssl_open_record_t ret,
                           size_t consumed, uint8_t alert) {}


static_assert;

static_assert;

static int tls_write_buffer_flush(SSL *ssl) {}

static int dtls_write_buffer_flush(SSL *ssl) {}

int ssl_write_buffer_flush(SSL *ssl) {}

BSSL_NAMESPACE_END