From 9701118f8534d52e10ffba5980da6a2b2eec3b4c Mon Sep 17 00:00:00 2001 From: Antenore Gatta Date: Fri, 8 Mar 2019 21:01:12 +0000 Subject: Resolve "SSH public key cannot be imported: Access denied for 'none'. Authentication that can continie: publickey" - Import the public key only if available. - Added auth widget for the "Public key (automatic)" authentication type. Closes #1850 --- src/remmina_sftp_client.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/remmina_sftp_client.h') diff --git a/src/remmina_sftp_client.h b/src/remmina_sftp_client.h index 0021caa9d..31bbe2241 100644 --- a/src/remmina_sftp_client.h +++ b/src/remmina_sftp_client.h @@ -54,23 +54,22 @@ G_BEGIN_DECLS #define REMMINA_SFTP_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), REMMINA_TYPE_SFTP_CLIENT, RemminaSFTPClientClass)) typedef struct _RemminaSFTPClient { - RemminaFTPClient client; + RemminaFTPClient client; - RemminaSFTP *sftp; + RemminaSFTP * sftp; - pthread_t thread; - gint taskid; - gboolean thread_abort; + pthread_t thread; + gint taskid; + gboolean thread_abort; } RemminaSFTPClient; typedef struct _RemminaSFTPClientClass { RemminaFTPClientClass parent_class; - } RemminaSFTPClientClass; GType remmina_sftp_client_get_type(void) G_GNUC_CONST; -GtkWidget* remmina_sftp_client_new(void); +GtkWidget *remmina_sftp_client_new(void); void remmina_sftp_client_open(RemminaSFTPClient *client, RemminaSFTP *sftp); gint remmina_sftp_client_confirm_resume(RemminaSFTPClient *client, const gchar *path); @@ -78,5 +77,3 @@ gint remmina_sftp_client_confirm_resume(RemminaSFTPClient *client, const gchar * G_END_DECLS #endif /* HAVE_LIBSSH */ - - -- cgit v1.2.3