From 8d8a8041ecd1b93e3279a31c404bbde15ba2b710 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 5 Jun 1999 12:16:33 +0000 Subject: [PATCH] const/type fixes. --- crypto/bn/bn.h | 4 ++-- crypto/bn/bn_print.c | 2 +- crypto/evp/digest.c | 2 +- crypto/evp/evp.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index 1ad2c5ceaf..ce5a4746e4 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -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); diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c index f2d2fce589..8b349b52d4 100644 --- a/crypto/bn/bn_print.c +++ b/crypto/bn/bn_print.c @@ -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; diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index 89575b5dac..c560733568 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -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); diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index b4231b0428..3d5b27f389 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -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); -- 2.25.1