RSA BSAFE SSL-C

Security protocol components for C

Search

Method Functions

This section details the method functions used to specify the various client and server protocols supported by SSL connections. These functions are used in conjunction with SSL_CTX_new().

Functions

SSL_METHODSSLv2_method (void)
 Specifies the SSL version 2 protocol. More...

SSL_METHODSSLv2_server_method (void)
 Specifies the SSL version 2 protocol for servers only. More...

SSL_METHODSSLv2_client_method (void)
 Specifies the SSL version 2 protocol for clients only. More...

SSL_METHODSSLv3_server_method (void)
 Specifies the SSL version 3 protocol for servers only. More...

SSL_METHODSSLv3_client_method (void)
 Specifies the SSL version 3 protocol for clients only. More...

SSL_METHODSSLv3_method (void)
 Specifies the SSL version 3 protocol. More...

SSL_METHODSSLv23_method (void)
 Specifies the SSL version 23 protocol. More...

SSL_METHODSSLv23_server_method (void)
 Sets the SSL method table for an SSLv23 server. More...

SSL_METHODSSLv23_client_method (void)
 Specifies the SSL version 23 protocol for clients only. More...

SSL_METHODTLSv1_method (void)
 Specifies the Transport Layer Security (TLS) version 1 protocol for both clients and servers. More...

SSL_METHODTLSv1_server_method (void)
 Specifies the Transport Layer Security (TLS) version 1 protocol for servers only. More...

SSL_METHODTLSv1_client_method (void)
 Specifies the Transport Layer Security (TLS) version 1 protocol for clients only. More...

int SSL_set_ssl_method (SSL *ssl, SSL_METHOD *meth)
 Sets the SSL method meth to override the default methods that an SSL connection inherits from its SSL_CTX when establishing the SSL connection ssl. More...

SSL_METHODSSL_get_ssl_method (SSL *ssl)
 Returns a reference to SSL_METHOD. More...


Function Documentation

SSL_METHOD* SSL_get_ssl_method SSL   ssl ;
 

Returns a reference to SSL_METHOD. This structure holds pointers to functions that control operations during an SSL session. The functions are specific to particular SSL versions.

Parameters:
ssl [In] The SSL structure.
Returns:
The pointer to the SSL_METHOD for SSL.

int SSL_set_ssl_method SSL   ssl,
SSL_METHOD   meth
;
 

Sets the SSL method meth to override the default methods that an SSL connection inherits from its SSL_CTX when establishing the SSL connection ssl. This allows the application to support multiple SSL versions without requiring an SSL_CTX for each one.

Parameters:
ssl [In] The SSL against which to store the method.
meth [In] The new SSL_METHOD for the SSL. Stores pointers to functions that control protocol operations during an SSL session.
Returns:
1 indicates success.
0 indicates error.
See also:
SSL_get_ssl_method() and SSL_METHOD.

SSL_METHOD* SSLv23_client_method   ;
 

Specifies the SSL version 23 protocol for clients only. This method is typically passed in a call to SSL_CTX_new() to specify that the SSLv23 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
See also:
SSL_METHOD, SSL_CTX_new() and SSL_CTX.
Samples:
bio_client.c, nbio_client.c, sock_client.c, and ssl_client.c.

SSL_METHOD* SSLv23_method   ;
 

Specifies the SSL version 23 protocol. This method is typically passed in a call to SSL_CTX_new() to specify that the SSLv23 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
See also:
SSL_METHOD, SSL_CTX_new() and SSL_CTX.

SSL_METHOD* SSLv23_server_method   ;
 

Sets the SSL method table for an SSLv23 server.

Returns:
A reference to a static SSL method table that has a handshake function capable of performing an SSLv23 accept.
Samples:
bio_server.c, cache_server.c, nbio_server.c, sock_server.c, and ssl_server.c.

SSL_METHOD* SSLv2_client_method   ;
 

Specifies the SSL version 2 protocol for clients only. This method is typically passed in a call to SSL_CTX_new() to specify that the SSLv2 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
See also:
SSL_METHOD, SSL_CTX_new() and SSL_CTX.
Samples:
bio_client.c, nbio_client.c, sock_client.c, and ssl_client.c.

SSL_METHOD* SSLv2_method   ;
 

Specifies the SSL version 2 protocol. This method is typically passed in a call to SSL_CTX_new() to specify that the SSLv2 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
See also:
SSL_METHOD, SSL_CTX_new() and SSL_CTX.

SSL_METHOD* SSLv2_server_method   ;
 

Specifies the SSL version 2 protocol for servers only. This method is typically passed in a call to SSL_CTX_new() to specify that the SSLv2 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
See also:
SSL_METHOD, SSL_CTX_new()and SSL_CTX.
Samples:
bio_server.c, cache_server.c, nbio_server.c, sock_server.c, and ssl_server.c.

SSL_METHOD* SSLv3_client_method void    ;
 

Specifies the SSL version 3 protocol for clients only. This method is typically passed in a call to SSL_CTX_new() to specify that the SSLv3 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
See also:
SSL_METHOD, SSL_CTX_new() and SSL_CTX.
Samples:
bio_client.c, nbio_client.c, PKCS11Client.c, simple.c, sock_client.c, and ssl_client.c.

SSL_METHOD* SSLv3_method void    ;
 

Specifies the SSL version 3 protocol. This method is typically passed in a call to SSL_CTX_new() to specify that the SSLv3 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
See also:
SSL_METHOD, SSL_CTX_new() and SSL_CTX.

SSL_METHOD* SSLv3_server_method void    ;
 

Specifies the SSL version 3 protocol for servers only. This method is typically passed in a call to SSL_CTX_new() to specify that the SSLv3 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
See also:
SSL_METHOD, SSL_CTX_new()and SSL_CTX.
Samples:
bio_server.c, cache_server.c, nbio_server.c, sock_server.c, and ssl_server.c.

SSL_METHOD* TLSv1_client_method void    ;
 

Specifies the Transport Layer Security (TLS) version 1 protocol for clients only. This method is typically passed in a call to SSL_CTX_new() to specify that the TLSv1 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
note.gif
This method is also capable of doing SSLv3 if option SSL_OP_NO_SSLv3 is not set using SSL_CTX_set_options().
See also:
SSL_CTX_new(), SSL_CTX_set_options().
Samples:
bio_client.c, fips_client.c, nbio_client.c, PKCS11Client.c, simple.c, sock_client.c, and ssl_client.c.

SSL_METHOD* TLSv1_method void    ;
 

Specifies the Transport Layer Security (TLS) version 1 protocol for both clients and servers. This method is typically passed in a call to SSL_CTX_new() to specify that the TLSv1 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
note.gif
This method is also capable of doing SSLv3 if the SSL_OP_NO_SSLv3 option is not set using SSL_CTX_set_options().
See also:
SSL_CTX_new() and SSL_CTX_set_options().

SSL_METHOD* TLSv1_server_method void    ;
 

Specifies the Transport Layer Security (TLS) version 1 protocol for servers only. This method is typically passed in a call to SSL_CTX_new() to specify that the TLSv1 protocol will be supported by SSL connections using that SSL_CTX.

Returns:
The SSL_METHOD pointer.
note.gif
This method is also capable of doing SSLv3 if the SSL_OP_NO_SSLv3 option is not set using SSL_CTX_set_options().
See also:
SSL_CTX_new() and SSL_CTX_set_options().
Samples:
bio_server.c, cache_server.c, nbio_server.c, sock_server.c, and ssl_server.c.


Copyright (c) 1999-2004 RSA Security Inc. All rights reserved. 050-001001-2600-000-000 - 2.6