summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bf_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bf_null.c')
-rw-r--r--src/lib/libcrypto/bio/bf_null.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bio/bf_null.c b/src/lib/libcrypto/bio/bf_null.c
index 0d183a6d9a..2678a1a85d 100644
--- a/src/lib/libcrypto/bio/bf_null.c
+++ b/src/lib/libcrypto/bio/bf_null.c
@@ -65,14 +65,14 @@
65/* BIO_put and BIO_get both add to the digest, 65/* BIO_put and BIO_get both add to the digest,
66 * BIO_gets returns the digest */ 66 * BIO_gets returns the digest */
67 67
68static int nullf_write(BIO *h,char *buf,int num); 68static int nullf_write(BIO *h, const char *buf, int num);
69static int nullf_read(BIO *h,char *buf,int size); 69static int nullf_read(BIO *h, char *buf, int size);
70static int nullf_puts(BIO *h,char *str); 70static int nullf_puts(BIO *h, const char *str);
71static int nullf_gets(BIO *h,char *str,int size); 71static int nullf_gets(BIO *h, char *str, int size);
72static long nullf_ctrl(BIO *h,int cmd,long arg1,char *arg2); 72static long nullf_ctrl(BIO *h, int cmd, long arg1, void *arg2);
73static int nullf_new(BIO *h); 73static int nullf_new(BIO *h);
74static int nullf_free(BIO *data); 74static int nullf_free(BIO *data);
75static long nullf_callback_ctrl(BIO *h,int cmd,void (*fp)()); 75static long nullf_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
76static BIO_METHOD methods_nullf= 76static BIO_METHOD methods_nullf=
77 { 77 {
78 BIO_TYPE_NULL_FILTER, 78 BIO_TYPE_NULL_FILTER,
@@ -121,7 +121,7 @@ static int nullf_read(BIO *b, char *out, int outl)
121 return(ret); 121 return(ret);
122 } 122 }
123 123
124static int nullf_write(BIO *b, char *in, int inl) 124static int nullf_write(BIO *b, const char *in, int inl)
125 { 125 {
126 int ret=0; 126 int ret=0;
127 127
@@ -133,7 +133,7 @@ static int nullf_write(BIO *b, char *in, int inl)
133 return(ret); 133 return(ret);
134 } 134 }
135 135
136static long nullf_ctrl(BIO *b, int cmd, long num, char *ptr) 136static long nullf_ctrl(BIO *b, int cmd, long num, void *ptr)
137 { 137 {
138 long ret; 138 long ret;
139 139
@@ -154,7 +154,7 @@ static long nullf_ctrl(BIO *b, int cmd, long num, char *ptr)
154 return(ret); 154 return(ret);
155 } 155 }
156 156
157static long nullf_callback_ctrl(BIO *b, int cmd, void (*fp)()) 157static long nullf_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
158 { 158 {
159 long ret=1; 159 long ret=1;
160 160
@@ -175,7 +175,7 @@ static int nullf_gets(BIO *bp, char *buf, int size)
175 } 175 }
176 176
177 177
178static int nullf_puts(BIO *bp, char *str) 178static int nullf_puts(BIO *bp, const char *str)
179 { 179 {
180 if (bp->next_bio == NULL) return(0); 180 if (bp->next_bio == NULL) return(0);
181 return(BIO_puts(bp->next_bio,str)); 181 return(BIO_puts(bp->next_bio,str));