diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_acpt.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_acpt.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/bio/bss_acpt.c b/src/lib/libcrypto/bio/bss_acpt.c index 9afa636406..4da5822062 100644 --- a/src/lib/libcrypto/bio/bss_acpt.c +++ b/src/lib/libcrypto/bio/bss_acpt.c | |||
@@ -92,10 +92,10 @@ typedef struct bio_accept_st | |||
92 | BIO *bio_chain; | 92 | BIO *bio_chain; |
93 | } BIO_ACCEPT; | 93 | } BIO_ACCEPT; |
94 | 94 | ||
95 | static int acpt_write(BIO *h,char *buf,int num); | 95 | static int acpt_write(BIO *h, const char *buf, int num); |
96 | static int acpt_read(BIO *h,char *buf,int size); | 96 | static int acpt_read(BIO *h, char *buf, int size); |
97 | static int acpt_puts(BIO *h,char *str); | 97 | static int acpt_puts(BIO *h, const char *str); |
98 | static long acpt_ctrl(BIO *h,int cmd,long arg1,char *arg2); | 98 | static long acpt_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
99 | static int acpt_new(BIO *h); | 99 | static int acpt_new(BIO *h); |
100 | static int acpt_free(BIO *data); | 100 | static int acpt_free(BIO *data); |
101 | static int acpt_state(BIO *b, BIO_ACCEPT *c); | 101 | static int acpt_state(BIO *b, BIO_ACCEPT *c); |
@@ -145,7 +145,7 @@ BIO_ACCEPT *BIO_ACCEPT_new(void) | |||
145 | { | 145 | { |
146 | BIO_ACCEPT *ret; | 146 | BIO_ACCEPT *ret; |
147 | 147 | ||
148 | if ((ret=(BIO_ACCEPT *)Malloc(sizeof(BIO_ACCEPT))) == NULL) | 148 | if ((ret=(BIO_ACCEPT *)OPENSSL_malloc(sizeof(BIO_ACCEPT))) == NULL) |
149 | return(NULL); | 149 | return(NULL); |
150 | 150 | ||
151 | memset(ret,0,sizeof(BIO_ACCEPT)); | 151 | memset(ret,0,sizeof(BIO_ACCEPT)); |
@@ -159,10 +159,10 @@ void BIO_ACCEPT_free(BIO_ACCEPT *a) | |||
159 | if(a == NULL) | 159 | if(a == NULL) |
160 | return; | 160 | return; |
161 | 161 | ||
162 | if (a->param_addr != NULL) Free(a->param_addr); | 162 | if (a->param_addr != NULL) OPENSSL_free(a->param_addr); |
163 | if (a->addr != NULL) Free(a->addr); | 163 | if (a->addr != NULL) OPENSSL_free(a->addr); |
164 | if (a->bio_chain != NULL) BIO_free(a->bio_chain); | 164 | if (a->bio_chain != NULL) BIO_free(a->bio_chain); |
165 | Free(a); | 165 | OPENSSL_free(a); |
166 | } | 166 | } |
167 | 167 | ||
168 | static void acpt_close_socket(BIO *bio) | 168 | static void acpt_close_socket(BIO *bio) |
@@ -307,7 +307,7 @@ static int acpt_read(BIO *b, char *out, int outl) | |||
307 | return(ret); | 307 | return(ret); |
308 | } | 308 | } |
309 | 309 | ||
310 | static int acpt_write(BIO *b, char *in, int inl) | 310 | static int acpt_write(BIO *b, const char *in, int inl) |
311 | { | 311 | { |
312 | int ret; | 312 | int ret; |
313 | BIO_ACCEPT *data; | 313 | BIO_ACCEPT *data; |
@@ -326,7 +326,7 @@ static int acpt_write(BIO *b, char *in, int inl) | |||
326 | return(ret); | 326 | return(ret); |
327 | } | 327 | } |
328 | 328 | ||
329 | static long acpt_ctrl(BIO *b, int cmd, long num, char *ptr) | 329 | static long acpt_ctrl(BIO *b, int cmd, long num, void *ptr) |
330 | { | 330 | { |
331 | BIO *dbio; | 331 | BIO *dbio; |
332 | int *ip; | 332 | int *ip; |
@@ -355,7 +355,7 @@ static long acpt_ctrl(BIO *b, int cmd, long num, char *ptr) | |||
355 | { | 355 | { |
356 | b->init=1; | 356 | b->init=1; |
357 | if (data->param_addr != NULL) | 357 | if (data->param_addr != NULL) |
358 | Free(data->param_addr); | 358 | OPENSSL_free(data->param_addr); |
359 | data->param_addr=BUF_strdup(ptr); | 359 | data->param_addr=BUF_strdup(ptr); |
360 | } | 360 | } |
361 | else if (num == 1) | 361 | else if (num == 1) |
@@ -440,7 +440,7 @@ static long acpt_ctrl(BIO *b, int cmd, long num, char *ptr) | |||
440 | return(ret); | 440 | return(ret); |
441 | } | 441 | } |
442 | 442 | ||
443 | static int acpt_puts(BIO *bp, char *str) | 443 | static int acpt_puts(BIO *bp, const char *str) |
444 | { | 444 | { |
445 | int n,ret; | 445 | int n,ret; |
446 | 446 | ||