projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update .cvsignore
[openssl.git]
/
ssl
/
t1_clnt.c
diff --git
a/ssl/t1_clnt.c
b/ssl/t1_clnt.c
index 4d1e198cdcde1ec6c04eb47e9a76d9b11d567d93..b06bada6f22d32191577caf5cbe5f99cf3e29df0 100644
(file)
--- a/
ssl/t1_clnt.c
+++ b/
ssl/t1_clnt.c
@@
-63,16
+63,22
@@
#include <openssl/objects.h>
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/evp.h>
-static SSL_METHOD *tls1_get_client_method(int ver);
-static SSL_METHOD *tls1_get_client_method(int ver)
+static
const
SSL_METHOD *tls1_get_client_method(int ver);
+static
const
SSL_METHOD *tls1_get_client_method(int ver)
{
{
+ if (ver == TLS1_1_VERSION)
+ return TLSv1_1_client_method();
if (ver == TLS1_VERSION)
if (ver == TLS1_VERSION)
- return(TLSv1_client_method());
- else
- return(NULL);
+ return TLSv1_client_method();
+ return NULL;
}
}
-IMPLEMENT_tls1_meth_func(TLSv1_client_method,
+IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_client_method,
+ ssl_undefined_function,
+ ssl3_connect,
+ tls1_get_client_method)
+
+IMPLEMENT_tls_meth_func(TLS1_VERSION, TLSv1_client_method,
ssl_undefined_function,
ssl3_connect,
tls1_get_client_method)
ssl_undefined_function,
ssl3_connect,
tls1_get_client_method)