mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
Handle automatic certificate authentication
This involves reading the certificates from configuration files through options and handling them similarly as the OpenSSH does when doing the auto pubkey authentication, also in combination with agent or identities only. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
committed by
Sahana Prasad
parent
c1630fa097
commit
aae1bc1058
@@ -65,6 +65,7 @@ enum ssh_config_opcode_e {
|
||||
SOC_IDENTITIESONLY,
|
||||
SOC_CONTROLMASTER,
|
||||
SOC_CONTROLPATH,
|
||||
SOC_CERTIFICATE,
|
||||
|
||||
SOC_MAX /* Keep this one last in the list */
|
||||
};
|
||||
|
||||
@@ -416,6 +416,7 @@ enum ssh_options_e {
|
||||
SSH_OPTIONS_IDENTITIES_ONLY,
|
||||
SSH_OPTIONS_CONTROL_MASTER,
|
||||
SSH_OPTIONS_CONTROL_PATH,
|
||||
SSH_OPTIONS_CERTIFICATE,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
||||
@@ -231,6 +231,8 @@ struct ssh_session_struct {
|
||||
struct {
|
||||
struct ssh_list *identity;
|
||||
struct ssh_list *identity_non_exp;
|
||||
struct ssh_list *certificate;
|
||||
struct ssh_list *certificate_non_exp;
|
||||
char *username;
|
||||
char *host;
|
||||
char *bindaddr; /* bind the client to an ip addr */
|
||||
|
||||
Reference in New Issue
Block a user