--- sslscan-1.8.2.orig/debian/compat +++ sslscan-1.8.2/debian/compat @@ -0,0 +1 @@ +5 --- sslscan-1.8.2.orig/debian/README.source +++ sslscan-1.8.2/debian/README.source @@ -0,0 +1,57 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- sslscan-1.8.2.orig/debian/control +++ sslscan-1.8.2/debian/control @@ -0,0 +1,16 @@ +Source: sslscan +Section: utils +Priority: extra +Maintainer: Marvin Stark +Build-Depends: debhelper (>= 5), quilt ( >=0.46-4 ), libssl-dev +Standards-Version: 3.9.2 + +Package: sslscan +Architecture: any +Homepage: http://sourceforge.net/projects/sslscan +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Fast SSL scanner + SSLScan queries SSL services, such as HTTPS, in order to determine the ciphers + that are supported. SSLScan is designed to be easy, lean and fast. The output + includes preferred ciphers of the SSL service, the certificate and is in text + and XML formats. --- sslscan-1.8.2.orig/debian/rules +++ sslscan-1.8.2/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +configure: configure-stamp +configure-stamp: patch + dh_testdir + touch configure-stamp + +build: build-stamp +build-arch: build +build-indep: build + +build-stamp: configure-stamp + dh_testdir + + # Compile sslscan + $(MAKE) all + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # clean up + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # install sslscan + install -d $(CURDIR)/debian/sslscan/usr/bin/ + install -d $(CURDIR)/debian/sslscan/usr/share/man/man1/ + $(MAKE) BINPATH="$(CURDIR)/debian/sslscan/usr/bin/" MANPATH="$(CURDIR)/debian/sslscan/usr/share/man/" install + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs Changelog + dh_installdocs +# dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- sslscan-1.8.2.orig/debian/changelog +++ sslscan-1.8.2/debian/changelog @@ -0,0 +1,69 @@ +sslscan (1.8.2-2) unstable; urgency=low + + * debian/control: + - Updated Homepage (Closes: #633456) + - Updated Standards-Version to 3.9.2 + * Fixed FTBFS with ld --as-needed (Closes: #639013) + * Fixed FTBFS undefined reference to SSLv2_client_method (Closes: #622019) + * debian/rules: + - Added build-arch build-indep targets + - Substituded dh_clean with dh_prep in install target + + -- Marvin Stark Thu, 22 Dec 2011 15:29:19 +0000 + +sslscan (1.8.2-1) unstable; urgency=low + + * New Upstream release + * debian/control: + - updated Standards-Version to 3.8.3 + * Fixed FTBFS with binutils-gold (Closes: #556372) + * Fixed spelling errors in sslscan.c + * Added patch descriptions + + -- Marvin Stark Mon, 25 Jan 2010 19:28:33 +0100 + +sslscan (1.8.0-1) unstable; urgency=low + + * New Upstream Version + - Added SSL implementation workaround option + - Added HTTP connection testing + - Fixed Certification validation XML output + * debian/control: + - Updated Standards-Version to 3.8.1 + + -- Marvin Stark Sun, 24 May 2009 11:47:24 +0200 + +sslscan (1.7.1-1) unstable; urgency=low + + * New Upstream Version + * Added debian/watch + + -- Marvin Stark Fri, 11 Jul 2008 10:51:30 +0200 + +sslscan (1.7-1) unstable; urgency=low + + * New Upstream Version + * debian/control: + - Standards-Version changed to 3.8.0 + * debian/copyright: + - Updated copyright years + + -- Marvin Stark Fri, 11 Jul 2008 10:32:01 +0200 + +sslscan (1.6-1) unstable; urgency=low + + * New upstream release + Improved certificate checking + Added Makefile + Added manpage + * Patched Makefile + * Added quilt as Build-Dependency + + -- Marvin Stark Tue, 22 Jan 2008 07:49:35 +0000 + +sslscan (1.5-1) unstable; urgency=low + + * Initial release (Closes: #457217) + + -- Marvin Stark Thu, 20 Dec 2007 13:36:43 +0000 + --- sslscan-1.8.2.orig/debian/copyright +++ sslscan-1.8.2/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by Marvin Stark on +Thu, 20 Dec 2007 13:36:43 +0000. + +It was downloaded from + +Upstream Author: Ian Ventura-Whiting + +Copyright: Copyright (C) 2007-2008 by Ian Ventura-Whiting + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 3 as + published by the Free Software Foundation. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + In addition, as a special exception, the copyright holders give + permission to link the code of portions of this program with the + OpenSSL library under certain conditions as described in each + individual source file, and distribute linked combinations + including the two. + You must obey the GNU General Public License in all respects + for all of the code used other than OpenSSL. If you modify + file(s) with this exception, you may extend this exception to your + version of the file(s), but you are not obligated to do so. If you + do not wish to do so, delete this exception statement from your + version. If you delete this exception statement from all source + files in the program, then also delete it here. + +On Debian systems, the complete text of the GNU General +Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. --- sslscan-1.8.2.orig/debian/watch +++ sslscan-1.8.2/debian/watch @@ -0,0 +1,3 @@ +# Compulsory line, this is a version 3 file +version=3 +http://sf.net/sslscan/sslscan-([\d\.]*)\.tgz debian uupdate --- sslscan-1.8.2.orig/debian/patches/02-sslscan-spelling-mistake.diff +++ sslscan-1.8.2/debian/patches/02-sslscan-spelling-mistake.diff @@ -0,0 +1,34 @@ +# 02-sslscan-spelling-mistake.diff +# Author: Marvin Stark +# DP: Fix spelling errors +Index: sslscan/sslscan.c +=================================================================== +--- sslscan.orig/sslscan.c 2010-01-25 19:26:03.000000000 +0100 ++++ sslscan/sslscan.c 2010-01-25 19:26:27.000000000 +0100 +@@ -644,7 +644,7 @@ + } + + +-// Test for prefered ciphers ++// Test for preferred ciphers + int defaultCipher(struct sslCheckOptions *options, SSL_METHOD *sslMethod) + { + // Variables... +@@ -1185,7 +1185,7 @@ + + if (status == true) + { +- // Test prefered ciphers... ++ // Test preferred ciphers... + printf("\n %sPrefered Server Cipher(s):%s\n", COL_BLUE, RESET); + if (options->pout == true) + printf("|| Version || Bits || Cipher ||\n"); +@@ -1367,7 +1367,7 @@ + printf("%s%s%s\n", COL_BLUE, program_banner, RESET); + printf("SSLScan is a fast SSL port scanner. SSLScan connects to SSL\n"); + printf("ports and determines what ciphers are supported, which are\n"); +- printf("the servers prefered ciphers, which SSL protocols are\n"); ++ printf("the servers preferred ciphers, which SSL protocols are\n"); + printf("supported and returns the SSL certificate. Client\n"); + printf("certificates / private key can be configured and output is\n"); + printf("to text / XML.\n\n"); --- sslscan-1.8.2.orig/debian/patches/03-sslv2.diff +++ sslscan-1.8.2/debian/patches/03-sslv2.diff @@ -0,0 +1,80 @@ +# Description: Fix build in case of disabled SSLv2. This is needed for build with OpenSSL 1.0.0. +# Author: Ilya Barygin +--- sslscan.orig/sslscan.c ++++ sslscan/sslscan.c +@@ -563,6 +563,7 @@ + } + if (options->xmlOutput != 0) + fprintf(options->xmlOutput, " sslversion=\""); ++#ifndef OPENSSL_NO_SSL2 + if (sslCipherPointer->sslMethod == SSLv2_client_method()) + { + if (options->xmlOutput != 0) +@@ -572,7 +573,9 @@ + else + printf("SSLv2 "); + } +- else if (sslCipherPointer->sslMethod == SSLv3_client_method()) ++ else ++#endif ++ if (sslCipherPointer->sslMethod == SSLv3_client_method()) + { + if (options->xmlOutput != 0) + fprintf(options->xmlOutput, "SSLv3\" bits=\""); +@@ -688,6 +691,7 @@ + cipherStatus = SSL_connect(ssl); + if (cipherStatus == 1) + { ++#ifndef OPENSSL_NO_SSL2 + if (sslMethod == SSLv2_client_method()) + { + if (options->xmlOutput != 0) +@@ -697,7 +701,9 @@ + else + printf(" SSLv2 "); + } +- else if (sslMethod == SSLv3_client_method()) ++ else ++#endif ++ if (sslMethod == SSLv3_client_method()) + { + if (options->xmlOutput != 0) + fprintf(options->xmlOutput, " sslVersion) + { + case ssl_all: ++#ifndef OPENSSL_NO_SSL2 + status = defaultCipher(options, SSLv2_client_method()); + if (status != false) ++#endif + status = defaultCipher(options, SSLv3_client_method()); + if (status != false) + status = defaultCipher(options, TLSv1_client_method()); + break; ++#ifndef OPENSSL_NO_SSL2 + case ssl_v2: + status = defaultCipher(options, SSLv2_client_method()); + break; ++#endif + case ssl_v3: + status = defaultCipher(options, SSLv3_client_method()); + break; +@@ -1415,13 +1425,17 @@ + switch (options.sslVersion) + { + case ssl_all: ++#ifndef OPENSSL_NO_SSL2 + populateCipherList(&options, SSLv2_client_method()); ++#endif + populateCipherList(&options, SSLv3_client_method()); + populateCipherList(&options, TLSv1_client_method()); + break; ++#ifndef OPENSSL_NO_SSL2 + case ssl_v2: + populateCipherList(&options, SSLv2_client_method()); + break; ++#endif + case ssl_v3: + populateCipherList(&options, SSLv3_client_method()); + break; --- sslscan-1.8.2.orig/debian/patches/makefile +++ sslscan-1.8.2/debian/patches/makefile @@ -0,0 +1,13 @@ +Index: sslscan-1.6/Makefile +=================================================================== +--- sslscan-1.6.orig/Makefile 2008-01-22 07:43:54.000000000 +0000 ++++ sslscan-1.6/Makefile 2008-01-22 07:44:35.000000000 +0000 +@@ -7,7 +7,7 @@ + + install: + cp sslscan $(BINPATH) +- cp sslscan.1 $(MANPATH)man1 ++ cp sslscan.1 $(MANPATH)/man1/ + + uninstall: + rm -f $(BINPATH)sslscan --- sslscan-1.8.2.orig/debian/patches/01-Makefile-binutils-gold.diff +++ sslscan-1.8.2/debian/patches/01-Makefile-binutils-gold.diff @@ -0,0 +1,21 @@ +# 01-Makefile-binutils-gold.diff +# Author: Marvin Stark +# DP: Let sslscan build with binutils-gold +Index: sslscan/Makefile +=================================================================== +--- sslscan.orig/Makefile 2009-12-08 21:48:23.000000000 +0100 ++++ sslscan/Makefile 2009-12-08 21:56:33.000000000 +0100 +@@ -3,11 +3,11 @@ + MANPATH = /usr/share/man/ + + all: +- gcc -g -Wall -lssl -o sslscan $(SRCS) $(LDFLAGS) $(CFLAGS) ++ gcc -g -Wall -o sslscan $(SRCS) $(LDFLAGS) $(CFLAGS) -lssl -lcrypto + + install: + cp sslscan $(BINPATH) +- cp sslscan.1 $(MANPATH)man1 ++ cp sslscan.1 $(MANPATH)/man1/ + + uninstall: + rm -f $(BINPATH)sslscan --- sslscan-1.8.2.orig/debian/patches/series +++ sslscan-1.8.2/debian/patches/series @@ -0,0 +1,3 @@ +02-sslscan-spelling-mistake.diff +01-Makefile-binutils-gold.diff +03-sslv2.diff