Import sslscan-1.8.2.

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 prefered ciphers of the SSL service, the
certificate and is in Text and XML formats.

Heavily based on the FreeBSD port.

inputs from sthen@
ok jasper@
This commit is contained in:
ajacoutot 2011-06-21 21:05:48 +00:00
parent 02d9b5258b
commit c251bafcec
6 changed files with 79 additions and 0 deletions

25
security/sslscan/Makefile Executable file
View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/21 21:05:48 ajacoutot Exp $
COMMENT= SSL port scanner
DISTNAME= sslscan-1.8.2
EXTRACT_SUFX= .tgz
CATEGORIES= security net
HOMEPAGE= http://sourceforge.net/projects/sslscan/
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c crypto ssl
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sslscan/}
MAKE_FLAGS= CC="${CC}"
NO_REGRESS= Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (sslscan-1.8.2.tgz) = GokNAxmWqyUu+1NVEb1Y2w==
RMD160 (sslscan-1.8.2.tgz) = oEjTop1Ws0oPsuqOWl3Cuj53PXY=
SHA1 (sslscan-1.8.2.tgz) = SYL/Yiyh8Fgpo5EL5eOQPpHP3Wg=
SHA256 (sslscan-1.8.2.tgz) = O3KIBEVgQtltXIzNQjJvjlcZ0JGYZ5O7e4UqNrUNKz4=
SIZE (sslscan-1.8.2.tgz) = 22176

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2011/06/21 21:05:48 ajacoutot Exp $
--- Makefile.orig Tue Sep 1 14:35:59 2009
+++ Makefile Tue Jun 21 19:25:44 2011
@@ -1,13 +1,13 @@
SRCS = sslscan.c
-BINPATH = /usr/bin/
-MANPATH = /usr/share/man/
+BINPATH = ${PREFIX}/bin/
+MANPATH = ${PREFIX}/man
all:
- gcc -g -Wall -lssl -o sslscan $(SRCS) $(LDFLAGS) $(CFLAGS)
+ ${CC} -g -Wall -lssl -lcrypto -o sslscan $(SRCS) $(LDFLAGS) $(CFLAGS)
install:
- cp sslscan $(BINPATH)
- cp sslscan.1 $(MANPATH)man1
+ $(BSD_INSTALL_PROGRAM) sslscan $(BINPATH)
+ $(BSD_INSTALL_MAN) sslscan.1 $(MANPATH)/man1
uninstall:
rm -f $(BINPATH)sslscan

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-sslscan_c,v 1.1.1.1 2011/06/21 21:05:48 ajacoutot Exp $
--- sslscan.c.orig Tue Sep 1 14:35:59 2009
+++ sslscan.c Tue Jun 21 23:03:21 2011
@@ -41,6 +41,7 @@
#include <openssl/pkcs12.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
+#include <netinet/in.h>
// Defines...
#define false 0
@@ -59,7 +60,7 @@
#define tls_v1 3
// Colour Console Output...
-#if !defined(__WIN32__)
+#if !defined(__WIN32__) && !defined(__OpenBSD__)
const char *RESET = ""; // DEFAULT
const char *COL_RED = ""; // RED
const char *COL_BLUE = ""; // BLUE

4
security/sslscan/pkg/DESCR Executable file
View File

@ -0,0 +1,4 @@
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 prefered ciphers of the SSL service, the
certificate and is in Text and XML formats.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/06/21 21:05:48 ajacoutot Exp $
@bin bin/sslscan
@man man/man1/sslscan.1