summaryrefslogtreecommitdiff
path: root/lib/auth/psk_passwd.c
diff options
context:
space:
mode:
authorAnder Juaristi <a@juaristi.eus>2018-04-18 20:56:07 +0200
committerDaiki Ueno <dueno@redhat.com>2018-04-20 16:10:20 +0200
commitb65254724993d4fd5a290d439321f5d8ff54e4c5 (patch)
treed2f31251bb8e64288477034a3a88d5bbd2461c35 /lib/auth/psk_passwd.c
parent277b2e9b054884b6e5317a313e1a6433402c4bca (diff)
downloadgnutls-tmp-session-resumption-tls13.tar.gz
ext/psk_ke_modes: Take into account of server priority stringtmp-session-resumption-tls13
Signed-off-by: Ander Juaristi <a@juaristi.eus>
Diffstat (limited to 'lib/auth/psk_passwd.c')
-rw-r--r--lib/auth/psk_passwd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/auth/psk_passwd.c b/lib/auth/psk_passwd.c
index dfaac2bea2..893c1fb0cd 100644
--- a/lib/auth/psk_passwd.c
+++ b/lib/auth/psk_passwd.c
@@ -105,18 +105,15 @@ static int _randomize_psk(gnutls_datum_t * psk)
* If the user doesn't exist a random password is returned instead.
*/
int
-_gnutls_psk_pwd_find_entry(gnutls_session_t session, char *username,
- gnutls_datum_t * psk)
+_gnutls_psk_pwd_find_entry(gnutls_session_t session, gnutls_psk_server_credentials_t cred,
+ char *username, gnutls_datum_t * psk)
{
- gnutls_psk_server_credentials_t cred;
FILE *fd;
char *line = NULL;
size_t line_size = 0;
unsigned i, len;
int ret;
- cred = (gnutls_psk_server_credentials_t)
- _gnutls_get_cred(session, GNUTLS_CRD_PSK);
if (cred == NULL) {
gnutls_assert();
return GNUTLS_E_INSUFFICIENT_CREDENTIALS;