Home |
Function net_set_socket_secure |
Function net_set_socket_securePlaces a socket in secure mode. int net_set_socket_secure(SOCKET socket, void * sctx); ParameterssocketSocket to put in secure mode. sctxOpenSSL secure socket context to apply to this socket. If this parameter is NULL, the context passed to function net_init_ssl will be used. return valueZero if the operation failed and a value > 0 if it was successful. To be able to use secure sockets, the socket must be places in scure mode before any communication has been performed on it. It is recommended to call net_set_socket_secure right after function socket or net_socket. It must be called before net_connect or net_listen or listen.
|