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.
API introduced: V5R1<br />
Top | UNIX-Type <strong>APIs</strong> | <strong>APIs</strong> by category<br />
gsk_attribute_get_numeric_value()—Get numeric information about a<br />
secure session or an SSL environment<br />
Syntax<br />
#include <br />
int gsk_attribute_get_numeric_value(gsk_handle my_gsk_handle,<br />
GSK_NUM_ID numID,<br />
int *numValue);<br />
Service Program Name: QSYS/QSOSSLSR<br />
Default Public Authority: *USE<br />
Threadsafe: Yes<br />
The gsk_attribute_get_numeric_value() function is used to obtain specific numeric information about a<br />
secure session or an SSL environment.<br />
Parameters<br />
my_gsk_handle (Input)<br />
Indicates one of the following handles:<br />
v The handle for the secure session. (my_session_handle)<br />
v The handle for the SSL environment. (my_env_handle)<br />
numID (Input)<br />
The following values can be used to retrieve information about the secure session or the SSL<br />
environment that is either defaulted or explicitly set:<br />
v GSK_FD (300) - numValue is a socket descriptor to be used for this secure session.<br />
v GSK_V2_SESSION_TIMEOUT (301) - SSL Version 2 session time-out for the environment.<br />
numValue must be in the range 0-100 seconds.<br />
v GSK_V3_SESSION_TIMEOUT (302) - SSL Version 3 and TLS version 1 session time-out for<br />
the environment. numValue must be in the range 0-86400 seconds.<br />
v GSK_OS400_READ_TIMEOUT (6993) - The receive time-out for the secure session or the SSL<br />
environment.<br />
v GSK_CERTIFICATE_VALIDATION_CODE (6996) - The certificate validation return code for<br />
the local or peer certificate.<br />
v GSK_HANDSHAKE_TIMEOUT (6998) - SSL handshake time-out for the secure session or the<br />
SSL environment.<br />
numValue (Output)<br />
A pointer to an integer containing the value of the requested information.<br />
Authorities<br />
No authorization is required.<br />
14 <strong>System</strong> i: <strong>Programming</strong> <strong>Secure</strong> <strong>Sockets</strong> <strong>APIs</strong>