Subject: 'Generic' port number used by libssh2_knownhost_checkp()

'Generic' port number used by libssh2_knownhost_checkp()

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Wed, 19 May 2010 00:25:23 +0100

Currently libssh2_knownhost_checkp() uses the magic value 0 in the
port number argument to indicate that the port number should be
ignored and generic checking should take place. However, 0 is a valid
port number in its own right [1]

Therefore, I suggest changing the magic value to -1 before we make the
first release of libssh2 that includes this new API function.

Alex

[1] http://en.wikipedia.org/wiki/TCP_and_UDP_port
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-05-19