summaryrefslogtreecommitdiff
path: root/lib/gnutls_psk.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-04-11 13:32:22 +0000
committerSimon Josefsson <simon@josefsson.org>2007-04-11 13:32:22 +0000
commite62a2cf1b92dbdc7d955dbb194e7973c5c10a0fe (patch)
treebc44c63f2f97017a19c9318b414f5fe2d97ad6f6 /lib/gnutls_psk.c
parentffc24930fd939c6c6115eb2ba01d5f4b17b87c0c (diff)
downloadgnutls-e62a2cf1b92dbdc7d955dbb194e7973c5c10a0fe.tar.gz
(gnutls_psk_set_client_credentials): Fix prototype.
Diffstat (limited to 'lib/gnutls_psk.c')
-rw-r--r--lib/gnutls_psk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gnutls_psk.c b/lib/gnutls_psk.c
index f544ce4fe5..9fa091cae3 100644
--- a/lib/gnutls_psk.c
+++ b/lib/gnutls_psk.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2005 Free Software Foundation
+ * Copyright (C) 2005, 2007 Free Software Foundation
*
* Author: Nikos Mavroyanopoulos
*
@@ -78,6 +78,8 @@ gnutls_psk_allocate_client_credentials (gnutls_psk_client_credentials_t * sc)
* @res: is an #gnutls_psk_client_credentials_t structure.
* @username: is the user's zero-terminated userid
* @key: is the user's key
+ * @format: indicate the format of the key, either
+ * %GNUTLS_PSK_KEY_RAW or %GNUTLS_PSK_KEY_HEX.
*
* This function sets the username and password, in a
* gnutls_psk_client_credentials_t structure. Those will be used in
@@ -92,7 +94,7 @@ int
gnutls_psk_set_client_credentials (gnutls_psk_client_credentials_t res,
const char *username,
const gnutls_datum * key,
- unsigned int flags)
+ gnutls_psk_key_flags flags)
{
int ret;