~ubuntu-branches/ubuntu/gutsy/cyrus-sasl2/gutsy-201105300151

« back to all changes in this revision

Viewing changes to man/sasl_getsecret_t.3

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2006-11-27 12:59:40 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061127125940-na3q3g3tkydvyvgl
Tags: 2.1.22.dfsg1-4ubuntu1
* Merge from debian unstable, remaining changes:
  - remove stop links from rc0 and rc6
  - build against db4.3 instead of 4.2
  - build against heimdal-dev instead of libkrb5-dev
  - depend on, don't recommend, modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_getsecret_t "10 July 2001" SASL "SASL man pages"
 
42
.SH NAME
 
43
sasl_getsecret_t \- The SASL callback for secrets (passwords)
 
44
 
 
45
 
 
46
.SH SYNOPSIS
 
47
.nf
 
48
.B #include <sasl/sasl.h>
 
49
 
 
50
.sp
 
51
.BI "int sasl_getsecret_t(sasl_conn_t " *conn ", "
 
52
.BI "                     void " *context ", "
 
53
.BI "                     int " id ", "
 
54
.BI "                     sasl_secret_t ** " psecret ")";
 
55
 
 
56
.fi
 
57
.SH DESCRIPTION
 
58
 
 
59
.B sasl_getsecret_t
 
60
is used to retrieve the secret from the application. A sasl_secret_t should be allocated to length sizeof(sasl_secret_t)+<length of secret>. It has two fields
 
61
.I len
 
62
which is the length of the secret in bytes and
 
63
.I data
 
64
which contains the secret itself (does not need to be null terminated).
 
65
.PP
 
66
 
 
67
.SH "RETURN VALUE"
 
68
 
 
69
SASL callback functions should return SASL return codes. See sasl.h for a complete list. SASL_OK indicates success.
 
70
 
 
71
.SH "CONFORMING TO"
 
72
RFC 2222
 
73
.SH "SEE ALSO"
 
74
sasl(3), sasl_callbacks(3), sasl_errors(3)
 
 
b'\\ No newline at end of file'