diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_null.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_null.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/bio/bss_null.c b/src/lib/libcrypto/bio/bss_null.c index aee18e3ada..46b73339df 100644 --- a/src/lib/libcrypto/bio/bss_null.c +++ b/src/lib/libcrypto/bio/bss_null.c | |||
@@ -61,11 +61,11 @@ | |||
61 | #include "cryptlib.h" | 61 | #include "cryptlib.h" |
62 | #include <openssl/bio.h> | 62 | #include <openssl/bio.h> |
63 | 63 | ||
64 | static int null_write(BIO *h,char *buf,int num); | 64 | static int null_write(BIO *h, const char *buf, int num); |
65 | static int null_read(BIO *h,char *buf,int size); | 65 | static int null_read(BIO *h, char *buf, int size); |
66 | static int null_puts(BIO *h,char *str); | 66 | static int null_puts(BIO *h, const char *str); |
67 | static int null_gets(BIO *h,char *str,int size); | 67 | static int null_gets(BIO *h, char *str, int size); |
68 | static long null_ctrl(BIO *h,int cmd,long arg1,char *arg2); | 68 | static long null_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
69 | static int null_new(BIO *h); | 69 | static int null_new(BIO *h); |
70 | static int null_free(BIO *data); | 70 | static int null_free(BIO *data); |
71 | static BIO_METHOD null_method= | 71 | static BIO_METHOD null_method= |
@@ -106,12 +106,12 @@ static int null_read(BIO *b, char *out, int outl) | |||
106 | return(0); | 106 | return(0); |
107 | } | 107 | } |
108 | 108 | ||
109 | static int null_write(BIO *b, char *in, int inl) | 109 | static int null_write(BIO *b, const char *in, int inl) |
110 | { | 110 | { |
111 | return(inl); | 111 | return(inl); |
112 | } | 112 | } |
113 | 113 | ||
114 | static long null_ctrl(BIO *b, int cmd, long num, char *ptr) | 114 | static long null_ctrl(BIO *b, int cmd, long num, void *ptr) |
115 | { | 115 | { |
116 | long ret=1; | 116 | long ret=1; |
117 | 117 | ||
@@ -142,7 +142,7 @@ static int null_gets(BIO *bp, char *buf, int size) | |||
142 | return(0); | 142 | return(0); |
143 | } | 143 | } |
144 | 144 | ||
145 | static int null_puts(BIO *bp, char *str) | 145 | static int null_puts(BIO *bp, const char *str) |
146 | { | 146 | { |
147 | if (str == NULL) return(0); | 147 | if (str == NULL) return(0); |
148 | return(strlen(str)); | 148 | return(strlen(str)); |