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.
Related Information . . . . . . . . . .40<br />
gsk_secure_soc_misc()—Perform miscellaneous<br />
functions for a secure session . . . . . . . .41<br />
Parameters . . . . . . . . . . . . .41<br />
Authorities . . . . . . . . . . . . .42<br />
Return Value . . . . . . . . . . . . .42<br />
Error Conditions . . . . . . . . . . . .43<br />
Usage Notes . . . . . . . . . . . . .43<br />
Error Messages . . . . . . . . . . . .44<br />
Related Information . . . . . . . . . .44<br />
gsk_secure_soc_open()—Get a handle for a secure<br />
session . . . . . . . . . . . . . . . .44<br />
Parameters . . . . . . . . . . . . .44<br />
Authorities . . . . . . . . . . . . .44<br />
Return Value . . . . . . . . . . . . .44<br />
Error Conditions . . . . . . . . . . . .45<br />
Usage Notes . . . . . . . . . . . . .45<br />
Error Messages . . . . . . . . . . . .45<br />
Related Information . . . . . . . . . .45<br />
gsk_secure_soc_read()—Receive data on a secure<br />
session . . . . . . . . . . . . . . . .46<br />
Parameters . . . . . . . . . . . . .46<br />
Authorities . . . . . . . . . . . . .46<br />
Return Value . . . . . . . . . . . . .46<br />
Error Conditions . . . . . . . . . . . .47<br />
Usage Notes . . . . . . . . . . . . .47<br />
Error Messages . . . . . . . . . . . .48<br />
Related Information . . . . . . . . . .48<br />
gsk_secure_soc_startInit()—Start asynchronous<br />
operation to negotiate a secure session . . . . .48<br />
Parameters . . . . . . . . . . . . .49<br />
Authorities . . . . . . . . . . . . .50<br />
Return Values . . . . . . . . . . . .50<br />
Error Conditions . . . . . . . . . . . .50<br />
Error Messages . . . . . . . . . . . .51<br />
Related Information . . . . . . . . . .51<br />
gsk_secure_soc_startRecv()—Start asynchronous<br />
receive operation on a secure session . . . . . .52<br />
Parameters . . . . . . . . . . . . .52<br />
Authorities . . . . . . . . . . . . .53<br />
Return Values . . . . . . . . . . . .53<br />
Error Conditions . . . . . . . . . . . .54<br />
Error Messages . . . . . . . . . . . .55<br />
Related Information . . . . . . . . . .55<br />
gsk_secure_soc_startSend()—Start asynchronous<br />
send operation on a secure session . . . . . .56<br />
Parameters . . . . . . . . . . . . .56<br />
Authorities . . . . . . . . . . . . .58<br />
Return Values . . . . . . . . . . . .58<br />
Error Conditions . . . . . . . . . . . .58<br />
Error Messages . . . . . . . . . . . .59<br />
Usage Notes . . . . . . . . . . . . .59<br />
Related Information . . . . . . . . . .60<br />
gsk_secure_soc_write()—Send data on a secure<br />
session . . . . . . . . . . . . . . . .60<br />
Parameters . . . . . . . . . . . . .60<br />
Authorities . . . . . . . . . . . . .61<br />
Return Value . . . . . . . . . . . . .61<br />
Error Conditions . . . . . . . . . . . .61<br />
Usage Notes . . . . . . . . . . . . .62<br />
Error Messages . . . . . . . . . . . .62<br />
iv <strong>System</strong> i: <strong>Programming</strong> <strong>Secure</strong> <strong>Sockets</strong> <strong>APIs</strong><br />
Related Information . . . . . . . . . .62<br />
gsk_strerror()—Retrieve GSKit runtime error<br />
message . . . . . . . . . . . . . . .62<br />
Parameters . . . . . . . . . . . . .63<br />
Authorities . . . . . . . . . . . . .63<br />
Return Value . . . . . . . . . . . . .63<br />
Usage Notes . . . . . . . . . . . . .63<br />
Related Information . . . . . . . . . .63<br />
Example . . . . . . . . . . . . . .64<br />
i5/OS <strong>Secure</strong> <strong>Sockets</strong> Layer (SSL_) <strong>APIs</strong> . . . . .64<br />
QlgSSL_Init()—Initialize the Current Job for SSL<br />
(using NLS-enabled path name) . . . . . . .65<br />
Parameters . . . . . . . . . . . . .65<br />
Authorities . . . . . . . . . . . . .67<br />
Return Value . . . . . . . . . . . . .67<br />
Error Conditions . . . . . . . . . . . .67<br />
Error Messages . . . . . . . . . . . .68<br />
Usage Notes . . . . . . . . . . . . .68<br />
Related Information . . . . . . . . . .68<br />
SSL_Create()—Enable SSL Support for the Specified<br />
Socket Descriptor . . . . . . . . . . . .69<br />
Parameters . . . . . . . . . . . . .69<br />
Authorities . . . . . . . . . . . . .69<br />
Return Value . . . . . . . . . . . . .69<br />
Error Conditions . . . . . . . . . . . .70<br />
Error Messages . . . . . . . . . . . .71<br />
Usage Notes . . . . . . . . . . . . .71<br />
Related Information . . . . . . . . . .71<br />
SSL_Destroy()—End SSL Support for the Specified<br />
SSL Session . . . . . . . . . . . . . .71<br />
Parameters . . . . . . . . . . . . .72<br />
Authorities . . . . . . . . . . . . .72<br />
Return Value . . . . . . . . . . . . .72<br />
Error Conditions . . . . . . . . . . . .72<br />
Error Messages . . . . . . . . . . . .73<br />
Usage Notes . . . . . . . . . . . . .73<br />
Related Information . . . . . . . . . .74<br />
SSL_Handshake()—Initiate the SSL Handshake<br />
Protocol . . . . . . . . . . . . . . .74<br />
Parameters . . . . . . . . . . . . .74<br />
Authorities . . . . . . . . . . . . .76<br />
Return Value . . . . . . . . . . . . .76<br />
Error Conditions . . . . . . . . . . . .77<br />
Error Messages . . . . . . . . . . . .79<br />
Usage Notes . . . . . . . . . . . . .79<br />
Related Information . . . . . . . . . .80<br />
SSL_Init()—Initialize the Current Job for SSL . . .80<br />
Parameters . . . . . . . . . . . . .80<br />
Authorities . . . . . . . . . . . . .82<br />
Return Value . . . . . . . . . . . . .82<br />
Error Conditions . . . . . . . . . . . .83<br />
Error Messages . . . . . . . . . . . .83<br />
Usage Notes . . . . . . . . . . . . .83<br />
Related Information . . . . . . . . . .84<br />
SSL_Init_Application()—Initialize the Current Job<br />
for SSL Processing Based on the Application<br />
Identifier . . . . . . . . . . . . . . .84<br />
Parameters . . . . . . . . . . . . .84<br />
Authorities . . . . . . . . . . . . .87<br />
Return Value . . . . . . . . . . . . .87<br />
Error Conditions . . . . . . . . . . . .88