z/OS Cryptographic Services System SSL Programming
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


gsk_get_directory_enum()

z/OS Cryptographic Services System SSL Programming
SC14-7495-00

Gets an enumerated value from an LDAP directory.

Format

#include <gskcms.h>

gsk_status gsk_get_directory_enum (
                                gsk_handle                        directory_handle,
                                GSKCMS_DIRECTORY_ENUM_ID          enum_id,
                                GSKCMS_DIRECTORY_ENUM_VALUE *     enum_value)

Parameters

directory_handle
Specifies an LDAP directory handle returned by gsk_open_directory().
enum_id
Specifies the directory enumeration identifier.
enum_value
Specifies the directory enumeration value.

Results

The function return value will be 0 (GSK_OK) if no error is detected. Otherwise, it will be one of the return codes listed in the gskcms.h include file. These are some possible errors:

[CMSERR_ATTRIBUTE_INVALID_ID]
The enumeration identifier is not valid or cannot be used with the specified handle.
[CMSERR_ATTRIBUTE_INVALID_ENUMERATION]
The enumeration value is not valid or cannot be used with the specified enumeration ID.
[CMSERR_BAD_HANDLE]
The handle is not valid.

Usage

The gsk_get_directory_enum() routine returns an enumerated value for an LDAP directory.

These enumeration identifiers are supported:

GSKCMS_CRL_SECURITY_LEVEL
Returns the level of security set for the LDAP directory when contact is attempted between the application and an LDAP server that may contain a Certificate Revocation List (CRL).
One of three possible settings for GSKCMS_CRL_SECURITY_LEVEL will be returned:
  • GSKCMS_CRL_SECURITY_LEVEL_LOW - Certificate validation will not fail if the LDAP server cannot be contacted.
  • GSKCMS_CRL_SECURITY_LEVEL_MEDIUM - Certificate validation requires the LDAP server to be contactable, but does not require a CRL to be defined. This is the default setting.
  • GSKCMS_CRL_SECURITY_LEVEL_HIGH - Certificate validation requires the LDAP server to be contactable, and a CRL to be defined.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014