gsk_attribute_set_numeric_value()--Set numeric information for a secure session or an SSL environment


  Syntax

 #include <gskssl.h>

 int gsk_attribute_set_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_set_numeric_value() function is used to set specific numeric information for a secure session or an SSL environment.


Parameters

my_gsk_handle  (Input) 
One of the following handles:
numID  (Input) 
One of the following operations:


numValue  (Input) 
An integer value to be updated for the specified numID.

Authorities

No authorization is required.


Return Value

gsk_attribute_set_numeric_value() returns an integer. Possible values are:

[GSK_OK]

gsk_attribute_set_numeric_value() was successful.

[GSK_INVALID_STATE]

One of the following occurred:


[GSK_ATTRIBUTE_INVALID_ID]

The numID specified was not valid.

[GSK_ATTRIBUTE_INVALID_NUMERIC_VALUE]

The numValue specified was not valid.

[GSK_INVALID_HANDLE]

A handle was specified that was 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_set_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 set in the SSL environment after gsk_environment_open() and before gsk_environment_init(). They are used as defaults for subsequent secure sessions:


  2. The following GSK_NUM_ID values may be set for each individual secure session after gsk_secure_soc_open() and before gsk_secure_soc_init(). These values will override values set in the SSL environment:


  3. The following GSK_NUM_ID values are currently not supported in the IBM® i implementation:
  4. The GSK_FD value is a socket descriptor that must have an address family of AF_INET or AF_INET6 and a socket type of SOCK_STREAM.

  5. 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