SSL_ APIs

The SSL_ APIs allow programmers to create secure socket applications on iSeries™.

Unlike GSKit APIs, SSL_ APIs only exist in the i5/OS™ operating system. The following table describes the SSL_ APIs that are supported in the i5/OS implementation.
Table 1. SSL_ APIs
Function Description
SSL_Create() Enable SSL support for the specified socket descriptor.
SSL_Destroy() End SSL support for the specified SSL session and socket.
SSL_Handshake() Initiate the SSL handshake protocol.
SSL_Init() Initialize the current job for SSL and establish the SSL security information for the current job.
Note: Either an SSL_Init() or SSL_Init_Application() API must be processed before SSL can be used.
SSL_Init_Application() Initialize the current job for SSL and establish the SSL security information for the current job.
Note: Either an SSL_Init() or SSL_Init_Application() API must be processed before SSL can be used.
SSL_Read() Receive data from an SSL-enabled socket descriptor.
SSL_Write() Write data to an SSL-enabled socket descriptor.
SSL_Strerror() Retrieve SSL runtime error message.
SSL_Perror() Print SSL error message.
QlgSSL_Init() Initialize the current job for SSL and establish the SSL security information for the current job using NLS-enabled path name.
An application that uses the sockets and SSL_ APIs contains the following elements:
Related reference
Example: Establish a secure server with SSL_ APIs
Example: Establish a secure client with SSL_ APIs
Related information
socket()
listen()
bind()
connect()
accept()
close()
SSL_Create()
SSL_Destroy()
SSL_Handshake()
SSL_Init()
SSL_Init_Application()
SSL_Read()
SSL_Write()
SSL_Strerror()
SSL_Perror()