Re: return value from sasl_client_start()

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


On 03/10/17 09:35 -0800, Ted Yu wrote:
I use the following code:

 do {
   rc = sasl_client_start(sconn_, /* the same context from above */
       mechlist, /* the list of mechanisms
    from the server */
       NULL, /* filled in if an
    interaction is needed */
       &out, /* filled in on success */
       &outlen, /* filled in on success */
 } while (rc == SASL_INTERACT); /* the mechanism may ask us to fill
 in things many times. result is SASL_CONTINUE on success */

 if (rc != SASL_CONTINUE) {
   LOG(FATAL)<< "Cannot start client ("<< rc << ") ";
   return false;

In one run, rc was SASL_OK.

Can someone confirm whether SASL_OK meant that the client didn't actually
start ?


See the "Basic client model" section in includes/sasl.h, and review the
documentation under doc/, and the examples under sample/ in the source

Dan White

[Index of Archives]     [Info Cyrus]     [Squirrel Mail]     [Linux Media]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux