summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_sock.c')
-rw-r--r--src/lib/libcrypto/bio/bss_sock.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/libcrypto/bio/bss_sock.c b/src/lib/libcrypto/bio/bss_sock.c
index 8ce80ef68d..50c6744c06 100644
--- a/src/lib/libcrypto/bio/bss_sock.c
+++ b/src/lib/libcrypto/bio/bss_sock.c
@@ -65,19 +65,19 @@
65#include <openssl/bio.h> 65#include <openssl/bio.h>
66 66
67#ifndef BIO_FD 67#ifndef BIO_FD
68static int sock_write(BIO *h,char *buf,int num); 68static int sock_write(BIO *h, const char *buf, int num);
69static int sock_read(BIO *h,char *buf,int size); 69static int sock_read(BIO *h, char *buf, int size);
70static int sock_puts(BIO *h,char *str); 70static int sock_puts(BIO *h, const char *str);
71static long sock_ctrl(BIO *h,int cmd,long arg1,char *arg2); 71static long sock_ctrl(BIO *h, int cmd, long arg1, void *arg2);
72static int sock_new(BIO *h); 72static int sock_new(BIO *h);
73static int sock_free(BIO *data); 73static int sock_free(BIO *data);
74int BIO_sock_should_retry(int s); 74int BIO_sock_should_retry(int s);
75#else 75#else
76 76
77static int fd_write(BIO *h,char *buf,int num); 77static int fd_write(BIO *h, const char *buf, int num);
78static int fd_read(BIO *h,char *buf,int size); 78static int fd_read(BIO *h, char *buf, int size);
79static int fd_puts(BIO *h,char *str); 79static int fd_puts(BIO *h, const char *str);
80static long fd_ctrl(BIO *h,int cmd,long arg1,char *arg2); 80static long fd_ctrl(BIO *h, int cmd, long arg1, void *arg2);
81static int fd_new(BIO *h); 81static int fd_new(BIO *h);
82static int fd_free(BIO *data); 82static int fd_free(BIO *data);
83int BIO_fd_should_retry(int s); 83int BIO_fd_should_retry(int s);
@@ -209,9 +209,9 @@ static int fd_read(BIO *b, char *out,int outl)
209 } 209 }
210 210
211#ifndef BIO_FD 211#ifndef BIO_FD
212static int sock_write(BIO *b, char *in, int inl) 212static int sock_write(BIO *b, const char *in, int inl)
213#else 213#else
214static int fd_write(BIO *b, char *in, int inl) 214static int fd_write(BIO *b, const char *in, int inl)
215#endif 215#endif
216 { 216 {
217 int ret; 217 int ret;
@@ -237,9 +237,9 @@ static int fd_write(BIO *b, char *in, int inl)
237 } 237 }
238 238
239#ifndef BIO_FD 239#ifndef BIO_FD
240static long sock_ctrl(BIO *b, int cmd, long num, char *ptr) 240static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
241#else 241#else
242static long fd_ctrl(BIO *b, int cmd, long num, char *ptr) 242static long fd_ctrl(BIO *b, int cmd, long num, void *ptr)
243#endif 243#endif
244 { 244 {
245 long ret=1; 245 long ret=1;
@@ -313,9 +313,9 @@ static int sock_gets(BIO *bp, char *buf,int size)
313#endif 313#endif
314 314
315#ifndef BIO_FD 315#ifndef BIO_FD
316static int sock_puts(BIO *bp, char *str) 316static int sock_puts(BIO *bp, const char *str)
317#else 317#else
318static int fd_puts(BIO *bp, char *str) 318static int fd_puts(BIO *bp, const char *str)
319#endif 319#endif
320 { 320 {
321 int n,ret; 321 int n,ret;