~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to ssl/s23_meth.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060515160058-pg6lnbkkpkwpdj2e
Tags: upstream-0.9.8b
ImportĀ upstreamĀ versionĀ 0.9.8b

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
static SSL_METHOD *ssl23_get_method(int ver);
64
64
static SSL_METHOD *ssl23_get_method(int ver)
65
65
        {
 
66
#ifndef OPENSSL_NO_SSL2
66
67
        if (ver == SSL2_VERSION)
67
68
                return(SSLv2_method());
68
 
        else if (ver == SSL3_VERSION)
 
69
        else
 
70
#endif
 
71
#ifndef OPENSSL_NO_SSL3
 
72
        if (ver == SSL3_VERSION)
69
73
                return(SSLv3_method());
70
 
        else if (ver == TLS1_VERSION)
 
74
        else
 
75
#endif
 
76
#ifndef OPENSSL_NO_TLS1
 
77
        if (ver == TLS1_VERSION)
71
78
                return(TLSv1_method());
72
79
        else
 
80
#endif
73
81
                return(NULL);
74
82
        }
75
83