diff options
Diffstat (limited to 'src/lib/libcrypto/evp/bio_ok.c')
-rw-r--r-- | src/lib/libcrypto/evp/bio_ok.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/evp/bio_ok.c b/src/lib/libcrypto/evp/bio_ok.c index e6ff5f2cdb..e617ce1d43 100644 --- a/src/lib/libcrypto/evp/bio_ok.c +++ b/src/lib/libcrypto/evp/bio_ok.c | |||
@@ -125,12 +125,12 @@ | |||
125 | #include <openssl/evp.h> | 125 | #include <openssl/evp.h> |
126 | #include <openssl/rand.h> | 126 | #include <openssl/rand.h> |
127 | 127 | ||
128 | static int ok_write(BIO *h,char *buf,int num); | 128 | static int ok_write(BIO *h, const char *buf, int num); |
129 | static int ok_read(BIO *h,char *buf,int size); | 129 | static int ok_read(BIO *h, char *buf, int size); |
130 | static long ok_ctrl(BIO *h,int cmd,long arg1,char *arg2); | 130 | static long ok_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
131 | static int ok_new(BIO *h); | 131 | static int ok_new(BIO *h); |
132 | static int ok_free(BIO *data); | 132 | static int ok_free(BIO *data); |
133 | static long ok_callback_ctrl(BIO *h,int cmd,void (*fp)()); | 133 | static long ok_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp); |
134 | 134 | ||
135 | static void sig_out(BIO* b); | 135 | static void sig_out(BIO* b); |
136 | static void sig_in(BIO* b); | 136 | static void sig_in(BIO* b); |
@@ -187,7 +187,7 @@ static int ok_new(BIO *bi) | |||
187 | { | 187 | { |
188 | BIO_OK_CTX *ctx; | 188 | BIO_OK_CTX *ctx; |
189 | 189 | ||
190 | ctx=(BIO_OK_CTX *)Malloc(sizeof(BIO_OK_CTX)); | 190 | ctx=(BIO_OK_CTX *)OPENSSL_malloc(sizeof(BIO_OK_CTX)); |
191 | if (ctx == NULL) return(0); | 191 | if (ctx == NULL) return(0); |
192 | 192 | ||
193 | ctx->buf_len=0; | 193 | ctx->buf_len=0; |
@@ -209,7 +209,7 @@ static int ok_free(BIO *a) | |||
209 | { | 209 | { |
210 | if (a == NULL) return(0); | 210 | if (a == NULL) return(0); |
211 | memset(a->ptr,0,sizeof(BIO_OK_CTX)); | 211 | memset(a->ptr,0,sizeof(BIO_OK_CTX)); |
212 | Free(a->ptr); | 212 | OPENSSL_free(a->ptr); |
213 | a->ptr=NULL; | 213 | a->ptr=NULL; |
214 | a->init=0; | 214 | a->init=0; |
215 | a->flags=0; | 215 | a->flags=0; |
@@ -287,7 +287,7 @@ static int ok_read(BIO *b, char *out, int outl) | |||
287 | return(ret); | 287 | return(ret); |
288 | } | 288 | } |
289 | 289 | ||
290 | static int ok_write(BIO *b, char *in, int inl) | 290 | static int ok_write(BIO *b, const char *in, int inl) |
291 | { | 291 | { |
292 | int ret=0,n,i; | 292 | int ret=0,n,i; |
293 | BIO_OK_CTX *ctx; | 293 | BIO_OK_CTX *ctx; |
@@ -345,7 +345,7 @@ static int ok_write(BIO *b, char *in, int inl) | |||
345 | return(ret); | 345 | return(ret); |
346 | } | 346 | } |
347 | 347 | ||
348 | static long ok_ctrl(BIO *b, int cmd, long num, char *ptr) | 348 | static long ok_ctrl(BIO *b, int cmd, long num, void *ptr) |
349 | { | 349 | { |
350 | BIO_OK_CTX *ctx; | 350 | BIO_OK_CTX *ctx; |
351 | EVP_MD *md; | 351 | EVP_MD *md; |
@@ -431,7 +431,7 @@ static long ok_ctrl(BIO *b, int cmd, long num, char *ptr) | |||
431 | return(ret); | 431 | return(ret); |
432 | } | 432 | } |
433 | 433 | ||
434 | static long ok_callback_ctrl(BIO *b, int cmd, void (*fp)()) | 434 | static long ok_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp) |
435 | { | 435 | { |
436 | long ret=1; | 436 | long ret=1; |
437 | 437 | ||