summaryrefslogtreecommitdiff
path: root/libextra
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 /libextra
parent95f4b016b6993ef17ef476e1c3b8bd697f1fc6e1 (diff)
downloadgnutls-0645ff56014b339af354ff097dc245c9723e29a0.tar.gz
Renamed credential allocation functions from *_sc() to *_cred().
Diffstat (limited to 'libextra')
-rw-r--r--libextra/gnutls_openssl.c4
-rw-r--r--libextra/gnutls_srp.c16
2 files changed, 10 insertions, 10 deletions
diff --git a/libextra/gnutls_openssl.c b/libextra/gnutls_openssl.c
index f286817908..ba3356c6d4 100644
--- a/libextra/gnutls_openssl.c
+++ b/libextra/gnutls_openssl.c
@@ -112,7 +112,7 @@ SSL *SSL_new(SSL_CTX *ctx)
if (!ssl)
return NULL;
- err = gnutls_certificate_allocate_sc(&ssl->gnutls_cred);
+ err = gnutls_certificate_allocate_cred(&ssl->gnutls_cred);
if (err < 0)
{
last_error = err;
@@ -146,7 +146,7 @@ SSL *SSL_new(SSL_CTX *ctx)
void SSL_free(SSL *ssl)
{
- gnutls_certificate_free_sc(ssl->gnutls_cred);
+ gnutls_certificate_free_cred(ssl->gnutls_cred);
gnutls_deinit(ssl->gnutls_state);
free(ssl);
return;
diff --git a/libextra/gnutls_srp.c b/libextra/gnutls_srp.c
index 43874b90a4..f8a232abaf 100644
--- a/libextra/gnutls_srp.c
+++ b/libextra/gnutls_srp.c
@@ -312,28 +312,28 @@ GNUTLS_MPI _gnutls_calc_srp_S2(GNUTLS_MPI B, GNUTLS_MPI g, GNUTLS_MPI x, GNUTLS_
}
/**
- * gnutls_srp_free_server_sc - Used to free an allocated GNUTLS_SRP_CLIENT_CREDENTIALS structure
+ * gnutls_srp_free_server_cred - Used to free an allocated GNUTLS_SRP_CLIENT_CREDENTIALS structure
* @sc: is an &GNUTLS_SRP_CLIENT_CREDENTIALS structure.
*
* This structure is complex enough to manipulate directly thus
* this helper function is provided in order to free (deallocate)
* the structure.
**/
-void gnutls_srp_free_client_sc( GNUTLS_SRP_CLIENT_CREDENTIALS sc) {
+void gnutls_srp_free_client_cred( GNUTLS_SRP_CLIENT_CREDENTIALS sc) {
gnutls_free( sc->username);
gnutls_free( sc->password);
gnutls_free( sc);
}
/**
- * gnutls_srp_allocate_server_sc - Used to allocate an GNUTLS_SRP_SERVER_CREDENTIALS structure
+ * gnutls_srp_allocate_server_cred - Used to allocate an GNUTLS_SRP_SERVER_CREDENTIALS structure
* @sc: is a pointer to an &GNUTLS_SRP_SERVER_CREDENTIALS structure.
*
* This structure is complex enough to manipulate directly thus
* this helper function is provided in order to allocate
* the structure.
**/
-int gnutls_srp_allocate_client_sc( GNUTLS_SRP_CLIENT_CREDENTIALS *sc) {
+int gnutls_srp_allocate_client_cred( GNUTLS_SRP_CLIENT_CREDENTIALS *sc) {
*sc = gnutls_calloc( 1, sizeof(SRP_CLIENT_CREDENTIALS_INT));
if (*sc==NULL) return GNUTLS_E_MEMORY_ERROR;
@@ -368,14 +368,14 @@ int gnutls_srp_set_client_cred( GNUTLS_SRP_CLIENT_CREDENTIALS res, char *usernam
}
/**
- * gnutls_srp_free_server_sc - Used to free an allocated GNUTLS_SRP_SERVER_CREDENTIALS structure
+ * gnutls_srp_free_server_cred - Used to free an allocated GNUTLS_SRP_SERVER_CREDENTIALS structure
* @sc: is an &GNUTLS_SRP_SERVER_CREDENTIALS structure.
*
* This structure is complex enough to manipulate directly thus
* this helper function is provided in order to free (deallocate)
* the structure.
**/
-void gnutls_srp_free_server_sc( GNUTLS_SRP_SERVER_CREDENTIALS sc) {
+void gnutls_srp_free_server_cred( GNUTLS_SRP_SERVER_CREDENTIALS sc) {
int i;
for (i=0;i<sc->password_files;i++) {
gnutls_free( sc->password_file[i]);
@@ -388,14 +388,14 @@ int i;
}
/**
- * gnutls_srp_allocate_server_sc - Used to allocate an GNUTLS_SRP_SERVER_CREDENTIALS structure
+ * gnutls_srp_allocate_server_cred - Used to allocate an GNUTLS_SRP_SERVER_CREDENTIALS structure
* @sc: is a pointer to an &GNUTLS_SRP_SERVER_CREDENTIALS structure.
*
* This structure is complex enough to manipulate directly thus
* this helper function is provided in order to allocate
* the structure.
**/
-int gnutls_srp_allocate_server_sc( GNUTLS_SRP_SERVER_CREDENTIALS *sc) {
+int gnutls_srp_allocate_server_cred( GNUTLS_SRP_SERVER_CREDENTIALS *sc) {
*sc = gnutls_calloc( 1, sizeof(SRP_SERVER_CREDENTIALS_INT));
if (*sc==NULL) return GNUTLS_E_MEMORY_ERROR;