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

Net::SSH::Perl::Key is not being loaded by Net::SSH::Perl::Agent prior to using it #10

Closed
loic-prieto opened this issue May 16, 2017 · 2 comments

Comments

@loic-prieto
Copy link

When using the Net::SSH::Perl::Agent class instantiated with the version 2, and try to obtain a key with first_identy (or next_identity), I get this error:

Can't locate object method "new_from_blob" via package "Net::SSH::Perl::Key" (perhaps you forgot to load "Net::SSH::Perl::Key"?) at /home/loic/desarrollo/project_name/local/lib/perl5/x86_64-linux/Net/SSH/Perl/Agent.pm line 117.

If I load the Net::SSH::Perl::Key class prior to invoking the method, this does not occur. Indeed, if one looks at the line 117 of the Agent class, and checks what packages are being loaded, we can see that Net::SSH::Perl::Key isn't one of them.

Perhaps, just a "use Net::SSH::Perl::Key" at the beggining of the file may fix this problem. If it is a problem, and I'm just not using correctly the library as it was intended.

Kind regards, and thank you for your great work on the library :)

@lkinley
Copy link
Owner

lkinley commented May 16, 2017

Thanks, I'll fix this in the next release.

@loic-prieto
Copy link
Author

You're welcome!

@lkinley lkinley closed this as completed May 22, 2017
lkinley pushed a commit that referenced this issue Jun 30, 2017
    - Bug Fix: AES-CBC IV length needs to be blocksize, not keysize
    - Bug Fix: DES3 init needs to pass key as variable to avoid scalar error
    - Bug Fix: Packet padlen decode was using signed 8-bit unpack
      (should be unsigned)
    - Fix CBC inefficiency
    - Fix Key not being loaded prior to Agent use
      [ #10 ]
renormalist pushed a commit to renormalist/Net-SSH-Perl that referenced this issue Aug 24, 2017
 - Bug Fix: AES-CBC IV length needs to be blocksize, not keysize
 - Bug Fix: DES3 init needs to pass key as variable to avoid scalar error
 - Bug Fix: Packet padlen decode was using signed 8-bit unpack (should be unsigned)
 - Fix CBC inefficiency
 - Fix Key not being loaded prior to Agent use [ lkinley/Net-SSH-Perl#10 ]
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Sep 17, 2017
2.14 2017.07.03
    - DSA key bugfix: verify would fail if r had unnecessary leading zeros

2.13 2017.06.30
    - Bug Fix: AES-CBC IV length needs to be blocksize, not keysize
    - Bug Fix: DES3 init needs to pass key as variable to avoid scalar error
    - Bug Fix: Packet padlen decode was using signed 8-bit unpack (should be unsigned)
    - Fix CBC inefficiency
    - Fix Key not being loaded prior to Agent use [ lkinley/Net-SSH-Perl#10 ]
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

No branches or pull requests

2 participants