summaryrefslogtreecommitdiffstats
path: root/ssl/record/ssl3_buffer.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-10-17 16:33:40 +0100
committerMatt Caswell <matt@openssl.org>2022-10-20 14:39:33 +0100
commitb92fc4ae189fb0d5b0a2f34bc28e59cd7e1eed5a (patch)
treef5e0121ac2d8632d316b7e780dc3ce4996c2961d /ssl/record/ssl3_buffer.c
parente158ada6a74e5903354fdd5a6f56a32bbbba69fd (diff)
Remove some redundant code
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19424)
Diffstat (limited to 'ssl/record/ssl3_buffer.c')
-rw-r--r--ssl/record/ssl3_buffer.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/ssl/record/ssl3_buffer.c b/ssl/record/ssl3_buffer.c
deleted file mode 100644
index f165e08705..0000000000
--- a/ssl/record/ssl3_buffer.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
- *
- * Licensed under the Apache License 2.0 (the "License"). You may not use
- * this file except in compliance with the License. You can obtain a copy
- * in the file LICENSE in the source distribution or at
- * https://www.openssl.org/source/license.html
- */
-
-#include "../ssl_local.h"
-#include "record_local.h"
-
-void SSL3_BUFFER_set_data(SSL3_BUFFER *b, const unsigned char *d, size_t n)
-{
- if (d != NULL)
- memcpy(b->buf, d, n);
- b->left = n;
- b->offset = 0;
-}
-
-/*
- * Clear the contents of an SSL3_BUFFER but retain any memory allocated. Also
- * retains the default_len setting
- */
-void SSL3_BUFFER_clear(SSL3_BUFFER *b)
-{
- b->offset = 0;
- b->left = 0;
-}
-
-void SSL3_BUFFER_release(SSL3_BUFFER *b)
-{
- OPENSSL_free(b->buf);
- b->buf = NULL;
-}