22.10.2013 Views

System i: Programming Secure Sockets APIs - IBM

System i: Programming Secure Sockets APIs - IBM

System i: Programming Secure Sockets APIs - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

attributes. In most cases, as result of this operation, a full SSL handshake will be performed for<br />

the next SSL handshake request between both end points.<br />

Authorities<br />

No authorization is required.<br />

Return Value<br />

gsk_secure_soc_misc() returns an integer. Possible values are:<br />

[GSK_OK]<br />

gsk_secure_soc_misc() was successful.<br />

[GSK_INVALID_HANDLE]<br />

The handle specified was not valid.<br />

[GSK_INVALID_STATE]<br />

A gsk_secure_soc_init() has not been issued with this handle.<br />

[GSK_ERROR_NOT_SSLV3]<br />

SSLV3 or TLSV1 is required for this function.<br />

[GSK_MISC_INVALID_ID]<br />

The value specified for miscID is not valid.<br />

[GSK_AS400_ERROR_INVALID_POINTER]<br />

The my_session_handle pointer is not valid.<br />

[GSK_INTERNAL_ERROR]<br />

An unexpected error occurred during SSL processing.<br />

[GSK_ERROR_IO]<br />

An error occurred in SSL processing; check the errno value.<br />

[GSK_KEYRING_OPEN_ERROR]<br />

Certificate store file could not be opened.<br />

[GSK_ERROR_BAD_KEYFILE_LABEL]<br />

The specified certificate store label is not valid.<br />

[GSK_ERROR_BAD_V3_CIPHER]<br />

An SSLV3 or TLSV1 cipher suite was specified that is not valid.<br />

[GSK_ERROR_BAD_V2_CIPHER]<br />

An SSLV2 cipher suite was specified that is not valid.<br />

[GSK_ERROR_NO_CIPHERS]<br />

No ciphers available or no ciphers were specified.<br />

[GSK_ERROR_NO_CERTIFICATE]<br />

No certificate is available for SSL processing.<br />

[GSK_ERROR_BAD_CERTIFICATE]<br />

The certificate is bad.<br />

[SSL_ERROR_NOT_TRUSTED_ROOT]<br />

42 <strong>System</strong> i: <strong>Programming</strong> <strong>Secure</strong> <strong>Sockets</strong> <strong>APIs</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!