Removed sending of PSK.

This commit is contained in:
Sascha Spreitzer 2009-05-24 12:08:06 +02:00
parent 739c7b2507
commit 8300c3ed9e

View file

@ -213,11 +213,7 @@ int fetch_url(pam_url_opts opts)
CURL* eh = NULL;
char* post = NULL;
post = calloc(1,
strlen("PSK=") +
strlen(opts.PSK) +
strlen("&") +
strlen(opts.userfield) +
post = calloc(1,strlen(opts.userfield) +
strlen("=") +
strlen(opts.user) +
strlen("&") +
@ -229,8 +225,7 @@ int fetch_url(pam_url_opts opts)
strlen(opts.extrafield) +
strlen("\0") );
sprintf(post, "PSK=%s&%s=%s&%s=%s&mode=%s%s", opts.PSK,
opts.userfield,
sprintf(post, "%s=%s&%s=%s&mode=%s%s", opts.userfield,
(char*)opts.user,
opts.passwdfield,
(char*)opts.passwd,