summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-06-22 06:51:45 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-06-22 06:51:45 +0000
commit0645ff56014b339af354ff097dc245c9723e29a0 (patch)
treedf0813e105dfc4109dd897a547bb9c6a912d12c6 /includes
parent95f4b016b6993ef17ef476e1c3b8bd697f1fc6e1 (diff)
downloadgnutls-0645ff56014b339af354ff097dc245c9723e29a0.tar.gz
Renamed credential allocation functions from *_sc() to *_cred().
Diffstat (limited to 'includes')
-rw-r--r--includes/gnutls/Makefile.am2
-rw-r--r--includes/gnutls/extra.h14
2 files changed, 11 insertions, 5 deletions
diff --git a/includes/gnutls/Makefile.am b/includes/gnutls/Makefile.am
index 78f85f52b4..54d8898cb9 100644
--- a/includes/gnutls/Makefile.am
+++ b/includes/gnutls/Makefile.am
@@ -1 +1 @@
-include_HEADERS = extra.h openssl.h
+include_HEADERS = extra.h openssl.h gnutls.h
diff --git a/includes/gnutls/extra.h b/includes/gnutls/extra.h
index 7929173496..6a4e3756a6 100644
--- a/includes/gnutls/extra.h
+++ b/includes/gnutls/extra.h
@@ -30,12 +30,18 @@
typedef struct DSTRUCT* GNUTLS_SRP_SERVER_CREDENTIALS;
typedef struct DSTRUCT* GNUTLS_SRP_CLIENT_CREDENTIALS;
-void gnutls_srp_free_client_sc( GNUTLS_SRP_CLIENT_CREDENTIALS sc);
-int gnutls_srp_allocate_client_sc( GNUTLS_SRP_CLIENT_CREDENTIALS *sc);
+void gnutls_srp_free_client_cred( GNUTLS_SRP_CLIENT_CREDENTIALS sc);
+int gnutls_srp_allocate_client_cred( GNUTLS_SRP_CLIENT_CREDENTIALS *sc);
+#define gnutls_srp_free_client_sc gnutls_srp_free_client_cred
+#define gnutls_srp_allocate_client_sc gnutls_srp_allocate_client_cred
+
int gnutls_srp_set_client_cred( GNUTLS_SRP_CLIENT_CREDENTIALS res, char *username, char* password);
-void gnutls_srp_free_server_sc( GNUTLS_SRP_SERVER_CREDENTIALS sc);
-int gnutls_srp_allocate_server_sc( GNUTLS_SRP_SERVER_CREDENTIALS *sc);
+void gnutls_srp_free_server_cred( GNUTLS_SRP_SERVER_CREDENTIALS sc);
+int gnutls_srp_allocate_server_cred( GNUTLS_SRP_SERVER_CREDENTIALS *sc);
+#define gnutls_srp_free_server_sc gnutls_srp_free_server_cred
+#define gnutls_srp_allocate_server_sc gnutls_srp_allocate_server_cred
+
int gnutls_srp_set_server_cred_file( GNUTLS_SRP_SERVER_CREDENTIALS res, char *password_file, char* password_conf_file);
const char* gnutls_srp_server_get_username( GNUTLS_STATE state);