Build against local OpenSSL 1.0.2/PCRE1, add clipboard support (-c) - #148
Open
isghe wants to merge 2 commits into
Open
Build against local OpenSSL 1.0.2/PCRE1, add clipboard support (-c)#148isghe wants to merge 2 commits into
isghe wants to merge 2 commits into
Conversation
This code targets OpenSSL's pre-1.1 BIGNUM layout and the legacy PCRE1 API, neither of which is available as a system package anymore on current distros. Rather than rewrite the BIGNUM handling for opaque structs, point the Makefile at self-built OpenSSL 1.0.2u/PCRE 8.45 via overridable OPENSSL_PATH/PCRE_PATH variables (defaulting under $HOME). Also add -c, which copies the private key to the clipboard instead of printing it, clearing the clipboard automatically after 45 seconds if it still holds what we put there (same approach as pass). Prefers xclip when an X11 display is available, and falls back to the OSC 52 terminal escape sequence otherwise (e.g. plain SSH into a headless box, no X server needed), reporting which method was used. Falls back to printing the key if no clipboard mechanism is available, so the key is never lost.
isghe
force-pushed
the
isghe_development
branch
from
August 8, 2026 16:44
348e487 to
9478cd1
Compare
Point at the exact upstream tarball URLs and their sha256 checksums so the build dependencies can be fetched and verified without guesswork.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OPENSSL_PATH/PCRE_PATHvariables, since this codebase targets the pre-1.1 transparentBIGNUMlayout and the legacy PCRE1 API, neither available as a system package on current distros.-cflag that copies the generated private key to the clipboard instead of printing it, clearing it automatically after 45 seconds.xclipwhen an X11 display is available, and falls back to the OSC 52 terminal escape sequence otherwise (e.g. plain SSH into a headless box, no X server needed) — reports which method was used in the output.Test plan
make OPENSSL_PATH=... PCRE_PATH=...builds cleanly with no warnings-cverified to copy viaxclipwhenDISPLAYis set and reachable-cverified to fall back to OSC 52 (checked via a real pty) when no X11 display is available, decoded the base64 payload to confirm it matches the generated private key