gsk_attribute_get_enum()--Get enumerated information about a secure session or an SSL environment


  Syntax

 #include <gskssl.h>

 int gsk_attribute_get_enum(gsk_handle my_gsk_handle,
                            GSK_ENUM_ID enumID,
                            GSK_ENUM_VALUE *enumValue);  
       
  Service Program Name: QSYS/QSOSSLSR

  Default Public Authority: *USE

  Threadsafe: Yes

The gsk_attribute_get_enum() function is used to obtain values for specific enumerated data for a secure session or an SSL environment.


Parameters

my_gsk_handle  (Input) 
Indicates one of the following handles:
enumID  (Input) 
The following values can be used to retrieve information about the secure session or SSL environment that is either defaulted or explicitly set:



enumValue  (Output) 
Specifies a pointer to an integer in which to place the value of the requested information.

Authorities

No authorization is required.


Return Value

gsk_attribute_get_enum() returns an integer. Possible values are:

[GSK_OK]
gsk_attribute_get_enum() was successful.

[GSK_ATTRIBUTE_INVALID_ID]
The specified enumID was not valid.

[GSK_INVALID_HANDLE]
The specified handle was not valid.

[GSK_AS400_ERROR_INVALID_POINTER]
The enumValue pointer is not valid.

[GSK_ERROR_UNSUPPORTED]
The enumID is currently not supported.

[GSK_ERROR_IO]
An error occurred in SSL processing, check the errno value.

Error Conditions

When the gsk_attribute_get_enum() API fails with return code [GSK_ERROR_IO], errno can be set to:

[EINTR]
Interrupted function call.

[EDEADLK]
Resource deadlock avoided.

[ETERM]
Operation terminated.

If an errno is returned that is not in this list, look in Errno Values for UNIX®-Type Functions for a description of the errno.


Usage Notes

  1. The following GSK_ENUM_ID values may be retrieved from the SSL environment after gsk_environment_open().
  2. The following GSK_ENUM_ID values may be retrieved from the secure session after gsk_secure_soc_open().
  3. The following GSK_ENUM_ID values are defaulted after gsk_secure_soc_open() and will be set for the secure session after gsk_secure_soc_init() or gsk_secure_soc_misc().
  4. Start of change When GSK_OS400_APPLICATION_ID is set, the settings of some of the SSL environment attributes will be determined by the corresponding value in the Application ID definition in Digital Certificate Manager (DCM). These are the enum attributes that can be overwritten by DCM during the call to gsk_environment_init(): End of change



Related Information



API introduced: V5R1
Top | UNIX-Type APIs | APIs by category