man krb5_config_get_bool_default (Fonctions bibliothèques) - krb5_config_file_free ,

NAME

krb5_config_file_free ,krb5_config_free_strings ,krb5_config_get ,krb5_config_get_bool ,krb5_config_get_bool_default ,krb5_config_get_int ,krb5_config_get_int_default ,krb5_config_get_list ,krb5_config_get_next ,krb5_config_get_string ,krb5_config_get_string_default ,krb5_config_get_strings ,krb5_config_get_time ,krb5_config_get_time_default ,krb5_config_parse_file ,krb5_config_parse_file_multi ,krb5_config_vget ,krb5_config_vget_bool ,krb5_config_vget_bool_default ,krb5_config_vget_int ,krb5_config_vget_int_default ,krb5_config_vget_list ,krb5_config_vget_next ,krb5_config_vget_string ,krb5_config_vget_string_default ,krb5_config_vget_strings ,krb5_config_vget_time ,krb5_config_vget_time_default - get configuration value

LIBRARY

Kerberos 5 Library (libkrb5, -lkrb5)

SYNOPSIS

krb5_context contextkrb5_config_section *schar **stringskrb5_context contextconst krb5_config_section *cint type...krb5_context contextkrb5_config_section *c...krb5_context contextkrb5_config_section *ckrb5_boolean def_value...krb5_context contextkrb5_config_section *c...krb5_context contextkrb5_config_section *cint def_value...krb5_context contextkrb5_config_section *c...krb5_context contextkrb5_config_section *cconst char *def_value...krb5_context contextconst krb5_config_section *c...krb5_context contextkrb5_config_section *c...krb5_context contextkrb5_config_section *cint def_value...krb5_context contextconst char *fnamekrb5_config_section **reskrb5_context contextconst char *fnamekrb5_config_section **reskrb5_context contextconst krb5_config_section *cint typeva_list argskrb5_context contextconst krb5_config_section *cva_list argskrb5_context contextconst krb5_config_section *ckrb5_boolean def_valueva_list argskrb5_context contextconst krb5_config_section *cva_list argskrb5_context contextconst krb5_config_section *cint def_valueva_list argskrb5_context contextconst krb5_config_section *cva_list argskrb5_context contextconst krb5_config_section *cconst krb5_config_binding **pointerint typeva_list argskrb5_context contextconst krb5_config_section *cva_list argskrb5_context contextconst krb5_config_section *cconst char *def_valueva_list argskrb5_context contextconst krb5_config_section *cva_list argskrb5_context contextconst krb5_config_section *cva_list argskrb5_context contextconst krb5_config_section *cint def_valueva_list args

DESCRIPTION

These functions get values from the krb5.conf() configuration file, or another configuration database specified by the c parameter.

The variable arguments should be a list of strings naming each subsection to look for. For example: krb5_config_get_bool_default(context, NULL, FALSE, "libdefaults", "log_utc", NULL);

gets the boolean value for the log_utc option, defaulting to FALSE .

krb5_config_get_bool_default will convert the option value to a boolean value, where and any non-zero number means TRUE , and any other value FALSE .

krb5_config_get_int_default will convert the value to an integer.

krb5_config_get_time_default will convert the value to a period of time (not a time stamp) in seconds, so the string will be converted to 1209600 (2 * 7 * 24 * 60 * 60).

krb5_config_free_strings free strings as returned by krb5_config_get_strings and krb5_config_vget_strings .

krb5_config_file_free free the result of krb5_config_parse_file and krb5_config_parse_file_multi .

SEE ALSO

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.