cscg24-guacamole

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

libssh2_knownhost_readfile.3 (984B)


      1.\"
      2.\" Copyright (c) 2009-2011 by Daniel Stenberg
      3.\"
      4.TH libssh2_knownhost_readfile 3 "28 May 2009" "libssh2" "libssh2"
      5.SH NAME
      6libssh2_knownhost_readfile - parse a file of known hosts
      7.SH SYNOPSIS
      8.nf
      9#include <libssh2.h>
     10
     11int
     12libssh2_knownhost_readfile(LIBSSH2_KNOWNHOSTS *hosts,
     13                           const char *filename, int type);
     14.fi
     15.SH DESCRIPTION
     16Reads a collection of known hosts from a specified file and adds them to the
     17collection of known hosts.
     18
     19\fIfilename\fP specifies which file to read
     20
     21\fItype\fP specifies what file type it is, and
     22\fILIBSSH2_KNOWNHOST_FILE_OPENSSH\fP is the only currently supported
     23format. This file is normally found named ~/.ssh/known_hosts
     24.SH RETURN VALUE
     25Returns a negative value, a regular libssh2 error code for errors, or a
     26positive number as number of parsed known hosts in the file.
     27.SH AVAILABILITY
     28Added in libssh2 1.2
     29.SH SEE ALSO
     30.BR libssh2_knownhost_init(3)
     31.BR libssh2_knownhost_free(3)
     32.BR libssh2_knownhost_check(3)