summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_null.c')
-rw-r--r--src/lib/libcrypto/bio/bss_null.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bss_null.c b/src/lib/libcrypto/bio/bss_null.c
index 42ee626b13..c6de844da5 100644
--- a/src/lib/libcrypto/bio/bss_null.c
+++ b/src/lib/libcrypto/bio/bss_null.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_null.c,v 1.10 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: bss_null.c,v 1.11 2018/05/01 13:29:10 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 *
@@ -70,7 +70,7 @@ static long null_ctrl(BIO *h, int cmd, long arg1, void *arg2);
70static int null_new(BIO *h); 70static int null_new(BIO *h);
71static int null_free(BIO *data); 71static int null_free(BIO *data);
72 72
73static BIO_METHOD null_method = { 73static const BIO_METHOD null_method = {
74 .type = BIO_TYPE_NULL, 74 .type = BIO_TYPE_NULL,
75 .name = "NULL", 75 .name = "NULL",
76 .bwrite = null_write, 76 .bwrite = null_write,
@@ -82,7 +82,7 @@ static BIO_METHOD null_method = {
82 .destroy = null_free 82 .destroy = null_free
83}; 83};
84 84
85BIO_METHOD * 85const BIO_METHOD *
86BIO_s_null(void) 86BIO_s_null(void)
87{ 87{
88 return (&null_method); 88 return (&null_method);