gsasl-commit
[Top][All Lists]
Advanced

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

CVS gsasl/lib/plain


From: gsasl-commit
Subject: CVS gsasl/lib/plain
Date: Mon, 20 Dec 2004 01:53:09 +0100

Update of /home/cvs/gsasl/lib/plain
In directory dopio:/tmp/cvs-serv4144

Modified Files:
        server.c 
Log Message:
Use new API.


--- /home/cvs/gsasl/lib/plain/server.c  2004/12/15 00:09:35     1.11
+++ /home/cvs/gsasl/lib/plain/server.c  2004/12/20 00:53:08     1.12
@@ -96,12 +96,15 @@
          return GSASL_NO_PASSWORD;
        }
 
-      normkey = gsasl_stringprep_saslprep (key, NULL);
-      if (normkey == NULL)
+      /* FIXME: Specificaiton is unclear on whether unassigned code
+        points are allowed or not.  We don't allow them. */
+      res = gsasl_saslprep (key, 0, &normkey, NULL);
+      if (res != GSASL_OK)
        {
          free (password);
-         return GSASL_SASLPREP_ERROR;
+         return res;
        }
+
       if (strlen (password) == strlen (normkey) &&
          memcmp (normkey, password, strlen (normkey)) == 0)
        res = GSASL_OK;





reply via email to

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