summaryrefslogtreecommitdiff
path: root/lib/auth/psk_passwd.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/auth/psk_passwd.h')
-rw-r--r--lib/auth/psk_passwd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/auth/psk_passwd.h b/lib/auth/psk_passwd.h
index f09df621d5..8fe7ae4b02 100644
--- a/lib/auth/psk_passwd.h
+++ b/lib/auth/psk_passwd.h
@@ -20,10 +20,11 @@
*
*/
-#ifdef ENABLE_PSK
-
/* this is locally allocated. It should be freed using the provided function */
int _gnutls_psk_pwd_find_entry(gnutls_session_t, char *username,
gnutls_datum_t * key);
-#endif /* ENABLE_SRP */
+int _gnutls_find_psk_key(gnutls_session_t session,
+ gnutls_psk_client_credentials_t cred,
+ gnutls_datum_t * username, gnutls_datum_t * key,
+ int *free);