const/type fixes.
authorBen Laurie <ben@openssl.org>
Sat, 5 Jun 1999 12:16:33 +0000 (12:16 +0000)
committerBen Laurie <ben@openssl.org>
Sat, 5 Jun 1999 12:16:33 +0000 (12:16 +0000)
crypto/bn/bn.h
crypto/bn/bn_print.c
crypto/evp/digest.c
crypto/evp/evp.h

index 1ad2c5ceaf341a28b688cd1ccc6ed39ac2b806dd..ce5a4746e4513882a2a975fd68f7bcf6b35849e6 100644 (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_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
 #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);
 #endif
 int    BN_reciprocal(BIGNUM *r, BIGNUM *m, int len, BN_CTX *ctx);
 int    BN_rshift(BIGNUM *r, BIGNUM *a, int n);
index f2d2fce58955ef9d568dfb742d1bef24de56fb58..8b349b52d470b059c1be1000cab653f5e902f445 100644 (file)
@@ -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 ret=0;
        {
        int i,j,v,z=0;
        int ret=0;
index 89575b5dacd8fbada464693853d6e3fb59b16c33..c560733568c7adde2fc5e912d086a05b49be0642 100644 (file)
@@ -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)
        {
        ctx->digest->update(&(ctx->md.base[0]),data,(unsigned long)count);
             unsigned int count)
        {
        ctx->digest->update(&(ctx->md.base[0]),data,(unsigned long)count);
index b4231b042808b2e21a6c474cd2883a27b22e314c..3d5b27f389a3ac5670765eef60e3d7c2ac63e2a9 100644 (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);
 
 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);
 
                         unsigned int cnt);
 void   EVP_DigestFinal(EVP_MD_CTX *ctx,unsigned char *md,unsigned int *s);