提交 8d8a8041 编写于 作者: B Ben Laurie

const/type fixes.

上级 3cbb7937
...@@ -362,9 +362,9 @@ int BN_mod_mul(BIGNUM *ret, BIGNUM *a, BIGNUM *b, const BIGNUM *m, BN_CTX *ctx); ...@@ -362,9 +362,9 @@ int BN_mod_mul(BIGNUM *ret, BIGNUM *a, BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
int BN_print_fp(FILE *fp, BIGNUM *a); int BN_print_fp(FILE *fp, BIGNUM *a);
#endif #endif
#ifdef HEADER_BIO_H #ifdef HEADER_BIO_H
int BN_print(BIO *fp, BIGNUM *a); int BN_print(BIO *fp, const BIGNUM *a);
#else #else
int BN_print(char *fp, BIGNUM *a); int BN_print(char *fp, const BIGNUM *a);
#endif #endif
int BN_reciprocal(BIGNUM *r, BIGNUM *m, int len, BN_CTX *ctx); int BN_reciprocal(BIGNUM *r, BIGNUM *m, int len, BN_CTX *ctx);
int BN_rshift(BIGNUM *r, BIGNUM *a, int n); int BN_rshift(BIGNUM *r, BIGNUM *a, int n);
......
...@@ -294,7 +294,7 @@ int BN_print_fp(FILE *fp, BIGNUM *a) ...@@ -294,7 +294,7 @@ int BN_print_fp(FILE *fp, BIGNUM *a)
} }
#endif #endif
int BN_print(BIO *bp, BIGNUM *a) int BN_print(BIO *bp, const BIGNUM *a)
{ {
int i,j,v,z=0; int i,j,v,z=0;
int ret=0; int ret=0;
......
...@@ -67,7 +67,7 @@ void EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type) ...@@ -67,7 +67,7 @@ void EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type)
type->init(&(ctx->md)); type->init(&(ctx->md));
} }
void EVP_DigestUpdate(EVP_MD_CTX *ctx, const unsigned char *data, void EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data,
unsigned int count) unsigned int count)
{ {
ctx->digest->update(&(ctx->md.base[0]),data,(unsigned long)count); ctx->digest->update(&(ctx->md.base[0]),data,(unsigned long)count);
......
...@@ -469,7 +469,7 @@ void BIO_set_md(BIO *,const EVP_MD *md); ...@@ -469,7 +469,7 @@ void BIO_set_md(BIO *,const EVP_MD *md);
int EVP_MD_CTX_copy(EVP_MD_CTX *out,EVP_MD_CTX *in); int EVP_MD_CTX_copy(EVP_MD_CTX *out,EVP_MD_CTX *in);
void EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type); void EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);
void EVP_DigestUpdate(EVP_MD_CTX *ctx,const unsigned char *d, void EVP_DigestUpdate(EVP_MD_CTX *ctx,const void *d,
unsigned int cnt); unsigned int cnt);
void EVP_DigestFinal(EVP_MD_CTX *ctx,unsigned char *md,unsigned int *s); void EVP_DigestFinal(EVP_MD_CTX *ctx,unsigned char *md,unsigned int *s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册