gsk_attribute_get_numeric_value()--Get numeric information about a secure session or an SSL environment


  Syntax

 #include <gskssl.h>

 int gsk_attribute_get_numeric_value(gsk_handle my_gsk_handle,
                                     GSK_NUM_ID numID,
                                     int *numValue);

  Service Program Name: QSYS/QSOSSLSR

  Default Public Authority: *USE

  Threadsafe: Yes

The gsk_attribute_get_numeric_value() function is used to obtain specific numeric information about a secure session or an SSL environment.


Parameters

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


numValue  (Output) 
A pointer to an integer containing the value of the requested information.

Authorities

No authorization is required.


Return Value

gsk_attribute_get_numeric_value() returns an integer. Possible values are:

[GSK_OK]

gsk_attribute_get_numeric_value() was successful.

[GSK_ATTRIBUTE_INVALID_ID]

The specified numID was not valid.

[GSK_INVALID_HANDLE]

The handle specified was not valid.

[GSK_OS400_ERROR_INVALID_POINTER]

The numValue pointer is not valid.

[GSK_ERROR_UNSUPPORTED]

The numID is currently not supported.

[GSK_ERROR_IO]

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


Error Conditions

When the gsk_attribute_get_numeric_value() 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_NUM_ID values may be retrieved from the SSL environment after gsk_environment_open():
  2. The following GSK_NUM_ID value may be retrieved from the SSL environment after gsk_environment_init()
  3. The following GSK_NUM_ID value may be retrieved from each individual secure session after gsk_secure_soc_init().
  4. The following GSK_NUM_ID values may be retrieved from each individual secure session after gsk_secure_soc_open().
  5. The following GSK_NUM_ID values are currently not supported in the IBM® i implementation:

  6. Start of changeThe following information should be considered when using GSK_TLS_CBCPROTECTION_METHOD:

    End of change


Related Information



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