summaryrefslogtreecommitdiff
path: root/etc/mimic
ModeNameSize
l---------enu1u2c2.conf -> wlan0.conf10logplain
-rw-r--r--wlan0.conf1655logplain
l---------wwu1i4.conf -> wlan0.conf10logplain
fprintf(stderr, "Can't open file for reading: %s\n", ssh_get_error(session)); return SSH_ERROR; } for (;;) { nbytes = sftp_read(file, buffer, sizeof(buffer)); if (nbytes == 0) { break; // EOF } else if (nbytes < 0) { fprintf(stderr, "Error while reading file: %s\n", ssh_get_error(session)); sftp_close(file); return SSH_ERROR; } //printf("%s",buffer); //printf("%d\n",atoi(buffer)); plstripa( id1, 0, t, atof(buffer)); } } rc = sftp_close(file); if (rc != SSH_OK) { fprintf(stderr, "Can't close the read file: %s\n", ssh_get_error(session)); return rc; } plstripd( id1 ); plend(); return SSH_OK; } // https://api.libssh.org/stable/libssh_tutor_guided_tour.html int verify_knownhost(ssh_session session) { enum ssh_known_hosts_e state; unsigned char *hash = NULL; ssh_key srv_pubkey = NULL; size_t hlen;