const/type fixes.

This commit is contained in:
Ben Laurie 1999-06-05 12:16:33 +00:00
parent 3cbb7937fa
commit 8d8a8041ec
4 changed files with 5 additions and 5 deletions

View File

@ -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);
#endif
#ifdef HEADER_BIO_H
int BN_print(BIO *fp, BIGNUM *a);
int BN_print(BIO *fp, const BIGNUM *a);
#else
int BN_print(char *fp, BIGNUM *a);
int BN_print(char *fp, const BIGNUM *a);
#endif
int BN_reciprocal(BIGNUM *r, BIGNUM *m, int len, BN_CTX *ctx);
int BN_rshift(BIGNUM *r, BIGNUM *a, int n);

View File

@ -294,7 +294,7 @@ int BN_print_fp(FILE *fp, BIGNUM *a)
}
#endif
int BN_print(BIO *bp, BIGNUM *a)
int BN_print(BIO *bp, const BIGNUM *a)
{
int i,j,v,z=0;
int ret=0;

View File

@ -67,7 +67,7 @@ void EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type)
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)
{
ctx->digest->update(&(ctx->md.base[0]),data,(unsigned long)count);

View File

@ -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);
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);
void EVP_DigestFinal(EVP_MD_CTX *ctx,unsigned char *md,unsigned int *s);