[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/cram-md5
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/cram-md5 |
Date: |
Wed, 15 Dec 2004 01:59:16 +0100 |
Update of /home/cvs/gsasl/lib/cram-md5
In directory dopio:/tmp/cvs-serv3097
Modified Files:
server.c
Log Message:
Update SASLprep API.
--- /home/cvs/gsasl/lib/cram-md5/server.c 2004/11/19 02:33:00 1.9
+++ /home/cvs/gsasl/lib/cram-md5/server.c 2004/12/15 00:59:15 1.10
@@ -98,9 +98,11 @@
if (!password)
return GSASL_NO_PASSWORD;
- normkey = gsasl_stringprep_saslprep (password, NULL);
- if (normkey == NULL)
- return GSASL_SASLPREP_ERROR;
+ /* FIXME: Use SASLprep here? Treat string as storage string?
+ Specification is unclear. */
+ res = gsasl_saslprep (password, 0, &normkey, NULL);
+ if (res != GSASL_OK)
+ return res;
cram_md5_digest (challenge, strlen (challenge),
normkey, strlen (normkey), hash);