[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 02:00:02 +0100 |
Update of /home/cvs/gsasl/lib/cram-md5
In directory dopio:/tmp/cvs-serv3119
Modified Files:
client.c
Log Message:
Update SASLprep API.
--- /home/cvs/gsasl/lib/cram-md5/client.c 2004/10/13 16:23:29 1.9
+++ /home/cvs/gsasl/lib/cram-md5/client.c 2004/12/15 01:00:02 1.10
@@ -46,6 +46,7 @@
const char *p;
size_t len;
char *tmp;
+ int rc;
if (input_len == 0)
{
@@ -58,9 +59,10 @@
if (!p)
return GSASL_NO_PASSWORD;
- tmp = gsasl_stringprep_saslprep (p, NULL);
- if (tmp == NULL)
- return GSASL_SASLPREP_ERROR;
+ /* XXX Use query strings here? Specification is unclear. */
+ rc = gsasl_saslprep (p, GSASL_ALLOW_UNASSIGNED, &tmp, NULL);
+ if (rc != GSASL_OK)
+ return rc;
cram_md5_digest (input, input_len, tmp, strlen (tmp), response);
@@ -70,9 +72,10 @@
if (!p)
return GSASL_NO_AUTHID;
- tmp = gsasl_stringprep_saslprep (p, NULL);
- if (tmp == NULL)
- return GSASL_SASLPREP_ERROR;
+ /* XXX Use query strings here? Specification is unclear. */
+ rc = gsasl_saslprep (p, GSASL_ALLOW_UNASSIGNED, &tmp, NULL);
+ if (rc != GSASL_OK)
+ return rc;
len = strlen (tmp);
- CVS gsasl/lib/cram-md5,
gsasl-commit <=