Commit a304d385 authored by Matt Caswell's avatar Matt Caswell
Browse files

Move SSLv3_*method() functions

Move these functions into t1_clnt.c, t1_srvr.c and t1_meth.c and take
advantage of the existing tls1_get*_method() functions that all the other
methods are using. Since these now have to support SSLv3 anyway we might
as well use the same set of get functions for both TLS and SSLv3.

Reviewed-by: default avatarKurt Roeckx <kurt@openssl.org>
parent d45ba43d
Loading
Loading
Loading
Loading
−12
Changes for ssl/s3_clnt.c: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -173,19 +173,7 @@ static int ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *sk,
                                    int (*put_cb) (const SSL_CIPHER *,
                                                 unsigned char *));

#ifndef OPENSSL_NO_SSL3_METHOD
static const SSL_METHOD *ssl3_get_client_method(int ver)
{
    if (ver == SSL3_VERSION)
        return (SSLv3_client_method());
    else
        return (NULL);
}

IMPLEMENT_ssl3_meth_func(SSLv3_client_method,
                         ssl_undefined_function,
                         ssl3_connect, ssl3_get_client_method)
#endif
int ssl3_connect(SSL *s)
{
    BUF_MEM *buf = NULL;
−74

File deleted.

−14
Changes for ssl/s3_srvr.c: 0 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -167,21 +167,7 @@
static STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, unsigned char *p,
    int num, STACK_OF(SSL_CIPHER) **skp, int sslv2format);

#ifndef OPENSSL_NO_SSL3_METHOD
static const SSL_METHOD *ssl3_get_server_method(int ver);

static const SSL_METHOD *ssl3_get_server_method(int ver)
{
    if (ver == SSL3_VERSION)
        return (SSLv3_server_method());
    else
        return (NULL);
}

IMPLEMENT_ssl3_meth_func(SSLv3_server_method,
                         ssl3_accept,
                         ssl_undefined_function, ssl3_get_server_method)
#endif
#ifndef OPENSSL_NO_SRP
static int ssl_check_srp_ext_ClientHello(SSL *s, int *al)
{
+1 −1
Changes for ssl/ssl-lib.com: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ $ ENDIF
$!
$! Define The Different SSL "library" Files.
$!
$ LIB_SSL = "s3_meth,  s3_srvr, s3_clnt, s3_lib, s3_enc,s3_pkt,s3_both,s3_cbc,"+ -
$ LIB_SSL = "s3_srvr, s3_clnt, s3_lib, s3_enc,s3_pkt,s3_both,s3_cbc,"+ -
	    "t1_meth,  t1_srvr, t1_clnt, t1_lib, t1_enc,       t1_ext,"+ -
	    "d1_meth,  d1_srvr, d1_clnt, d1_lib,        d1_pkt,"+ -
	    "d1_both,d1_srtp,"+ -
+6
Changes for ssl/t1_clnt.c: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -99,3 +99,9 @@ IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_client_method,
IMPLEMENT_tls_meth_func(TLS1_VERSION, TLSv1_client_method,
                        ssl_undefined_function,
                        ssl3_connect, tls1_get_client_method, TLSv1_enc_data)

#ifndef OPENSSL_NO_SSL3_METHOD
IMPLEMENT_ssl3_meth_func(SSLv3_client_method,
                         ssl_undefined_function,
                         ssl3_connect, tls1_get_client_method)
#endif
Loading