summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_mem.c')
-rw-r--r--src/lib/libcrypto/bio/bss_mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bss_mem.c b/src/lib/libcrypto/bio/bss_mem.c
index be491ca152..a699dc51c3 100644
--- a/src/lib/libcrypto/bio/bss_mem.c
+++ b/src/lib/libcrypto/bio/bss_mem.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_mem.c,v 1.15 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: bss_mem.c,v 1.16 2018/05/12 17:47:53 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -72,7 +72,7 @@ static long mem_ctrl(BIO *h, int cmd, long arg1, void *arg2);
72static int mem_new(BIO *h); 72static int mem_new(BIO *h);
73static int mem_free(BIO *data); 73static int mem_free(BIO *data);
74 74
75static BIO_METHOD mem_method = { 75static const BIO_METHOD mem_method = {
76 .type = BIO_TYPE_MEM, 76 .type = BIO_TYPE_MEM,
77 .name = "memory buffer", 77 .name = "memory buffer",
78 .bwrite = mem_write, 78 .bwrite = mem_write,
@@ -87,7 +87,7 @@ static BIO_METHOD mem_method = {
87/* bio->num is used to hold the value to return on 'empty', if it is 87/* bio->num is used to hold the value to return on 'empty', if it is
88 * 0, should_retry is not set */ 88 * 0, should_retry is not set */
89 89
90BIO_METHOD * 90const BIO_METHOD *
91BIO_s_mem(void) 91BIO_s_mem(void)
92{ 92{
93 return (&mem_method); 93 return (&mem_method);