def outcome(self): """ Retrieve the outcome of SASL negotiation. :rtype: * ``None`` if no negotiation has taken place. * Otherwise the outcome of the negotiation. """ outcome = pn_sasl_outcome(self._sasl) if outcome == PN_SASL_NONE: return None else: return outcome
def outcome(self): outcome = pn_sasl_outcome(self._sasl) if outcome == PN_SASL_NONE: return None else: return outcome