document more in doxygen

This commit is contained in:
Love Hornquist Astrand
2009-08-18 18:59:42 +02:00
parent 8286ff8ec4
commit 92a6774227
5 changed files with 1 additions and 427 deletions

View File

@@ -215,7 +215,6 @@ man_MANS = \
krb5_compare_creds.3 \
krb5_create_checksum.3 \
krb5_creds.3 \
krb5_crypto_init.3 \
krb5_digest.3 \
krb5_eai_to_heim_errno.3 \
krb5_encrypt.3 \

View File

@@ -187,7 +187,7 @@
* @subsection intro_krb5_crypto Kerberos crypto
*
* Heimdal includes a implementation of the Kerberos crypto framework,
* all crypto operations.
* all crypto operations. To create a crypto context call krb5_crypto_init().
*
* See also module @ref krb5_crypto .
*

View File

@@ -1,302 +0,0 @@
.\" Copyright (c) 2000 - 2007 Kungliga Tekniska Högskolan
.\" (Royal Institute of Technology, Stockholm, Sweden).
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\"
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\"
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" 3. Neither the name of the Institute nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"
.\" $Id$
.\"
.Dd August 10, 2007
.Dt KRB5_CONFIG_GET 3
.Os HEIMDAL
.Sh NAME
.Nm krb5_config_file_free ,
.Nm krb5_config_free_strings ,
.Nm krb5_config_get ,
.Nm krb5_config_get_bool ,
.Nm krb5_config_get_bool_default ,
.Nm krb5_config_get_int ,
.Nm krb5_config_get_int_default ,
.Nm krb5_config_get_list ,
.Nm krb5_config_get_next ,
.Nm krb5_config_get_string ,
.Nm krb5_config_get_string_default ,
.Nm krb5_config_get_strings ,
.Nm krb5_config_get_time ,
.Nm krb5_config_get_time_default ,
.Nm krb5_config_parse_file ,
.Nm krb5_config_parse_file_multi ,
.Nm krb5_config_vget ,
.Nm krb5_config_vget_bool ,
.Nm krb5_config_vget_bool_default ,
.Nm krb5_config_vget_int ,
.Nm krb5_config_vget_int_default ,
.Nm krb5_config_vget_list ,
.Nm krb5_config_vget_next ,
.Nm krb5_config_vget_string ,
.Nm krb5_config_vget_string_default ,
.Nm krb5_config_vget_strings ,
.Nm krb5_config_vget_time ,
.Nm krb5_config_vget_time_default
.Nd get configuration value
.Sh LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
.Sh SYNOPSIS
.In krb5.h
.Ft krb5_error_code
.Fo krb5_config_file_free
.Fa "krb5_context context"
.Fa "krb5_config_section *s"
.Fc
.Ft void
.Fo krb5_config_free_strings
.Fa "char **strings"
.Fc
.Ft "const void *"
.Fo krb5_config_get
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "int type"
.Fa "..."
.Fc
.Ft krb5_boolean
.Fo krb5_config_get_bool
.Fa "krb5_context context"
.Fa "krb5_config_section *c"
.Fa "..."
.Fc
.Ft krb5_boolean
.Fo krb5_config_get_bool_default
.Fa "krb5_context context"
.Fa "krb5_config_section *c"
.Fa "krb5_boolean def_value"
.Fa "..."
.Fc
.Ft int
.Fo krb5_config_get_int
.Fa "krb5_context context"
.Fa "krb5_config_section *c"
.Fa "..."
.Fc
.Ft int
.Fo krb5_config_get_int_default
.Fa "krb5_context context"
.Fa "krb5_config_section *c"
.Fa "int def_value"
.Fa "..."
.Fc
.Ft const char*
.Fo krb5_config_get_string
.Fa "krb5_context context"
.Fa "krb5_config_section *c"
.Fa "..."
.Fc
.Ft const char*
.Fo krb5_config_get_string_default
.Fa "krb5_context context"
.Fa "krb5_config_section *c"
.Fa "const char *def_value"
.Fa "..."
.Fc
.Ft "char**"
.Fo krb5_config_get_strings
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "..."
.Fc
.Ft int
.Fo krb5_config_get_time
.Fa "krb5_context context"
.Fa "krb5_config_section *c"
.Fa "..."
.Fc
.Ft int
.Fo krb5_config_get_time_default
.Fa "krb5_context context"
.Fa "krb5_config_section *c"
.Fa "int def_value"
.Fa "..."
.Fc
.Ft krb5_error_code
.Fo krb5_config_parse_file
.Fa "krb5_context context"
.Fa "const char *fname"
.Fa "krb5_config_section **res"
.Fc
.Ft krb5_error_code
.Fo krb5_config_parse_file_multi
.Fa "krb5_context context"
.Fa "const char *fname"
.Fa "krb5_config_section **res"
.Fc
.Ft "const void *"
.Fo krb5_config_vget
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "int type"
.Fa "va_list args"
.Fc
.Ft krb5_boolean
.Fo krb5_config_vget_bool
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "va_list args"
.Fc
.Ft krb5_boolean
.Fo krb5_config_vget_bool_default
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "krb5_boolean def_value"
.Fa "va_list args"
.Fc
.Ft int
.Fo krb5_config_vget_int
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "va_list args"
.Fc
.Ft int
.Fo krb5_config_vget_int_default
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "int def_value"
.Fa "va_list args"
.Fc
.Ft "const krb5_config_binding *"
.Fo krb5_config_vget_list
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "va_list args"
.Fc
.Ft "const void *"
.Fo krb5_config_vget_next
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "const krb5_config_binding **pointer"
.Fa "int type"
.Fa "va_list args"
.Fc
.Ft "const char *"
.Fo krb5_config_vget_string
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "va_list args"
.Fc
.Ft "const char *"
.Fo krb5_config_vget_string_default
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "const char *def_value"
.Fa "va_list args"
.Fc
.Ft char **
.Fo krb5_config_vget_strings
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "va_list args"
.Fc
.Ft int
.Fo krb5_config_vget_time
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "va_list args"
.Fc
.Ft int
.Fo krb5_config_vget_time_default
.Fa "krb5_context context"
.Fa "const krb5_config_section *c"
.Fa "int def_value"
.Fa "va_list args"
.Fc
.Sh DESCRIPTION
These functions get values from the
.Xr krb5.conf 5
configuration file, or another configuration database specified by the
.Fa c
parameter.
.Pp
The variable arguments should be a list of strings naming each
subsection to look for. For example:
.Bd -literal -offset indent
krb5_config_get_bool_default(context, NULL, FALSE,
"libdefaults", "log_utc", NULL);
.Ed
.Pp
gets the boolean value for the
.Dv log_utc
option, defaulting to
.Dv FALSE .
.Pp
.Fn krb5_config_get_bool_default
will convert the option value to a boolean value, where
.Sq yes ,
.Sq true ,
and any non-zero number means
.Dv TRUE ,
and any other value
.Dv FALSE .
.Pp
.Fn krb5_config_get_int_default
will convert the value to an integer.
.Pp
.Fn krb5_config_get_time_default
will convert the value to a period of time (not a time stamp) in
seconds, so the string
.Sq 2 weeks
will be converted to
1209600 (2 * 7 * 24 * 60 * 60).
.Pp
.Fn krb5_config_get_string
returns a
.Ft "const char *"
to a string in the configuration database. The string may not be valid
after a reload of the configuration database
.\" or a call to .Fn krb5_config_set_string ,
so a caller should make a local copy if it needs to keep the string.
.Pp
.Fn krb5_config_free_strings
free
.Fa strings
as returned by
.Fn krb5_config_get_strings
and
.Fn krb5_config_vget_strings .
If the argument
.Fa strings
is a
.Dv NULL
pointer, no action occurs.
.Pp
.Sh SEE ALSO
.Xr krb5_appdefault 3 ,
.Xr krb5_init_context 3 ,
.Xr krb5.conf 5
.Sh BUGS
For the default functions, other than for the string case, there's no
way to tell whether there was a value specified or not.

