Hi,
Jie Gao schrieb:
I am getting errors using Sun's compiler:
well, not sure if it makes much sense to support such a stone-age
openssl version, even if in your case its patched with all security
fixes ... :)
anyway, can you please try if the attached patch fixes the issue for
you? I've not yet figured out from which version exactly openssl starts
to use const, but that I do if you report back that it works ...
Günter.
Index: ab.c
===================================================================
--- ab.c (revision 818683)
+++ ab.c (working copy)
@@ -191,8 +191,10 @@
#if defined(USE_SSL) && (OPENSSL_VERSION_NUMBER >= 0x00909000)
#define AB_SSL_METHOD_CONST const
+#define AB_SSL_CIPHER_CONST const
#else
#define AB_SSL_METHOD_CONST
+#define AB_SSL_CIPHER_CONST
#endif
#include <math.h>
@@ -486,7 +488,7 @@
static int ssl_print_connection_info(BIO *bio, SSL *ssl)
{
- const SSL_CIPHER *c;
+ AB_SSL_CIPHER_CONST SSL_CIPHER *c;
int alg_bits,bits;
c = SSL_get_current_cipher(ssl);
@@ -572,7 +574,7 @@
if (verbosity >= 2)
ssl_print_info(c);
if (ssl_info == NULL) {
- const SSL_CIPHER *ci;
+ AB_SSL_CIPHER_CONST SSL_CIPHER *ci;
X509 *cert;
int sk_bits, pk_bits, swork;