Subject: Re: [libssh2] #164: Knownhost API handles comments badly

Re: [libssh2] #164: Knownhost API handles comments badly

From: libssh2 Trac <>
Date: Sun, 07 Mar 2010 22:40:58 -0000

#164: Knownhost API handles comments badly
 Reporter: alamaison | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone:
Component: API | Version: 1.2.4
 Keywords: knownhost | Blocking:
Blockedby: |

Comment(by alamaison):

 Replying to [comment:1 bagder]:
> Surely libssh2_knownhost_readline() can be fixed to also parse and store
 the comment internally, separately from the key and that won't break any

 `libssh2_knownhost_readline` eventually delegates to
 `libssh2_knownhost_add`. I suppose we could replace that with a call to
 an internal version of `add` that take a comment parameter or we could
 change `add` so that it parses the key into two pieces. But we're still
 left with `libssh2_knownhost_get` that returns the key and the comment as

Ticket URL: <>
libssh2 <>
C library for writing portable SSH2 clients
Received on 2010-03-07