gtpc1m68 | Transmission Control Protocol/Internet Protocol |
The SSL_set_fd function assigns a socket to a Secure Sockets Layer (SSL) structure.
Format
#include <openssl/ssl.h> int SSL_set_fd(SSL *ssl,int fd)
Normal Return
Return code 1 indicates that the function was successful.
Error Return
A return code equal to 0 indicates an error.
Programming Considerations
Assign the socket to an SSL structure before starting the SSL session with the SSL_connect or SSL_accept function. You can assign the socket to an SSL structure anytime after the Transmission Control Protocol (TCP) connection is established, meaning after the connect or accept functions is completed successfully.
Examples
For sample SSL applications, go to http://www.ibm.com/tpf/pubs/tpfpubs.htm, click SSL for the TPF 4.1 System: An Online User's Guide, and click Examples from the left navigation bar.
Related Information