summaryrefslogtreecommitdiffstats
path: root/src/auth.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-05 11:50:49 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-05 11:50:49 +0100
commitee774479deb609fdb6989c7c452d6007ab4d3384 (patch)
treebb8b7b77a2354322b18090326bf794ed206332d5 /src/auth.c
parent840f75f10c4e9fd7f6fb6289ae9902a40906bde6 (diff)
downloadlibssh-ee774479deb609fdb6989c7c452d6007ab4d3384.tar.gz
libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.tar.xz
libssh-ee774479deb609fdb6989c7c452d6007ab4d3384.zip
session: Use a struct for all options.
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/auth.c b/src/auth.c
index fa25f6e..fb7c234 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -385,7 +385,7 @@ int ssh_userauth_none(ssh_session session, const char *username) {
if (username) {
str = ssh_string_from_char(username);
} else {
- str = ssh_string_from_char(session->username);
+ str = ssh_string_from_char(session->opts.username);
}
if (str == NULL) {
goto fail;
@@ -521,7 +521,7 @@ int ssh_userauth_try_publickey(ssh_session session,
if (username) {
str = ssh_string_from_char(username);
} else {
- str = ssh_string_from_char(session->username);
+ str = ssh_string_from_char(session->opts.username);
}
if (str == NULL) {
goto fail;
@@ -683,7 +683,7 @@ int ssh_userauth_publickey(ssh_session session,
if (username) {
str = ssh_string_from_char(username);
} else {
- str = ssh_string_from_char(session->username);
+ str = ssh_string_from_char(session->opts.username);
}
if (str == NULL) {
goto fail;
@@ -819,7 +819,7 @@ static int ssh_userauth_agent_publickey(ssh_session session,
if (username) {
str = ssh_string_from_char(username);
} else {
- str = ssh_string_from_char(session->username);
+ str = ssh_string_from_char(session->opts.username);
}
if (str == NULL) {
goto fail;
@@ -1115,7 +1115,7 @@ int ssh_userauth_publickey_auto(ssh_session session,
state->state = SSH_AUTH_AUTO_STATE_PUBKEY;
}
if (state->it == NULL) {
- state->it = ssh_list_get_iterator(session->identity);
+ state->it = ssh_list_get_iterator(session->opts.identity);
}
while (state->it != NULL){
@@ -1341,7 +1341,7 @@ int ssh_userauth_password(ssh_session session,
if (username) {
str = ssh_string_from_char(username);
} else {
- str = ssh_string_from_char(session->username);
+ str = ssh_string_from_char(session->opts.username);
}
if (str == NULL) {
goto fail;
@@ -1557,7 +1557,7 @@ static int ssh_userauth_kbdint_init(ssh_session session,
if (username) {
str = ssh_string_from_char(username);
} else {
- str = ssh_string_from_char(session->username);
+ str = ssh_string_from_char(session->opts.username);
}
if (str == NULL) {
goto fail;