Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify agent #48

Merged
merged 2 commits into from
Feb 9, 2023
Merged

Simplify agent #48

merged 2 commits into from
Feb 9, 2023

Conversation

quite
Copy link
Contributor

@quite quite commented Jan 25, 2023

No description provided.

mchack-work and others added 2 commits February 9, 2023 09:11
We connect before and disconnect after every TKey operation. Loading the
signer-app as needed. Leaving the TKey's serial port accessible to
others.

The actual closing of the serial port happens 3聽seconds after the last
call to disconnect(). A call to connect() will also cancel any pending
disconnection. This helps greatly with ssh login performance.

The udev rule that sends SIGHUP to tkey-ssh-agent upon insert/remove of
TKey is of course no longer needed.

Also send more notifications to help user out of some dead-ends.

Co-authored-by: Daniel Lublin <daniel@lublin.se>
Signed-off-by: Daniel Lublin <daniel@lublin.se>
Avoiding bugs when conn, a serial.Port interface, is of a type that
satisfies the interface, but has the value nil (in which case conn==nil
will be false).

Signed-off-by: Daniel Lublin <daniel@lublin.se>
@quite quite merged commit 03cb8b7 into main Feb 9, 2023
@quite quite deleted the simplify-agent branch February 9, 2023 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants