From nobody Sat Oct 22 09:57:45 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MvcG16Mztz4gZDx; Sat, 22 Oct 2022 09:57:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MvcG15s81z3QxQ; Sat, 22 Oct 2022 09:57:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666432665; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xgb6vkSeBRQ0b1+BdTEPz9ROZLWCUbktlA0Fb/x3qog=; b=EPTbGtf+HCobHzReW3NAGsdFc6g7SOZix5ZlBv3Whf6lZLF0oKUuwxUHSxJFD8i6bvba7m KuCC3WzIonpuHwDik1ybJzB4CmypLNt1tEN/DHAuAVgQ0cXm2mAf/J6qBU06OS9xzFIf43 hHkVkM9RmQj2YCniDKgYSdTxuBnyxildHphoRmwNBT5f7LIVZvfpThoPzJHTJ5fU64CGFf pLh7ZylJ0WSxJMPtqJn4IFDseWqOWoYtYAu4ZT7Hd2OXOOD0gnl9KboyL576yymYBm/HtJ Rzg8TosaicfsAEuyO1UBLzOYWMQ6KsqWEDmlMoPh3NbdSh5ZFGrJADkL0dnKIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MvcG14pSjzWlp; Sat, 22 Oct 2022 09:57:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29M9vjYF087359; Sat, 22 Oct 2022 09:57:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29M9vjjY087358; Sat, 22 Oct 2022 09:57:45 GMT (envelope-from git) Date: Sat, 22 Oct 2022 09:57:45 GMT Message-Id: <202210220957.29M9vjjY087358@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: bc2ac7558455 - main - Add security/hyperhotp: Programmer for the HOTP feature of hyperFIDO USB security keys List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc2ac7558455e8f6d0c7ccf60ccf91ccbe5f752e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666432665; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xgb6vkSeBRQ0b1+BdTEPz9ROZLWCUbktlA0Fb/x3qog=; b=dMZlO7hZI9D/E1g57khzU412jg/eC9CTDaBQmag+qZ0ldjQCzNrKk7J3hqgVB9eflUY8Z+ LgVFSqsZdfy/ftFj73xGhXFS3tN/icRItTPPpS7g78MOXa1pAaPYlujRysvi2UggttMPH0 EsL4vF5PLBPHKmNmH+ikGUgbzPre3cnuar/2PWy0aSqO2CgNlNC1YIdhxoITr3jVlIStW9 6ybGkXxOiaoFKFnLap8Y9c0NBOBG7hqF/Ew7gYizItopfBM5uLja4apZkLgvmXaay6Hbxw rXtw8TFEkQ3UPeQaToXT8dJUNkluhSLHVe6wX2lF8WDESke30GmpUoIZSDahmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666432665; a=rsa-sha256; cv=none; b=S4kBb7t3HG2auDycpoaP6iuH10I9qqWW8uspgpdRltTGMMKCuyo6MYGDj3n6+2N7NUG1sH UsrdcqLkcCYJEuJOwU5FNMb3VbXZ/30FeL7JbciY++5t75WyBT8IuQysc59iCno9maeFI2 278kMS2u/mOkN1NO4v6nFz9S/OIuU/mL3gwWDa9qorOvRggpiA50u4r65Nw0SJkfy8jtI7 bVIxGOwdrysmnPk0qrDnAmxevxAQrNuHAxPW9LVMjYT7d4mSzObhxPVtrfE1INR5tMr4k7 rhH6dTl/KX+oHCitsnZdUyg419Bly14KWp95t2PJi9IpI+FURaYnsPCJ3e9JWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=bc2ac7558455e8f6d0c7ccf60ccf91ccbe5f752e commit bc2ac7558455e8f6d0c7ccf60ccf91ccbe5f752e Author: Robert Clausecker AuthorDate: 2022-10-20 10:20:31 +0000 Commit: Li-Wen Hsu CommitDate: 2022-10-22 09:56:59 +0000 Add security/hyperhotp: Programmer for the HOTP feature of hyperFIDO USB security keys HyperHOTP is an open re-implementation of the programming software for the HOTP feature of the hyperFIDO security keys. It's based on reverse- engineering the Windows-based programmer available on Hypersecu's website. WWW: https://github.com/casept/hyperhotp PR: 267223 --- security/Makefile | 1 + security/hyperhotp/Makefile | 19 +++++++++++++++++++ security/hyperhotp/distinfo | 3 +++ security/hyperhotp/files/patch-cmake_FindLibusb.cmake | 19 +++++++++++++++++++ security/hyperhotp/files/patch-src_core_hyperhotp.c | 10 ++++++++++ security/hyperhotp/files/patch-src_core_hyperhotp.h | 10 ++++++++++ security/hyperhotp/files/patch-src_core_log.c | 8 ++++++++ security/hyperhotp/files/patch-src_core_log.h | 10 ++++++++++ security/hyperhotp/files/patch-src_core_u2fhid.c | 10 ++++++++++ security/hyperhotp/files/patch-src_core_u2fhid.h | 10 ++++++++++ security/hyperhotp/files/patch-src_core_usb.c | 10 ++++++++++ security/hyperhotp/files/patch-src_core_usb.h | 10 ++++++++++ security/hyperhotp/files/patch-src_gui_main.c | 9 +++++++++ security/hyperhotp/pkg-descr | 4 ++++ 14 files changed, 133 insertions(+) diff --git a/security/Makefile b/security/Makefile index 8bd8b76d2f0d..d032b972b3ff 100644 --- a/security/Makefile +++ b/security/Makefile @@ -215,6 +215,7 @@ SUBDIR += hpenc SUBDIR += hs-cryptol SUBDIR += hydra + SUBDIR += hyperhotp SUBDIR += i2p SUBDIR += i2pd SUBDIR += iaikpkcs11wrapper diff --git a/security/hyperhotp/Makefile b/security/hyperhotp/Makefile new file mode 100644 index 000000000000..05a68e54fb8b --- /dev/null +++ b/security/hyperhotp/Makefile @@ -0,0 +1,19 @@ +PORTNAME= hyperhotp +DISTVERSION= g20211005 +CATEGORIES= security comms + +MAINTAINER= fuz@fuz.su +COMMENT= Programmer for the HOTP feature of hyperFIDO USB security keys +WWW= https://github.com/casept/hyperhotp + +LICENSE= GPLv3 + +USES= cmake pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= casept +#GH_PROJECT= hyperhotp +GH_TAGNAME= ad1f71d0e4669e7b693ae0fd794186204b1941e8 + +PLIST_FILES= bin/hyperhotp + +.include diff --git a/security/hyperhotp/distinfo b/security/hyperhotp/distinfo new file mode 100644 index 000000000000..910c8ea4a91f --- /dev/null +++ b/security/hyperhotp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1666202596 +SHA256 (casept-hyperhotp-g20211005-ad1f71d0e4669e7b693ae0fd794186204b1941e8_GH0.tar.gz) = 42f522de25252a78a92460651845aece35dfe6da827ce3bbd9a27c6f42d8fabd +SIZE (casept-hyperhotp-g20211005-ad1f71d0e4669e7b693ae0fd794186204b1941e8_GH0.tar.gz) = 29308 diff --git a/security/hyperhotp/files/patch-cmake_FindLibusb.cmake b/security/hyperhotp/files/patch-cmake_FindLibusb.cmake new file mode 100644 index 000000000000..6a1c4fadafbf --- /dev/null +++ b/security/hyperhotp/files/patch-cmake_FindLibusb.cmake @@ -0,0 +1,19 @@ +--- cmake/FindLibusb.cmake.orig 2022-10-19 18:04:24 UTC ++++ cmake/FindLibusb.cmake +@@ -12,14 +12,14 @@ mark_as_advanced(Libusb_VERSION) + # Find header path + find_path( + Libusb_INCLUDE_DIR +- NAMES libusb-1.0/libusb.h ++ NAMES libusb.h + HINTS ${PC_Libusb_INCLUDE_DIRS}) + mark_as_advanced(Libusb_INCLUDE_DIR) + + # Find lib path + find_library( + Libusb_LIBRARIES +- NAMES usb-1.0 ++ NAMES usb + HINTS ${PC_Libusb_LIBRARY_DIRS}) + mark_as_advanced(Libusb_LIBRARIES) + diff --git a/security/hyperhotp/files/patch-src_core_hyperhotp.c b/security/hyperhotp/files/patch-src_core_hyperhotp.c new file mode 100644 index 000000000000..ecdaa53d8380 --- /dev/null +++ b/security/hyperhotp/files/patch-src_core_hyperhotp.c @@ -0,0 +1,10 @@ +--- src/core/hyperhotp.c.orig 2021-10-05 10:43:22 UTC ++++ src/core/hyperhotp.c +@@ -1,6 +1,6 @@ + #include "hyperhotp.h" + +-#include ++#include + #include + #include + #include diff --git a/security/hyperhotp/files/patch-src_core_hyperhotp.h b/security/hyperhotp/files/patch-src_core_hyperhotp.h new file mode 100644 index 000000000000..9b39ee3600da --- /dev/null +++ b/security/hyperhotp/files/patch-src_core_hyperhotp.h @@ -0,0 +1,10 @@ +--- src/core/hyperhotp.h.orig 2021-10-05 10:43:22 UTC ++++ src/core/hyperhotp.h +@@ -1,6 +1,6 @@ + #pragma once + +-#include ++#include + #include + + #include "u2fhid.h" diff --git a/security/hyperhotp/files/patch-src_core_log.c b/security/hyperhotp/files/patch-src_core_log.c new file mode 100644 index 000000000000..6be4ce656086 --- /dev/null +++ b/security/hyperhotp/files/patch-src_core_log.c @@ -0,0 +1,8 @@ +--- src/core/log.c.orig 2021-10-05 10:43:22 UTC ++++ src/core/log.c +@@ -1,4 +1,4 @@ +-#include ++#include + #include + #include + #include diff --git a/security/hyperhotp/files/patch-src_core_log.h b/security/hyperhotp/files/patch-src_core_log.h new file mode 100644 index 000000000000..2e80eae4f101 --- /dev/null +++ b/security/hyperhotp/files/patch-src_core_log.h @@ -0,0 +1,10 @@ +--- src/core/log.h.orig 2021-10-05 10:43:22 UTC ++++ src/core/log.h +@@ -1,6 +1,6 @@ + #pragma once + +-#include ++#include + #include + + void log_fatal(const char* msg); diff --git a/security/hyperhotp/files/patch-src_core_u2fhid.c b/security/hyperhotp/files/patch-src_core_u2fhid.c new file mode 100644 index 000000000000..288996dea31c --- /dev/null +++ b/security/hyperhotp/files/patch-src_core_u2fhid.c @@ -0,0 +1,10 @@ +--- src/core/u2fhid.c.orig 2021-10-05 10:43:22 UTC ++++ src/core/u2fhid.c +@@ -1,6 +1,6 @@ + #include "u2fhid.h" + +-#include ++#include + #include + #include + #include diff --git a/security/hyperhotp/files/patch-src_core_u2fhid.h b/security/hyperhotp/files/patch-src_core_u2fhid.h new file mode 100644 index 000000000000..76a6ea5ebf14 --- /dev/null +++ b/security/hyperhotp/files/patch-src_core_u2fhid.h @@ -0,0 +1,10 @@ +--- src/core/u2fhid.h.orig 2021-10-05 10:43:22 UTC ++++ src/core/u2fhid.h +@@ -1,6 +1,6 @@ + #pragma once + +-#include ++#include + #include + #include + diff --git a/security/hyperhotp/files/patch-src_core_usb.c b/security/hyperhotp/files/patch-src_core_usb.c new file mode 100644 index 000000000000..41f0df850149 --- /dev/null +++ b/security/hyperhotp/files/patch-src_core_usb.c @@ -0,0 +1,10 @@ +--- src/core/usb.c.orig 2021-10-05 10:43:22 UTC ++++ src/core/usb.c +@@ -1,6 +1,6 @@ + #include "usb.h" + +-#include ++#include + #include + #include + #include diff --git a/security/hyperhotp/files/patch-src_core_usb.h b/security/hyperhotp/files/patch-src_core_usb.h new file mode 100644 index 000000000000..dacee1d53911 --- /dev/null +++ b/security/hyperhotp/files/patch-src_core_usb.h @@ -0,0 +1,10 @@ +--- src/core/usb.h.orig 2021-10-05 10:43:22 UTC ++++ src/core/usb.h +@@ -1,6 +1,6 @@ + #pragma once + +-#include ++#include + + /* + * Initialize the hyperFIDO usb device's libusb handle. diff --git a/security/hyperhotp/files/patch-src_gui_main.c b/security/hyperhotp/files/patch-src_gui_main.c new file mode 100644 index 000000000000..ecf6c37be410 --- /dev/null +++ b/security/hyperhotp/files/patch-src_gui_main.c @@ -0,0 +1,9 @@ +--- src/gui/main.c.orig 2021-10-05 10:43:22 UTC ++++ src/gui/main.c +@@ -1,5 +1,5 @@ + #include +-#include ++#include + #include + #include + #include diff --git a/security/hyperhotp/pkg-descr b/security/hyperhotp/pkg-descr new file mode 100644 index 000000000000..56aa3440563f --- /dev/null +++ b/security/hyperhotp/pkg-descr @@ -0,0 +1,4 @@ +HyperHOTP is an open re-implementation of the programming software for +the HOTP feature of the hyperFIDO security keys. It's based on reverse- +engineering the Windows-based programmer available on Hypersecu's +website.