summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-08-04 00:00:23 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-08-04 00:00:23 +0200
commitc7f071d0e47433823f3baec8c03a209e4f8a2522 (patch)
treebd917737224b0385acc0f8e8c8f86454c8ed19db /support
parent catch up with the apr_atoll -> apr_atoi64 rename (diff)
downloadapache2-c7f071d0e47433823f3baec8c03a209e4f8a2522.tar.xz
apache2-c7f071d0e47433823f3baec8c03a209e4f8a2522.zip
Support rsaref compilation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/ab.c28
1 files changed, 22 insertions, 6 deletions
diff --git a/support/ab.c b/support/ab.c
index 5bf14ebfa3..0ba594a986 100644
--- a/support/ab.c
+++ b/support/ab.c
@@ -470,14 +470,14 @@ long ssl_print_cb(BIO *bio,int cmd,const char *argp,int argi,long argl,long ret)
{
BIO_printf(out,"read from %08X [%08lX] (%d bytes => %ld (0x%X))\n",
bio,argp,argi,ret,ret);
- BIO_dump(out,argp,(int)ret);
+ BIO_dump(out,(char *)argp,(int)ret);
return(ret);
}
else if (cmd == (BIO_CB_WRITE|BIO_CB_RETURN))
{
BIO_printf(out,"write to %08X [%08lX] (%d bytes => %ld (0x%X))\n",
bio,argp,argi,ret,ret);
- BIO_dump(out,argp,(int)ret);
+ BIO_dump(out,(char *)argp,(int)ret);
}
return(ret);
}
@@ -588,7 +588,11 @@ void ssl_start_connect(struct connection * c)
{
BIO *bio;
X509 *x509cert;
+#ifdef RSAREF
+ STACK *sk;
+#else
STACK_OF(X509) *sk;
+#endif
int i, count, hdone = 0;
char ssl_hostname[80];
@@ -632,7 +636,7 @@ void ssl_start_connect(struct connection * c)
if (verbosity >= 4)
{
BIO_set_callback(bio,ssl_print_cb);
- BIO_set_callback_arg(bio,bio_err);
+ BIO_set_callback_arg(bio,(void*)bio_err);
}
while (!hdone)
@@ -673,11 +677,19 @@ void ssl_start_connect(struct connection * c)
{
BIO_printf(bio_err, "\n");
sk = SSL_get_peer_cert_chain(c->ssl);
+#ifdef RSAREF
+ if ((count = sk_num(sk)) > 0)
+#else
if ((count = sk_X509_num(sk)) > 0)
+#endif
{
for (i=1; i<count; i++)
{
+#ifdef RSAREF
+ x509cert = (X509 *)sk_value(sk,i);
+#else
x509cert = (X509 *)sk_X509_value(sk,i);
+#endif
ssl_print_cert_info(bio_out,x509cert);
X509_free(x509cert);
}
@@ -1727,14 +1739,14 @@ static void test(void)
static void copyright(void)
{
if (!use_html) {
- printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.114 $> apache-2.0");
+ printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.115 $> apache-2.0");
printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n");
printf("\n");
}
else {
printf("<p>\n");
- printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_AB_BASEREVISION, "$Revision: 1.114 $");
+ printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AP_AB_BASEREVISION, "$Revision: 1.115 $");
printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/<br>\n");
printf("</p>\n<p>\n");
@@ -2110,7 +2122,11 @@ int main(int argc, const char * const argv[])
heartbeatres = 0;
#ifdef USE_SSL
- CRYPTO_malloc_init();
+#ifdef RSAREF
+ R_malloc_init();
+#else
+ SSL_malloc_init();
+#endif
SSL_load_error_strings();
SSL_library_init();
bio_out=BIO_new_fp(stdout,BIO_NOCLOSE);