ports/security/sslscan/files/patch-sslscan.c
Kurt Jaeger 360072ae02 security/sslscan: 1.8.2 -> 1.11.6
- lots of changes since 2010

PR:		208577
Submitted by:	gavin
Approved by:	Matthieu BOUTHORS <matthieu@labs.fr> (maintainer timeout)
2016-05-26 19:55:12 +00:00

23 lines
909 B
C

--- sslscan.c.orig 2016-03-24 21:02:55 UTC
+++ sslscan.c
@@ -788,7 +788,7 @@ int testCompression(struct sslCheckOptio
#endif
{
printf("%sOpenSSL version does not support compression%s\n", COL_RED, RESET);
- printf("%sRebuild with zlib1g-dev package for zlib support%s\n\n", COL_RED, RESET);
+ printf("\n");
}
// Disconnect SSL over socket
@@ -1291,7 +1291,11 @@ int testCipher(struct sslCheckOptions *o
return false;
}
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
cipherid = SSL_CIPHER_get_id(sslCipherPointer);
+#else
+ cipherid = sslCipherPointer->id;
+#endif
cipherid = cipherid & 0x00ffffff; // remove first byte which is the version (0x03 for TLSv1/SSLv3)
// Show Cipher Status