Lines 1-40
Link Here
|
1 |
--- sslscan.c.orig 2016-11-06 13:27:11 UTC |
|
|
2 |
+++ sslscan.c |
3 |
@@ -829,7 +829,7 @@ int testCompression(struct sslCheckOptio |
4 |
#endif |
5 |
{ |
6 |
printf("%sOpenSSL version does not support compression%s\n", COL_RED, RESET); |
7 |
- printf("%sRebuild with zlib1g-dev package for zlib support%s\n\n", COL_RED, RESET); |
8 |
+ printf("\n"); |
9 |
} |
10 |
|
11 |
// Disconnect SSL over socket |
12 |
@@ -1155,14 +1155,14 @@ int testRenegotiation(struct sslCheckOpt |
13 |
printf_verbose("Attempting SSL_do_handshake(ssl)\n"); |
14 |
SSL_do_handshake(ssl); // Send renegotiation request to server //TODO :: XXX hanging here |
15 |
|
16 |
- if (ssl->state == SSL_ST_OK) |
17 |
+ if (SSL_get_state(ssl) == SSL_ST_OK) |
18 |
{ |
19 |
res = SSL_do_handshake(ssl); // Send renegotiation request to server |
20 |
if( res != 1 ) |
21 |
{ |
22 |
printf_error("\n\nSSL_do_handshake() call failed\n"); |
23 |
} |
24 |
- if (ssl->state == SSL_ST_OK) |
25 |
+ if (SSL_get_state(ssl) == SSL_ST_OK) |
26 |
{ |
27 |
/* our renegotiation is complete */ |
28 |
renOut->supported = true; |
29 |
@@ -1504,7 +1504,11 @@ int testCipher(struct sslCheckOptions *o |
30 |
return false; |
31 |
} |
32 |
|
33 |
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
34 |
cipherid = SSL_CIPHER_get_id(sslCipherPointer); |
35 |
+#else |
36 |
+ cipherid = sslCipherPointer->id; |
37 |
+#endif |
38 |
cipherid = cipherid & 0x00ffffff; // remove first byte which is the version (0x03 for TLSv1/SSLv3) |
39 |
|
40 |
// Show Cipher Status |