return value from sasl_client_start()

Ted Yu yuzhihong at gmail.com
Fri Mar 10 12:35:25 EST 2017


Hi,
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 */
        &mechusing);
  } 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 ?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/attachments/20170310/986e4b60/attachment.html>


More information about the Cyrus-sasl mailing list