NAME
sasldecode - Decode data received
SYNOPSIS
##iinncclluuddee <
iinntt ssaassllddeeccooddee((ssaassllccoonnnntt *conn,, ccoonnsstt cchhaarr ** input,, uunnssiiggnneedd inputlen,, ccoonnsstt cchhaarr **** output,, uunnssiiggnneedd ** outputlen));;> DESCRIPTION
ssaassllddeeccooddee decodes data received. After succesful authentication this function should be called on all data received. It decodes the data from encrypted or signed form to plain data. If there was no security layer negotiated the output is identical to the input. output contains the decoded data and is allocated/freed by the library. One should not to give sasldecode more data than the negotiated maxbufsize (see saslgetprop). Note that sasldecode can succeed and outputlen can be zero. If this is the case simply wait for more data and call sasldecode again. RREETTUURRNN VVAALLUUEE Returns SASLOK on success. See saslerrors(3) for meanings of other return codes. CCOONNFFOORRMMIINNGG TTOO RFC 2222SEE ALSO
sasl(3), saslerrors(3), saslencode(3) SASL man pages SASL sasldecode(10 July 2001)