patch to send incoming key to AuthorizedKeysCommand via stdin

Lukas Fleischer info at cryptocrack.de
Wed Jun 4 07:14:30 EST 2014


On Tue, 03 Jun 2014 at 22:32:40, Scott Duckworth wrote:
> On Tue, Jun 3, 2014 at 3:32 PM, Lukas Fleischer <info at cryptocrack.de> wrote:
> 
> > I wonder if there is a way to obtain a textual representation of the key
> > without writing it to a temporary file, though?
> >
> 
> Agreed, that would be better.  If anybody knows how to do this please chime
> in.

If there isn't a function to do that already, you could factor out the
code to build the textual representation and move it to a new function
that writes the representation to a buffer (or returns it as a pointer
to a newly allocated "string"). Then, key_write() would simply become a
wrapper around that function.


More information about the openssh-unix-dev mailing list