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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xbr more codegen #1462

Merged
merged 4 commits into from
Feb 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
wamp-cryptosign: fix loading of keys from ssh agent
  • Loading branch information
oberstet committed Feb 18, 2021
commit 7d51b40d2955806ee9598869e40c6c1b7aa9f43e
4 changes: 2 additions & 2 deletions autobahn/twisted/cryptosign.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def on_connect(agent):

for blob, comment in keys:
raw = _unpack(blob)
algo = raw[0]
algo = raw[0].decode('utf8')
if algo == 'ssh-ed25519':
algo, _pubkey = raw
if _pubkey == pubkey:
Expand Down Expand Up @@ -139,7 +139,7 @@ def on_connect(agent):
# we are now connected to the locally running ssh-agent
# that agent might be the openssh-agent, or eg on Ubuntu 14.04 by
# default the gnome-keyring / ssh-askpass-gnome application
blob = _pack(['ssh-ed25519', self.public_key(binary=True)])
blob = _pack(['ssh-ed25519'.encode(), self.public_key(binary=True)])

# now ask the agent
signature_blob = yield agent.signData(blob, challenge)
Expand Down