diff options
author | tb <> | 2018-05-01 13:29:10 +0000 |
---|---|---|
committer | tb <> | 2018-05-01 13:29:10 +0000 |
commit | 82267b005082127062ce8593ce4963d09c361e2e (patch) | |
tree | 7876885f1d21e5b53f5a28cdd2d502808082a4fc /src/lib/libcrypto/bio/bss_fd.c | |
parent | 8b1e85eca7f06a392dbd8ae9b560599523c8de07 (diff) | |
download | openbsd-82267b005082127062ce8593ce4963d09c361e2e.tar.gz openbsd-82267b005082127062ce8593ce4963d09c361e2e.tar.bz2 openbsd-82267b005082127062ce8593ce4963d09c361e2e.zip |
const for BIO_{new,set}() and most of the BIO_{f,s}_*() family of
functions.
ok beck, jsing
Diffstat (limited to 'src/lib/libcrypto/bio/bss_fd.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bss_fd.c b/src/lib/libcrypto/bio/bss_fd.c index b21dbd92ed..bbe08efc4e 100644 --- a/src/lib/libcrypto/bio/bss_fd.c +++ b/src/lib/libcrypto/bio/bss_fd.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_fd.c,v 1.18 2015/02/12 03:54:07 jsing Exp $ */ | 1 | /* $OpenBSD: bss_fd.c,v 1.19 2018/05/01 13:29:09 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 | * |
@@ -74,7 +74,7 @@ static int fd_new(BIO *h); | |||
74 | static int fd_free(BIO *data); | 74 | static int fd_free(BIO *data); |
75 | int BIO_fd_should_retry(int s); | 75 | int BIO_fd_should_retry(int s); |
76 | 76 | ||
77 | static BIO_METHOD methods_fdp = { | 77 | static const BIO_METHOD methods_fdp = { |
78 | .type = BIO_TYPE_FD, | 78 | .type = BIO_TYPE_FD, |
79 | .name = "file descriptor", | 79 | .name = "file descriptor", |
80 | .bwrite = fd_write, | 80 | .bwrite = fd_write, |
@@ -86,7 +86,7 @@ static BIO_METHOD methods_fdp = { | |||
86 | .destroy = fd_free | 86 | .destroy = fd_free |
87 | }; | 87 | }; |
88 | 88 | ||
89 | BIO_METHOD * | 89 | const BIO_METHOD * |
90 | BIO_s_fd(void) | 90 | BIO_s_fd(void) |
91 | { | 91 | { |
92 | return (&methods_fdp); | 92 | return (&methods_fdp); |