Use password instead of passwd as variable name

This commit is contained in:
Marcel Holtmann 2010-03-22 20:13:55 -07:00
parent 6cbfe5fa1e
commit 39476a2b54
2 changed files with 5 additions and 5 deletions

View File

@ -101,7 +101,7 @@ struct auth_data {
gpointer proto_data;
void (*process_packet)(struct auth_data *data, guint8 *packet);
char *username;
char *passwd;
char *password;
GAtPPP *ppp;
};

View File

@ -55,7 +55,7 @@ enum chap_code {
};
void auth_set_credentials(struct auth_data *data, const char *username,
const char *passwd)
const char *password)
{
if (data == NULL)
return;
@ -63,8 +63,8 @@ void auth_set_credentials(struct auth_data *data, const char *username,
g_free(data->username);
data->username = g_strdup(username);
g_free(data->passwd);
data->passwd = g_strdup(passwd);
g_free(data->password);
data->password = g_strdup(password);
}
static void chap_process_challenge(struct auth_data *auth, guint8 *packet)
@ -73,7 +73,7 @@ static void chap_process_challenge(struct auth_data *auth, guint8 *packet)
struct chap_header *response;
struct chap_data *data = auth->proto_data;
GChecksum *checksum;
gchar *secret = data->auth->passwd;
gchar *secret = data->auth->password;
guint16 response_length;
struct ppp_header *ppp_packet;
gsize digest_len;