From 111fc725833ac138d740c697f25e1063161157c9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 1 Apr 2016 05:36:43 +0200 Subject: [PATCH] sslscan: removed; unmaintained and SSL is dead/unsecure. --- srcpkgs/sslscan/patches/libressl.patch | 123 ------------------------- srcpkgs/sslscan/template | 22 ----- 2 files changed, 145 deletions(-) delete mode 100644 srcpkgs/sslscan/patches/libressl.patch delete mode 100644 srcpkgs/sslscan/template diff --git a/srcpkgs/sslscan/patches/libressl.patch b/srcpkgs/sslscan/patches/libressl.patch deleted file mode 100644 index 24e8107de4f..00000000000 --- a/srcpkgs/sslscan/patches/libressl.patch +++ /dev/null @@ -1,123 +0,0 @@ ---- sslscan.c.orig 2009-09-01 14:35:59.000000000 +0200 -+++ sslscan.c 2016-03-31 22:47:08.828977557 +0200 -@@ -91,7 +91,7 @@ struct sslCipher - char *version; - int bits; - char description[512]; -- SSL_METHOD *sslMethod; -+ const SSL_METHOD *sslMethod; - struct sslCipher *next; - }; - -@@ -125,7 +125,7 @@ struct sslCheckOptions - - - // Adds Ciphers to the Cipher List structure --int populateCipherList(struct sslCheckOptions *options, SSL_METHOD *sslMethod) -+int populateCipherList(struct sslCheckOptions *options, const SSL_METHOD *sslMethod) - { - // Variables... - int returnCode = true; -@@ -563,16 +563,7 @@ int testCipher(struct sslCheckOptions *o - } - if (options->xmlOutput != 0) - fprintf(options->xmlOutput, " sslversion=\""); -- if (sslCipherPointer->sslMethod == SSLv2_client_method()) -- { -- if (options->xmlOutput != 0) -- fprintf(options->xmlOutput, "SSLv2\" bits=\""); -- if (options->pout == true) -- printf("SSLv2 || "); -- else -- printf("SSLv2 "); -- } -- else if (sslCipherPointer->sslMethod == SSLv3_client_method()) -+ if (sslCipherPointer->sslMethod == SSLv23_client_method()) - { - if (options->xmlOutput != 0) - fprintf(options->xmlOutput, "SSLv3\" bits=\""); -@@ -645,7 +636,7 @@ int testCipher(struct sslCheckOptions *o - - - // Test for prefered ciphers --int defaultCipher(struct sslCheckOptions *options, SSL_METHOD *sslMethod) -+int defaultCipher(struct sslCheckOptions *options, const SSL_METHOD *sslMethod) - { - // Variables... - int cipherStatus; -@@ -688,16 +679,7 @@ int defaultCipher(struct sslCheckOptions - cipherStatus = SSL_connect(ssl); - if (cipherStatus == 1) - { -- if (sslMethod == SSLv2_client_method()) -- { -- if (options->xmlOutput != 0) -- fprintf(options->xmlOutput, " pout == true) -- printf("|| SSLv2 || "); -- else -- printf(" SSLv2 "); -- } -- else if (sslMethod == SSLv3_client_method()) -+ if (sslMethod == SSLv23_client_method()) - { - if (options->xmlOutput != 0) - fprintf(options->xmlOutput, " sslVersion) - { - case ssl_all: -- status = defaultCipher(options, SSLv2_client_method()); -- if (status != false) -- status = defaultCipher(options, SSLv3_client_method()); -+ status = defaultCipher(options, SSLv23_client_method()); - if (status != false) - status = defaultCipher(options, TLSv1_client_method()); - break; -- case ssl_v2: -- status = defaultCipher(options, SSLv2_client_method()); -- break; - case ssl_v3: -- status = defaultCipher(options, SSLv3_client_method()); -+ status = defaultCipher(options, SSLv23_client_method()); - break; - case tls_v1: - status = defaultCipher(options, TLSv1_client_method()); -@@ -1298,10 +1275,6 @@ int main(int argc, char *argv[]) - options.starttls = true; - } - -- // SSL v2 only... -- else if (strcmp("--ssl2", argv[argLoop]) == 0) -- options.sslVersion = ssl_v2; -- - // SSL v3 only... - else if (strcmp("--ssl3", argv[argLoop]) == 0) - options.sslVersion = ssl_v3; -@@ -1415,15 +1388,11 @@ int main(int argc, char *argv[]) - switch (options.sslVersion) - { - case ssl_all: -- populateCipherList(&options, SSLv2_client_method()); -- populateCipherList(&options, SSLv3_client_method()); -+ populateCipherList(&options, SSLv23_client_method()); - populateCipherList(&options, TLSv1_client_method()); - break; -- case ssl_v2: -- populateCipherList(&options, SSLv2_client_method()); -- break; - case ssl_v3: -- populateCipherList(&options, SSLv3_client_method()); -+ populateCipherList(&options, SSLv23_client_method()); - break; - case tls_v1: - populateCipherList(&options, TLSv1_client_method()); diff --git a/srcpkgs/sslscan/template b/srcpkgs/sslscan/template deleted file mode 100644 index 169b40ca726..00000000000 --- a/srcpkgs/sslscan/template +++ /dev/null @@ -1,22 +0,0 @@ -# Template file for 'sslscan' -pkgname=sslscan -version=1.8.2 -revision=8 -build_style=gnu-makefile -makedepends="libressl-devel" -short_desc="A Fast SSL scanner" -maintainer="Juan RP " -license="GPL-2" -homepage="http://sourceforge.net/projects/sslscan/" -distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tgz" -checksum=3b728804456042d96d5c8ccd42326f8e5719d091986793bb7b852a36b50d2b3e - -pre_build() { - sed -i 's/-lssl/-lssl -lcrypto/g' Makefile - sed -i "s|gcc -g|$CC $CFLAGS|g" Makefile -} -do_install() { - vmkdir usr/bin - vmkdir usr/share/man/man1 - make BINPATH=${DESTDIR}/usr/bin/ MANPATH=${DESTDIR}/usr/share/man/ install -}