HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_appdefault_boolean — Check Boolean values in appdefault

 » Table of Contents

 » Glossary

 » Index

C Prototype

void krb5_appdefault_boolean(
krb5_context context,
const char *appname,
const krb5_data *realm,
const char *option,
int default_value
int *ret_value );

Arguments

context (input) 

The context structure.

appname (input)  

A pointer to the application name.

realm (input) 

A pointer to the Kerberos realm name.

option (input) 

A pointer to the option to be checked.

default_value (input) 

A default Boolean value to return if no match is found.

ret_value (output) 

A pointer to the returned Boolean value.

Description

This routine checks the [appdefaults] section of the krb5.conf file. The ret_value argument returns the Boolean value of the particular option passed in the option argument. The appname argument provides the application name (for example, Telnet) whose option is being checked.

Use krb5_appdefault_string for checking string values in the [appdefaults] section of krb5.conf.

Return Values

None.