source: trunk/third/cyrus-sasl/man/sasl_decode.3 @ 17977

Revision 17977, 2.9 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17976, which included commits to RCS files with non-trunk default branches.
Line 
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2001 Carnegie Mellon University.  All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\"
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\"
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in
14.\"    the documentation and/or other materials provided with the
15.\"    distribution.
16.\"
17.\" 3. The name "Carnegie Mellon University" must not be used to
18.\"    endorse or promote products derived from this software without
19.\"    prior written permission. For permission or any other legal
20.\"    details, please contact 
21.\"      Office of Technology Transfer
22.\"      Carnegie Mellon University
23.\"      5000 Forbes Avenue
24.\"      Pittsburgh, PA  15213-3890
25.\"      (412) 268-4387, fax: (412) 268-7395
26.\"      tech-transfer@andrew.cmu.edu
27.\"
28.\" 4. Redistributions of any form whatsoever must retain the following
29.\"    acknowledgment:
30.\"    "This product includes software developed by Computing Services
31.\"     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
32.\"
33.\" CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
34.\" THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
35.\" AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
36.\" FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
37.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
38.\" AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
39.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
40.\"
41.TH sasl_decode "10 July 2001" SASL "SASL man pages"
42.SH NAME
43sasl_decode \- Decode data received
44
45
46.SH SYNOPSIS
47.nf
48.B #include <sasl/sasl.h>
49
50.sp
51.BI "int sasl_decode(sasl_conn_t " *conn ", "
52.BI "                const char * " input ", "
53.BI "                unsigned " inputlen ", "
54.BI "                const char ** " output ", "
55.BI "                unsigned * " outputlen ");" 
56
57.fi
58.SH DESCRIPTION
59
60.B sasl_decode
61decodes data received. After succesful authentication this function
62should be called on all data received. It decodes the data from
63encrypted or signed form to plain data. If there was no security layer
64negotiated the output is identical to the input.
65
66.I output
67contains the decoded data and is allocated/freed by the library.
68
69One should not to give sasl_decode more data than the negotiated maxbufsize (see sasl_getprop).
70
71Note that sasl_decode can succeed and outputlen can be zero. If this
72is the case simply wait for more data and call sasl_decode again.
73
74.PP
75
76.SH "RETURN VALUE"
77Returns SASL_OK on success. See sasl_errors(3) for meanings of other return
78codes.
79
80.SH "CONFORMING TO"
81RFC 2222
82.SH "SEE ALSO"
83sasl(3), sasl_errors(3), sasl_encode(3)
Note: See TracBrowser for help on using the repository browser.