[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/external
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/external |
Date: |
Tue, 21 Sep 2004 02:12:41 +0200 |
Update of /home/cvs/gsasl/lib/external
In directory dopio:/tmp/cvs-serv16066
Modified Files:
client.c
Log Message:
Support authorization identities.
--- /home/cvs/gsasl/lib/external/client.c 2004/09/18 17:01:48 1.2
+++ /home/cvs/gsasl/lib/external/client.c 2004/09/21 00:12:41 1.3
@@ -34,8 +34,21 @@
const char *input, size_t input_len,
char **output, size_t * output_len)
{
- *output = NULL;
- *output_len = 0;
+ const char *p;
+
+ p = gsasl_property_get (sctx, GSASL_CLIENT_AUTHZID);
+ if (p)
+ {
+ *output = strdup (p);
+ if (!*output)
+ return GSASL_MALLOC_ERROR;
+ *output_len = strlen (p);
+ }
+ else
+ {
+ *output = NULL;
+ *output_len = 0;
+ }
return GSASL_OK;
}
- CVS gsasl/lib/external, gsasl-commit, 2004/09/17
- CVS gsasl/lib/external, gsasl-commit, 2004/09/17
- CVS gsasl/lib/external, gsasl-commit, 2004/09/18
- CVS gsasl/lib/external, gsasl-commit, 2004/09/18
- CVS gsasl/lib/external, gsasl-commit, 2004/09/18
- CVS gsasl/lib/external, gsasl-commit, 2004/09/18
- CVS gsasl/lib/external,
gsasl-commit <=
- CVS gsasl/lib/external, gsasl-commit, 2004/09/20
- CVS gsasl/lib/external, gsasl-commit, 2004/09/20
- CVS gsasl/lib/external, gsasl-commit, 2004/09/20
- CVS gsasl/lib/external, gsasl-commit, 2004/09/23
- CVS gsasl/lib/external, gsasl-commit, 2004/09/23
- CVS gsasl/lib/external, gsasl-commit, 2004/09/23
- CVS gsasl/lib/external, gsasl-commit, 2004/09/23
- CVS gsasl/lib/external, gsasl-commit, 2004/09/24
- CVS gsasl/lib/external, gsasl-commit, 2004/09/26
- CVS gsasl/lib/external, gsasl-commit, 2004/09/30