gsasl-commit
[Top][All Lists]
Advanced

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

CVS gsasl/lib/login


From: gsasl-commit
Subject: CVS gsasl/lib/login
Date: Tue, 30 Nov 2004 04:58:12 +0100

Update of /home/cvs/gsasl/lib/login
In directory dopio:/tmp/cvs-serv3232

Modified Files:
        client.c 
Log Message:
Use SASLprep, not NFKC.


--- /home/cvs/gsasl/lib/login/client.c  2004/11/29 17:47:31     1.6
+++ /home/cvs/gsasl/lib/login/client.c  2004/11/30 03:58:12     1.7
@@ -72,12 +72,11 @@
       if (!p)
        return GSASL_NO_AUTHID;
 
-      tmp = gsasl_stringprep_nfkc (p, -1);
-      if (tmp == NULL)
-       return GSASL_UNICODE_NORMALIZATION_ERROR;
+      res = gsasl_saslprep (p, GSASL_ALLOW_UNASSIGNED, output, NULL);
+      if (res != GSASL_OK)
+       return res;
 
-      *output = tmp;
-      *output_len = strlen (tmp);
+      *output_len = strlen (*output);
 
       state->step++;
       res = GSASL_NEEDS_MORE;
@@ -88,12 +87,11 @@
       if (!p)
        return GSASL_NO_PASSWORD;
 
-      tmp = gsasl_stringprep_nfkc (p, -1);
-      if (tmp == NULL)
-       return GSASL_UNICODE_NORMALIZATION_ERROR;
+      res = gsasl_saslprep (p, GSASL_ALLOW_UNASSIGNED, output, NULL);
+      if (res != GSASL_OK)
+       return res;
 
-      *output = tmp;
-      *output_len = strlen (tmp);
+      *output_len = strlen (*output);
 
       state->step++;
       res = GSASL_OK;





reply via email to

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