System i: Programming Secure Sockets APIs - IBM
System i: Programming Secure Sockets APIs - IBM
System i: Programming Secure Sockets APIs - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
[GSK_INSUFFICIENT_STORAGE]<br />
Not able to allocate storage for the requested operation.<br />
[GSK_ERROR_IO]<br />
An error occurred in SSL processing, check the errno value.<br />
Error Conditions<br />
When the gsk_attribute_get_cert_info() API fails with return code [GSK_ERROR_IO], errno can be 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. After gsk_attribute_get_cert_info() returns with a GSK_OK return value, certDataElem points to an<br />
array of structures of type gsk_cert_data_elem. The following structure is the gsk_cert_data_elem<br />
structure:<br />
typedef struct gsk_cert_data_elem_t<br />
{<br />
GSK_CERT_DATA_ID cert_data_id;<br />
char *cert_data_p;<br />
int cert_data_l;<br />
} gsk_cert_data_elem;<br />
Each element consists of the following fields:<br />
v cert_data_id is the identifier for each element of the certificate. The following are the valid<br />
identifiers:<br />
– CERT_BODY_DER (600)<br />
– CERT_BODY_BASE64 (601)<br />
– CERT_SERIAL_NUMBER (602)<br />
– CERT_COMMON_NAME (610)<br />
– CERT_LOCALITY (611)<br />
– CERT_STATE_OR_PROVINCE (612)<br />
– CERT_COUNTRY (613)<br />
– CERT_ORG (614)<br />
– CERT_ORG_UNIT (615)<br />
– CERT_DN_PRINTABLE (616)<br />
– CERT_DN_DER (617)<br />
– CERT_POSTAL_CODE (618)<br />
– CERT_EMAIL (619)<br />
– CERT_ISSUER_COMMON_NAME (650)<br />
– CERT_ISSUER_LOCALITY (651)<br />
– CERT_ISSUER_STATE_OR_PROVINCE (652)<br />
– CERT_ISSUER_COUNTRY (653)<br />
8 <strong>System</strong> i: <strong>Programming</strong> <strong>Secure</strong> <strong>Sockets</strong> <strong>APIs</strong>