cscg24-guacamole

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

libssh2_knownhost_readline.3 (972B)


      1.\"
      2.\" Copyright (c) 2009 by Daniel Stenberg
      3.\"
      4.TH libssh2_knownhost_readline 3 "28 May 2009" "libssh2" "libssh2"
      5.SH NAME
      6libssh2_knownhost_readline - read a known host line
      7.SH SYNOPSIS
      8.nf
      9#include <libssh2.h>
     10
     11int
     12libssh2_knownhost_readline(LIBSSH2_KNOWNHOSTS *hosts,
     13                           const char *line, size_t len, int type):
     14.fi
     15.SH DESCRIPTION
     16Tell libssh2 to read a buffer as it if is a line from a known hosts file.
     17
     18\fIline\fP points to the start of the line
     19
     20\fIlen\fP is the length of the line in bytes
     21
     22\fItype\fP specifies what file type it is, and
     23\fILIBSSH2_KNOWNHOST_FILE_OPENSSH\fP is the only currently supported
     24format. This file is normally found named ~/.ssh/known_hosts
     25.SH RETURN VALUE
     26Returns a regular libssh2 error code, where negative values are error codes
     27and 0 indicates success.
     28.SH AVAILABILITY
     29Added in libssh2 1.2
     30.SH SEE ALSO
     31.BR libssh2_knownhost_get(3)
     32.BR libssh2_knownhost_writeline(3)
     33.BR libssh2_knownhost_readfile(3)