diff options
Diffstat (limited to 'support/ab.c')
| -rw-r--r-- | support/ab.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/support/ab.c b/support/ab.c index f855bbd3..9626e017 100644 --- a/support/ab.c +++ b/support/ab.c @@ -189,6 +189,12 @@ typedef STACK_OF(X509) X509_STACK_TYPE; #endif +#if defined(USE_SSL) && (OPENSSL_VERSION_NUMBER >= 0x00909000) +#define AB_SSL_METHOD_CONST const +#else +#define AB_SSL_METHOD_CONST +#endif + #include <math.h> #if APR_HAVE_CTYPE_H #include <ctype.h> @@ -480,7 +486,7 @@ static void ssl_rand_seed(void) static int ssl_print_connection_info(BIO *bio, SSL *ssl) { - SSL_CIPHER *c; + const SSL_CIPHER *c; int alg_bits,bits; c = SSL_get_current_cipher(ssl); @@ -566,7 +572,7 @@ static void ssl_proceed_handshake(struct connection *c) if (verbosity >= 2) ssl_print_info(c); if (ssl_info == NULL) { - SSL_CIPHER *ci; + const SSL_CIPHER *ci; X509 *cert; int sk_bits, pk_bits, swork; @@ -1981,7 +1987,7 @@ int main(int argc, const char * const argv[]) const char *optarg; char c; #ifdef USE_SSL - SSL_METHOD *meth = SSLv23_client_method(); + AB_SSL_METHOD_CONST SSL_METHOD *meth = SSLv23_client_method(); #endif /* table defaults */ |