View File

@@ -1,56 +0,0 @@
.\" Copyright (c) 2001 - 2003 Kungliga Tekniska Högskolan
.\" (Royal Institute of Technology, Stockholm, Sweden).
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\"
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\"
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" 3. Neither the name of the Institute nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $Id$
.\"
.Dd January 21, 2001
.Dt KRB5_CONTEXT 3
.Os HEIMDAL
.Sh NAME
.Nm krb5_context
.Nd krb5 state structure
.Sh LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
.Sh SYNOPSIS
.In krb5.h
.Sh DESCRIPTION
The
.Nm
structure is designed to hold all per thread state. All global
variables that are context specific are stored in this structure,
including default encryption types, credentials-cache (ticket file), and
default realms.
.Pp
The internals of the structure should never be accessed directly,
functions exist for extracting information.
.Sh SEE ALSO
.Xr krb5_init_context 3 ,
.Xr kerberos 8

View File

@@ -1,67 +0,0 @@
.\" Copyright (c) 1999 Kungliga Tekniska Högskolan
.\" (Royal Institute of Technology, Stockholm, Sweden).
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\"
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\"
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" 3. Neither the name of the Institute nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $Id$
.\"
.Dd April 7, 1999
.Dt NAME 3
.Os HEIMDAL
.Sh NAME
.Nm krb5_crypto_destroy ,
.Nm krb5_crypto_init
.Nd encryption support in krb5
.Sh LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5)
.Sh SYNOPSIS
.In krb5.h
.Ft krb5_error_code
.Fn krb5_crypto_init "krb5_context context" "krb5_keyblock *key" "krb5_enctype enctype" "krb5_crypto *crypto"
.Ft krb5_error_code
.Fn krb5_crypto_destroy "krb5_context context" "krb5_crypto crypto"
.Sh DESCRIPTION
Heimdal exports parts of the Kerberos crypto interface for applications.
.Pp
Each kerberos encrytion/checksum function takes a crypto context.
.Pp
To setup and destroy crypto contextes there are two functions
.Fn krb5_crypto_init
and
.Fn krb5_crypto_destroy .
The encryption type to use is taken from the key, but can be overridden
with the
.Fa enctype parameter .
This can be useful for encryptions types which is compatiable (DES for
example).
.\" .Sh EXAMPLE
.\" .Sh BUGS
.Sh SEE ALSO
.Xr krb5_create_checksum 3 ,
.Xr krb5_encrypt 3