TLSv1_server_method (deprecated)

Deprecated: The TLSv1_server_method function is deprecated as of 2019. Update your applications to replace this function with the TLS_server_method function and use the SSL_CTX_set_min_proto_version, SSL_set_min_proto_version, SSL_CTX_set_max_proto_version, and SSL_set_max_proto_version functions to control the supported version for the application.

The TLSv1_server_method function indicates that the application is a server and supports Transport Layer Security version 1.0 (TLSv1.0).

Last updated

  • Changed in 2019.
  • Changed for PUT13.
  • Added for PUT00.

Format

LIBS := CSSL    
#include <openssl/ssl.h>
const SSL_METHOD *TLSv1_server_method(void)

Normal return

A pointer to the appropriate connection method.

Error return

None.

Programming considerations

  • To use this function, you must include the library that is specified in the prototype in your makefile.
  • The server application only understands TLSv1.0 CLIENT_HELLO commands; therefore, remote client applications must support TLSv1.0 and send TLSv1.0 CLIENT_HELLO commands to the server application. The server application will not understand or accept SSLv2 and SSLv3 CLIENT_HELLO commands.
  • Use the output of this function as input to the SSL_CTX_new function or the SSL_CTX_new_shared function.

Examples

For sample SSL applications, see SSL examples.

For information about z/TPF TCP/IP support, see z/TPF Transmission Control Protocol/Internet Protocol.