System i: Programming Secure Sockets APIs - IBM
System i: Programming Secure Sockets APIs - IBM
System i: Programming Secure Sockets APIs - IBM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Return Value<br />
gsk_attribute_get_numeric_value() returns an integer. Possible values are:<br />
[GSK_OK]<br />
gsk_attribute_get_numeric_value() was successful.<br />
[GSK_ATTRIBUTE_INVALID_ID]<br />
The specified numID was not valid.<br />
[GSK_INVALID_HANDLE]<br />
The handle specified was not valid.<br />
[GSK_OS400_ERROR_INVALID_POINTER]<br />
The numValue pointer is not valid.<br />
[GSK_ERROR_UNSUPPORTED]<br />
The numID is currently not supported.<br />
[GSK_ERROR_IO]<br />
An error occurred in SSL processing, check the errno value.<br />
Error Conditions<br />
When the gsk_attribute_get_numeric_value() API fails with return code [GSK_ERROR_IO], errno can be<br />
set to:<br />
[EINTR]<br />
Interrupted function call.<br />
[EDEADLK]<br />
Resource deadlock avoided.<br />
[ETERM]<br />
Operation terminated.<br />
If an errno is returned that is not in this list, look in “Errno Values for UNIX-Type Functions” on page 103<br />
for a description of the errno.<br />
Usage Notes<br />
1. The following GSK_NUM_ID values may be retrieved from the SSL environment after<br />
gsk_environment_open():<br />
v GSK_V2_SESSION_TIMEOUT<br />
v GSK_V3_SESSION_TIMEOUT<br />
v GSK_HANDSHAKE_TIMEOUT<br />
v GSK_OS400_READ_TIMEOUT<br />
2. The following GSK_NUM_ID value may be retrieved from the SSL environment after<br />
gsk_environment_init().<br />
v GSK_CERTIFICATE_VALIDATION_CODE - Will return the certificate validation return code for<br />
the local certificate.<br />
3. The following GSK_NUM_ID value may be retrieved from each individual secure session after<br />
gsk_secure_soc_init().<br />
v GSK_CERTIFICATE_VALIDATION_CODE - Will return the certificate validation return code for<br />
the peer’s certificate.<br />
4. The following GSK_NUM_ID values may be retrieved from each individual secure session after<br />
gsk_secure_soc_open().<br />
<strong>Secure</strong> <strong>Sockets</strong> <strong>APIs</strong> 15