diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/evp/bio_md.c')
-rw-r--r-- | src/lib/libssl/src/crypto/evp/bio_md.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libssl/src/crypto/evp/bio_md.c b/src/lib/libssl/src/crypto/evp/bio_md.c index aef928dd8f..2373c247d8 100644 --- a/src/lib/libssl/src/crypto/evp/bio_md.c +++ b/src/lib/libssl/src/crypto/evp/bio_md.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 | ||
68 | static int md_write(BIO *h,char *buf,int num); | 68 | static int md_write(BIO *h, char const *buf, int num); |
69 | static int md_read(BIO *h,char *buf,int size); | 69 | static int md_read(BIO *h, char *buf, int size); |
70 | /*static int md_puts(BIO *h,char *str); */ | 70 | /*static int md_puts(BIO *h, const char *str); */ |
71 | static int md_gets(BIO *h,char *str,int size); | 71 | static int md_gets(BIO *h, char *str, int size); |
72 | static long md_ctrl(BIO *h,int cmd,long arg1,char *arg2); | 72 | static long md_ctrl(BIO *h, int cmd, long arg1, void *arg2); |
73 | static int md_new(BIO *h); | 73 | static int md_new(BIO *h); |
74 | static int md_free(BIO *data); | 74 | static int md_free(BIO *data); |
75 | static long md_callback_ctrl(BIO *h,int cmd,void (*fp)()); | 75 | static long md_callback_ctrl(BIO *h,int cmd,bio_info_cb *fp); |
76 | 76 | ||
77 | static BIO_METHOD methods_md= | 77 | static BIO_METHOD methods_md= |
78 | { | 78 | { |
@@ -96,7 +96,7 @@ static int md_new(BIO *bi) | |||
96 | { | 96 | { |
97 | EVP_MD_CTX *ctx; | 97 | EVP_MD_CTX *ctx; |
98 | 98 | ||
99 | ctx=(EVP_MD_CTX *)Malloc(sizeof(EVP_MD_CTX)); | 99 | ctx=(EVP_MD_CTX *)OPENSSL_malloc(sizeof(EVP_MD_CTX)); |
100 | if (ctx == NULL) return(0); | 100 | if (ctx == NULL) return(0); |
101 | 101 | ||
102 | bi->init=0; | 102 | bi->init=0; |
@@ -108,7 +108,7 @@ static int md_new(BIO *bi) | |||
108 | static int md_free(BIO *a) | 108 | static int md_free(BIO *a) |
109 | { | 109 | { |
110 | if (a == NULL) return(0); | 110 | if (a == NULL) return(0); |
111 | Free(a->ptr); | 111 | OPENSSL_free(a->ptr); |
112 | a->ptr=NULL; | 112 | a->ptr=NULL; |
113 | a->init=0; | 113 | a->init=0; |
114 | a->flags=0; | 114 | a->flags=0; |
@@ -139,7 +139,7 @@ static int md_read(BIO *b, char *out, int outl) | |||
139 | return(ret); | 139 | return(ret); |
140 | } | 140 | } |
141 | 141 | ||
142 | static int md_write(BIO *b, char *in, int inl) | 142 | static int md_write(BIO *b, const char *in, int inl) |
143 | { | 143 | { |
144 | int ret=0; | 144 | int ret=0; |
145 | EVP_MD_CTX *ctx; | 145 | EVP_MD_CTX *ctx; |
@@ -162,7 +162,7 @@ static int md_write(BIO *b, char *in, int inl) | |||
162 | return(ret); | 162 | return(ret); |
163 | } | 163 | } |
164 | 164 | ||
165 | static long md_ctrl(BIO *b, int cmd, long num, char *ptr) | 165 | static long md_ctrl(BIO *b, int cmd, long num, void *ptr) |
166 | { | 166 | { |
167 | EVP_MD_CTX *ctx,*dctx,**pctx; | 167 | EVP_MD_CTX *ctx,*dctx,**pctx; |
168 | const EVP_MD **ppmd; | 168 | const EVP_MD **ppmd; |
@@ -223,7 +223,7 @@ static long md_ctrl(BIO *b, int cmd, long num, char *ptr) | |||
223 | return(ret); | 223 | return(ret); |
224 | } | 224 | } |
225 | 225 | ||
226 | static long md_callback_ctrl(BIO *b, int cmd, void (*fp)()) | 226 | static long md_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp) |
227 | { | 227 | { |
228 | long ret=1; | 228 | long ret=1; |
229 | 229 | ||