gsasl-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU gsasl branch, master, updated. gsasl-1-2-63-ge720d54


From: Simon Josefsson
Subject: [SCM] GNU gsasl branch, master, updated. gsasl-1-2-63-ge720d54
Date: Thu, 10 Sep 2009 10:08:49 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gsasl".

http://git.savannah.gnu.org/cgit/gsasl.git/commit/?id=e720d54c60bd845e2e6756dcb75b080982477a3f

The branch, master has been updated
       via  e720d54c60bd845e2e6756dcb75b080982477a3f (commit)
      from  3688d5fa91e373fdaf1ca8e390d29d0c324339c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e720d54c60bd845e2e6756dcb75b080982477a3f
Author: Simon Josefsson <address@hidden>
Date:   Thu Sep 10 12:08:45 2009 +0200

    SCRAM: Add properties.

-----------------------------------------------------------------------

Summary of changes:
 lib/NEWS           |    6 +++++-
 lib/src/gsasl.h    |    2 ++
 lib/src/internal.h |    2 ++
 lib/src/property.c |    8 ++++++++
 lib/src/xfinish.c  |    2 ++
 5 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/lib/NEWS b/lib/NEWS
index 014e23a..a43fdb2 100644
--- a/lib/NEWS
+++ b/lib/NEWS
@@ -4,8 +4,12 @@ See the end for copying conditions.
 
 * Version 1.3 (unreleased)
 
+** libgsasl: Implement SCRAM-SHA-1.
+New properties are GSASL_SCRAM_ITER and GSASL_SCRAM_SALT.
+
 ** API and ABI modifications.
-No changes since last version.
+GSASL_SCRAM_ITER: ADDED.
+GSASL_SCRAM_SALT: ADDED.
 
 * Version 1.2 (released 2009-06-13)
 
diff --git a/lib/src/gsasl.h b/lib/src/gsasl.h
index 447bb54..32591f2 100644
--- a/lib/src/gsasl.h
+++ b/lib/src/gsasl.h
@@ -198,6 +198,8 @@ extern "C"
     GSASL_DIGEST_MD5_HASHED_PASSWORD = 12,
     GSASL_QOPS = 13,
     GSASL_QOP = 14,
+    GSASL_SCRAM_ITER = 15,
+    GSASL_SCRAM_SALT = 16,
     /* Server validation callback properties. */
     GSASL_VALIDATE_SIMPLE = 500,
     GSASL_VALIDATE_EXTERNAL = 501,
diff --git a/lib/src/internal.h b/lib/src/internal.h
index 7761ba3..72fe3e6 100644
--- a/lib/src/internal.h
+++ b/lib/src/internal.h
@@ -99,6 +99,8 @@ struct Gsasl_session
   char *digest_md5_hashed_password;
   char *qops;
   char *qop;
+  char *scram_iter;
+  char *scram_salt;
 
 #ifndef GSASL_NO_OBSOLETE
   /* Obsolete stuff. */
diff --git a/lib/src/property.c b/lib/src/property.c
index ab0137d..9f57c73 100644
--- a/lib/src/property.c
+++ b/lib/src/property.c
@@ -88,6 +88,14 @@ map (Gsasl_session * sctx, Gsasl_property prop)
       p = &sctx->qop;
       break;
 
+    case GSASL_SCRAM_ITER:
+      p = &sctx->scram_iter;
+      break;
+
+    case GSASL_SCRAM_SALT:
+      p = &sctx->scram_salt;
+      break;
+
     default:
       break;
     }
diff --git a/lib/src/xfinish.c b/lib/src/xfinish.c
index 5bf4084..3d0e0a8 100644
--- a/lib/src/xfinish.c
+++ b/lib/src/xfinish.c
@@ -57,6 +57,8 @@ gsasl_finish (Gsasl_session * sctx)
   free (sctx->digest_md5_hashed_password);
   free (sctx->qops);
   free (sctx->qop);
+  free (sctx->scram_iter);
+  free (sctx->scram_salt);
 
   free (sctx);
 }


hooks/post-receive
-- 
GNU gsasl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]