projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backport libcrypto audit: check return values of EVP functions instead
[oweals/openssl.git]
/
ssl
/
t1_meth.c
diff --git
a/ssl/t1_meth.c
b/ssl/t1_meth.c
index 3257636425f3e714f3956f9c4eef037f833b4634..53c807de28097b0a008ddb8bd689fac179d0a94f 100644
(file)
--- a/
ssl/t1_meth.c
+++ b/
ssl/t1_meth.c
@@
-62,6
+62,8
@@
static const SSL_METHOD *tls1_get_method(int ver)
{
static const SSL_METHOD *tls1_get_method(int ver)
{
+ if (ver == TLS1_2_VERSION)
+ return TLSv1_2_method();
if (ver == TLS1_1_VERSION)
return TLSv1_1_method();
if (ver == TLS1_VERSION)
if (ver == TLS1_1_VERSION)
return TLSv1_1_method();
if (ver == TLS1_VERSION)
@@
-69,6
+71,11
@@
static const SSL_METHOD *tls1_get_method(int ver)
return NULL;
}
return NULL;
}
+IMPLEMENT_tls_meth_func(TLS1_2_VERSION, TLSv1_2_method,
+ ssl3_accept,
+ ssl3_connect,
+ tls1_get_method)
+
IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_method,
ssl3_accept,
ssl3_connect,
IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_method,
ssl3_accept,
ssl3_connect,