diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_sock.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bss_sock.c | 28 |
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 |
| 68 | static int sock_write(BIO *h,char *buf,int num); | 68 | static int sock_write(BIO *h, const char *buf, int num); |
| 69 | static int sock_read(BIO *h,char *buf,int size); | 69 | static int sock_read(BIO *h, char *buf, int size); |
| 70 | static int sock_puts(BIO *h,char *str); | 70 | static int sock_puts(BIO *h, const char *str); |
| 71 | static long sock_ctrl(BIO *h,int cmd,long arg1,char *arg2); | 71 | static long sock_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
| 72 | static int sock_new(BIO *h); | 72 | static int sock_new(BIO *h); |
| 73 | static int sock_free(BIO *data); | 73 | static int sock_free(BIO *data); |
| 74 | int BIO_sock_should_retry(int s); | 74 | int BIO_sock_should_retry(int s); |
| 75 | #else | 75 | #else |
| 76 | 76 | ||
| 77 | static int fd_write(BIO *h,char *buf,int num); | 77 | static int fd_write(BIO *h, const char *buf, int num); |
| 78 | static int fd_read(BIO *h,char *buf,int size); | 78 | static int fd_read(BIO *h, char *buf, int size); |
| 79 | static int fd_puts(BIO *h,char *str); | 79 | static int fd_puts(BIO *h, const char *str); |
| 80 | static long fd_ctrl(BIO *h,int cmd,long arg1,char *arg2); | 80 | static long fd_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
| 81 | static int fd_new(BIO *h); | 81 | static int fd_new(BIO *h); |
| 82 | static int fd_free(BIO *data); | 82 | static int fd_free(BIO *data); |
| 83 | int BIO_fd_should_retry(int s); | 83 | int 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 |
| 212 | static int sock_write(BIO *b, char *in, int inl) | 212 | static int sock_write(BIO *b, const char *in, int inl) |
| 213 | #else | 213 | #else |
| 214 | static int fd_write(BIO *b, char *in, int inl) | 214 | static 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 |
| 240 | static long sock_ctrl(BIO *b, int cmd, long num, char *ptr) | 240 | static long sock_ctrl(BIO *b, int cmd, long num, void *ptr) |
| 241 | #else | 241 | #else |
| 242 | static long fd_ctrl(BIO *b, int cmd, long num, char *ptr) | 242 | static 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 |
| 316 | static int sock_puts(BIO *bp, char *str) | 316 | static int sock_puts(BIO *bp, const char *str) |
| 317 | #else | 317 | #else |
| 318 | static int fd_puts(BIO *bp, char *str) | 318 | static int fd_puts(BIO *bp, const char *str) |
| 319 | #endif | 319 | #endif |
| 320 | { | 320 | { |
| 321 | int n,ret; | 321 | int n,ret; |
