cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

libssh2_session_hostkey.3 (687B)


      1.TH libssh2_session_hostkey 3 "1 Jun 2007" "libssh2 0.15" "libssh2"
      2.SH NAME
      3libssh2_session_hostkey - get the remote key
      4.SH SYNOPSIS
      5.nf
      6#include <libssh2.h>
      7
      8const char *
      9libssh2_session_hostkey(LIBSSH2_SESSION *session,
     10                        size_t *len, int *type);
     11.fi
     12.SH DESCRIPTION
     13Returns a pointer to the current host key, the value \fIlen\fP points to will
     14get the length of the key.
     15
     16The value \fItype\fP points to the type of hostkey which is one of:
     17LIBSSH2_HOSTKEY_TYPE_RSA, LIBSSH2_HOSTKEY_TYPE_DSS, or
     18LIBSSH2_HOSTKEY_TYPE_UNKNOWN.
     19
     20.SH RETURN VALUE
     21A pointer, or NULL if something went wrong.
     22.SH SEE ALSO
     23.BR libssh2_knownhost_check(3)
     24.BR libssh2_knownhost_add(3)