summaryrefslogtreecommitdiff
path: root/security/sectok
diff options
context:
space:
mode:
Diffstat (limited to 'security/sectok')
-rw-r--r--security/sectok/Makefile41
-rw-r--r--security/sectok/distinfo2
-rw-r--r--security/sectok/files/patch-cyberflex.c61
-rw-r--r--security/sectok/pkg-descr3
4 files changed, 0 insertions, 107 deletions
diff --git a/security/sectok/Makefile b/security/sectok/Makefile
deleted file mode 100644
index ed27ddb5ed4e..000000000000
--- a/security/sectok/Makefile
+++ /dev/null
@@ -1,41 +0,0 @@
-PORTNAME= sectok
-DISTVERSION= 20030825
-PORTREVISION= 4
-CATEGORIES= security
-MASTER_SITES= http://www.citi.umich.edu/projects/smartcard/
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= ISO 7816 Smartcard Utility
-WWW= http://www.citi.umich.edu/projects/smartcard/sectok.html
-
-LICENSE= LicenseRef-UMich
-LICENSE_NAME= University of Michigan License
-LICENSE_FILE= ${WRKSRC}/LICENSE
-LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-
-DEPRECATED= Last upstream release in 2003 and no longer maintained
-EXPIRATION_DATE= 2025-06-30
-
-LIB_DEPENDS= libsectok.so:security/libsectok
-
-USES= ssl localbase tar:tgz
-USE_LDCONFIG= yes
-
-MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
-
-PLIST_FILES= bin/${PORTNAME} share/man/man1/${PORTNAME}.1.gz
-
-post-patch:
- @${REINPLACE_CMD} \
- -e '/^INCLUDES=/s|$$| ${CPPFLAGS}|' \
- -e '/^LIBS=/s|=|=${LDFLAGS} |' \
- -e '/^LIBS=/s|$$| ${LIBS}|' \
- ${WRKSRC}/Makefile
-
-do-install:
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
- ${STAGEDIR}${PREFIX}/bin)
- (cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.1 \
- ${STAGEDIR}${PREFIX}/share/man/man1)
-
-.include <bsd.port.mk>
diff --git a/security/sectok/distinfo b/security/sectok/distinfo
deleted file mode 100644
index f4d0c56c397b..000000000000
--- a/security/sectok/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (sectok-20030825.tgz) = 4951d2b9876d06cb119e3c913325764fa58ea93453252665d9f206378e501e5f
-SIZE (sectok-20030825.tgz) = 17323
diff --git a/security/sectok/files/patch-cyberflex.c b/security/sectok/files/patch-cyberflex.c
deleted file mode 100644
index 30bfa6e6f29c..000000000000
--- a/security/sectok/files/patch-cyberflex.c
+++ /dev/null
@@ -1,61 +0,0 @@
---- cyberflex.c.orig 2003-06-20 00:37:35.000000000 +0200
-+++ cyberflex.c 2015-02-28 15:57:55.093727371 +0100
-@@ -48,7 +48,13 @@
- #define SHA1Init SHA1_Init
- #define SHA1Update SHA1_Update
- #define SHA1Final SHA1_Final
--#else /* __linux */
-+#elif defined(__FreeBSD__)
-+#define SHA1_CTX SHA_CTX
-+#define SHA1Init SHA1_Init
-+#define SHA1Update SHA1_Update
-+#define SHA1Final SHA1_Final
-+#include <openssl/sha.h>
-+#else
- #include <sha1.h>
- #endif
- #else
-@@ -69,7 +75,7 @@
- #include "sc.h"
-
- #ifdef __sun
--#define des_set_key(key, schedule) des_key_sched(key, schedule)
-+#define DES_set_key(key, &schedule) DES_key_sched(key, &schedule)
- #endif
-
- #define JDIRSIZE 40
-@@ -91,7 +97,7 @@
-
- #ifndef __palmos__
- /* default signed applet key of Cyberflex Access */
--static des_cblock app_key = {0x6A, 0x21, 0x36, 0xF5, 0xD8, 0x0C, 0x47, 0x83};
-+static DES_cblock app_key = {0x6A, 0x21, 0x36, 0xF5, 0xD8, 0x0C, 0x47, 0x83};
- #endif
-
- static int
-@@ -663,8 +669,8 @@
- unsigned char aid[16], app_data[MAX_APP_SIZE], data[MAX_BUF_SIZE];
- int i, j, vflag = 0, gotprog = 0, gotcont = 0, fd_app, size, aidlen = 0, sw;
- int cont_size = 1152, inst_size = 1024;
-- des_cblock tmp;
-- des_key_schedule schedule;
-+ DES_cblock tmp;
-+ DES_key_schedule schedule;
- static unsigned char acl[] = {0x81, 0, 0, 0xff, 0, 0, 0, 0};
-
- optind = optreset = 1;
-@@ -777,12 +783,12 @@
- /* chain. DES encrypt one block, XOR the cyphertext with the next block,
- ... continues until the end of the buffer */
-
-- des_set_key (&app_key, schedule);
-+ DES_set_key (&app_key, &schedule);
-
- for (i = 0; i < size/BLOCK_SIZE; i++) {
- for (j = 0; j < BLOCK_SIZE; j++)
- tmp[j] = tmp[j] ^ app_data[i*BLOCK_SIZE + j];
-- des_ecb_encrypt (&tmp, &tmp, schedule, DES_ENCRYPT);
-+ DES_ecb_encrypt (&tmp, &tmp, &schedule, DES_ENCRYPT);
- }
-
- if (vflag) {
diff --git a/security/sectok/pkg-descr b/security/sectok/pkg-descr
deleted file mode 100644
index f71dcd17c35b..000000000000
--- a/security/sectok/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-This is the sectok tool from citi.umich.edu. Originally targeted
-for OpenBSD. This is a quick port of the basic application; it relies
-upon the libsectok library for ISO 7816 Smart Card device communication.