summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2006-11-29 20:54:57 +0000
committerNils Larsch <nils@openssl.org>2006-11-29 20:54:57 +0000
commit7806f3dd4b44a0de379b4b8ac3ffc0fc8f249415 (patch)
treefeb5a2ce0100e392703a4989d658fa251e016d01 /apps
parent1e24b3a09e31b10649e5024b502ac3d7276923fe (diff)
replace macros with functions
Submitted by: Tracy Camp <tracyx.e.camp@intel.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/dgst.c2
-rw-r--r--apps/enc.c8
-rw-r--r--apps/s_client.c2
-rw-r--r--apps/s_server.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/apps/dgst.c b/apps/dgst.c
index 0c9c351ebc..55ba869c69 100644
--- a/apps/dgst.c
+++ b/apps/dgst.c
@@ -264,7 +264,7 @@ int MAIN(int argc, char **argv)
{
BIO_set_callback(in,BIO_debug_callback);
/* needed for windows 3.1 */
- BIO_set_callback_arg(in,bio_err);
+ BIO_set_callback_arg(in,(char *)bio_err);
}
if(!app_passwd(bio_err, passargin, NULL, &passin, NULL))
diff --git a/apps/enc.c b/apps/enc.c
index 3e3e8eb4b8..a41ea800ac 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -365,8 +365,8 @@ bad:
{
BIO_set_callback(in,BIO_debug_callback);
BIO_set_callback(out,BIO_debug_callback);
- BIO_set_callback_arg(in,bio_err);
- BIO_set_callback_arg(out,bio_err);
+ BIO_set_callback_arg(in,(char *)bio_err);
+ BIO_set_callback_arg(out,(char *)bio_err);
}
if (inf == NULL)
@@ -453,7 +453,7 @@ bad:
if (debug)
{
BIO_set_callback(b64,BIO_debug_callback);
- BIO_set_callback_arg(b64,bio_err);
+ BIO_set_callback_arg(b64,(char *)bio_err);
}
if (olb64)
BIO_set_flags(b64,BIO_FLAGS_BASE64_NO_NL);
@@ -571,7 +571,7 @@ bad:
if (debug)
{
BIO_set_callback(benc,BIO_debug_callback);
- BIO_set_callback_arg(benc,bio_err);
+ BIO_set_callback_arg(benc,(char *)bio_err);
}
if (printkey)
diff --git a/apps/s_client.c b/apps/s_client.c
index 3515070489..2872a8b64d 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -872,7 +872,7 @@ re_start:
{
con->debug=1;
BIO_set_callback(sbio,bio_dump_callback);
- BIO_set_callback_arg(sbio,bio_c_out);
+ BIO_set_callback_arg(sbio,(char *)bio_c_out);
}
if (c_msg)
{
diff --git a/apps/s_server.c b/apps/s_server.c
index ac43e5aac1..28501eb43a 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -1602,7 +1602,7 @@ static int sv_body(char *hostname, int s, unsigned char *context)
{
con->debug=1;
BIO_set_callback(SSL_get_rbio(con),bio_dump_callback);
- BIO_set_callback_arg(SSL_get_rbio(con),bio_s_out);
+ BIO_set_callback_arg(SSL_get_rbio(con),(char *)bio_s_out);
}
if (s_msg)
{
@@ -2020,7 +2020,7 @@ static int www_body(char *hostname, int s, unsigned char *context)
{
con->debug=1;
BIO_set_callback(SSL_get_rbio(con),bio_dump_callback);
- BIO_set_callback_arg(SSL_get_rbio(con),bio_s_out);
+ BIO_set_callback_arg(SSL_get_rbio(con),(char *)bio_s_out);
}
if (s_msg)
{