summaryrefslogtreecommitdiff
path: root/lib/auth_psk.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-11-07 23:27:56 +0000
committerSimon Josefsson <simon@josefsson.org>2005-11-07 23:27:56 +0000
commita5891d75997c9529b9fc5c273df8bd0df4093cd0 (patch)
treefd6eec448a88c5eb891cc145921c5793662da604 /lib/auth_psk.h
parentaf21484a8daf15da48f7d00c4fe632708a757a64 (diff)
downloadgnutls-a5891d75997c9529b9fc5c273df8bd0df4093cd0.tar.gz
Use GNU coding style.
Diffstat (limited to 'lib/auth_psk.h')
-rw-r--r--lib/auth_psk.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/lib/auth_psk.h b/lib/auth_psk.h
index 59b49abc1e..432515eb08 100644
--- a/lib/auth_psk.h
+++ b/lib/auth_psk.h
@@ -27,23 +27,26 @@
#include <gnutls_auth.h>
-typedef struct gnutls_psk_client_credentials_st {
- gnutls_datum username;
- gnutls_datum key;
- gnutls_psk_client_credentials_function *get_function;
+typedef struct gnutls_psk_client_credentials_st
+{
+ gnutls_datum username;
+ gnutls_datum key;
+ gnutls_psk_client_credentials_function *get_function;
} psk_client_credentials_st;
-typedef struct gnutls_psk_server_credentials_st {
- char *password_file;
- /* callback function, instead of reading the
- * password files.
- */
- gnutls_psk_server_credentials_function *pwd_callback;
+typedef struct gnutls_psk_server_credentials_st
+{
+ char *password_file;
+ /* callback function, instead of reading the
+ * password files.
+ */
+ gnutls_psk_server_credentials_function *pwd_callback;
} psk_server_cred_st;
/* these structures should not use allocated data */
-typedef struct psk_server_auth_info_st {
- char username[MAX_SRP_USERNAME+1];
+typedef struct psk_server_auth_info_st
+{
+ char username[MAX_SRP_USERNAME + 1];
} *psk_server_auth_info_t;
@@ -51,6 +54,6 @@ typedef struct psk_server_auth_info_st {
typedef struct psk_server_auth_info_st psk_server_auth_info_st;
-#endif /* ENABLE_PSK */
+#endif /* ENABLE_PSK */
#endif