help-gsasl
[Top][All Lists]
Advanced

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

Re: SCRAM-SHA-1 support in GSASL


From: Lothar May
Subject: Re: SCRAM-SHA-1 support in GSASL
Date: Mon, 22 Mar 2010 16:48:25 +0100

Hi,

2009/11/6 Simon Josefsson <address@hidden>:
> I have now checked that gsasl built from git sources build under MS VS
> for me.  I had to apply several other changes.  I also disable all the
> obsolete GNU SASL APIs, I hope nobody were using those when building as
> a VS project.

Great, thanks! I've also updated to the latest version of gsasl. Is
SCRAM compatible to the first release in 1.2?

I've been very busy lately but now I went back to finishing our next
release. There is still some problem I don't quite understand:
If the user name contains utf8 characters, it is rejected by gsasl. I
have no idea why this is the case. The error code is
GSASL_SASLPREP_ERROR as far as I recall. I also tried, without
success, to prepare the string separately. Currently I hack around
this issue by converting all strings to base64 first, like this:

                char *base64User = NULL;
                gsasl_base64_to(userName.c_str(), userName.length(), 
&base64User, NULL);
                gsasl_property_set(m_authSession, GSASL_AUTHID, base64User);
                gsasl_free(base64User);

Oh well... Does anyone know how I can use a user name containing utf8
characters without prior conversion?

Thanks,
Lothar




reply via email to

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