summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_mem.c
diff options
context:
space:
mode:
authortb <>2018-05-12 17:47:53 +0000
committertb <>2018-05-12 17:47:53 +0000
commitd179dae307ac7f37cfdcb0967d16dd7186146e55 (patch)
tree9640075a182e16820fe72579b61fa8385d40e591 /src/lib/libcrypto/bio/bss_mem.c
parent4472f3d68a4cfdda378061fd79bb5cfbb348752d (diff)
downloadopenbsd-d179dae307ac7f37cfdcb0967d16dd7186146e55.tar.gz
openbsd-d179dae307ac7f37cfdcb0967d16dd7186146e55.tar.bz2
openbsd-d179dae307ac7f37cfdcb0967d16dd7186146e55.zip
Add const qualifiers to the return values of BIO_s_mem() and
BIO_s_datagram(). ok jsing
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);