summaryrefslogtreecommitdiffstats
path: root/crypto/dh
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-06-03 18:04:04 +0000
committerBen Laurie <ben@openssl.org>1999-06-03 18:04:04 +0000
commitb4f76582d4b834fb4e525d500c03ad38f0cea328 (patch)
tree7fbf127b998ad9bfff23ee0fbb45dd44c7448810 /crypto/dh
parent213a75dbf21b8f641a9ee90cc12882fc429bb84b (diff)
More evil cast removal.
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh.h2
-rw-r--r--crypto/dh/dh_gen.c2
-rw-r--r--crypto/dh/dhtest.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h
index 6a0a186fe3..affafd256b 100644
--- a/crypto/dh/dh.h
+++ b/crypto/dh/dh.h
@@ -112,7 +112,7 @@ DH * DH_new(void);
void DH_free(DH *dh);
int DH_size(DH *dh);
DH * DH_generate_parameters(int prime_len,int generator,
- void (*callback)(int,int,char *),char *cb_arg);
+ void (*callback)(int,int,void *),void *cb_arg);
int DH_check(DH *dh,int *codes);
int DH_generate_key(DH *dh);
int DH_compute_key(unsigned char *key,BIGNUM *pub_key,DH *dh);
diff --git a/crypto/dh/dh_gen.c b/crypto/dh/dh_gen.c
index 4d4aa69029..7534ec40a0 100644
--- a/crypto/dh/dh_gen.c
+++ b/crypto/dh/dh_gen.c
@@ -84,7 +84,7 @@
*/
DH *DH_generate_parameters(int prime_len, int generator,
- void (*callback)(int,int,char *), char *cb_arg)
+ void (*callback)(int,int,void *), void *cb_arg)
{
BIGNUM *p=NULL,*t1,*t2;
DH *ret=NULL;
diff --git a/crypto/dh/dhtest.c b/crypto/dh/dhtest.c
index 370784b964..a3f4692eca 100644
--- a/crypto/dh/dhtest.c
+++ b/crypto/dh/dhtest.c
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
#define MS_CALLBACK
#endif
-static void MS_CALLBACK cb(int p, int n, char *arg);
+static void MS_CALLBACK cb(int p, int n, void *arg);
#ifdef NO_STDIO
#define APPS_WIN16
#include "bss_file.c"
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
if (out == NULL) exit(1);
BIO_set_fp(out,stdout,BIO_NOCLOSE);
- a=DH_generate_parameters(64,DH_GENERATOR_5,cb,(char *)out);
+ a=DH_generate_parameters(64,DH_GENERATOR_5,cb,out);
if (a == NULL) goto err;
BIO_puts(out,"\np =");
@@ -171,7 +171,7 @@ err:
return(ret);
}
-static void MS_CALLBACK cb(int p, int n, char *arg)
+static void MS_CALLBACK cb(int p, int n, void *arg)
{
char c='*';