ssltest.c (246772) | ssltest.c (261037) |
---|---|
1/* ssl/ssltest.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 867 unchanged lines hidden (view full) --- 876 meth=TLSv1_method(); 877 else 878 if (ssl3) 879 meth=SSLv3_method(); 880 else 881 meth=SSLv23_method(); 882#else 883#ifdef OPENSSL_NO_SSL2 | 1/* ssl/ssltest.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 867 unchanged lines hidden (view full) --- 876 meth=TLSv1_method(); 877 else 878 if (ssl3) 879 meth=SSLv3_method(); 880 else 881 meth=SSLv23_method(); 882#else 883#ifdef OPENSSL_NO_SSL2 |
884 meth=SSLv3_method(); | 884 if (tls1) 885 meth=TLSv1_method(); 886 else 887 if (ssl3) 888 meth=SSLv3_method(); 889 else 890 meth=SSLv23_method(); |
885#else 886 meth=SSLv2_method(); 887#endif 888#endif 889 890 c_ctx=SSL_CTX_new(meth); 891 s_ctx=SSL_CTX_new(meth); 892 if ((c_ctx == NULL) || (s_ctx == NULL)) --- 1685 unchanged lines hidden --- | 891#else 892 meth=SSLv2_method(); 893#endif 894#endif 895 896 c_ctx=SSL_CTX_new(meth); 897 s_ctx=SSL_CTX_new(meth); 898 if ((c_ctx == NULL) || (s_ctx == NULL)) --- 1685 unchanged lines hidden --- |