forked from enlightenment/efl
add mixed protocol for gnutls as well
SVN revision: 52412
This commit is contained in:
parent
a8ef623de7
commit
36bd287841
|
@ -303,6 +303,7 @@ _ecore_con_ssl_server_init_gnutls(Ecore_Con_Server *svr)
|
|||
#endif
|
||||
0
|
||||
};
|
||||
const int mixed_proto[] = { GNUTLS_VERSION_MAX, GNUTLS_TLS1_1, GNUTLS_TLS1_0, GNUTLS_SSL3, 0 };
|
||||
|
||||
switch (svr->type & ECORE_CON_SSL)
|
||||
{
|
||||
|
@ -320,6 +321,11 @@ _ecore_con_ssl_server_init_gnutls(Ecore_Con_Server *svr)
|
|||
proto = tls_proto;
|
||||
break;
|
||||
|
||||
case ECORE_CON_USE_TLS | ECORE_CON_USE_SSL3:
|
||||
case ECORE_CON_USE_TLS | ECORE_CON_USE_SSL3 | ECORE_CON_LOAD_CERT:
|
||||
proto = mixed_proto;
|
||||
break;
|
||||
|
||||
default:
|
||||
return ECORE_CON_SSL_ERROR_NONE;
|
||||
}
|
||||
|
@ -491,6 +497,7 @@ _ecore_con_ssl_client_init_gnutls(Ecore_Con_Client *cl)
|
|||
#endif
|
||||
0
|
||||
};
|
||||
const int mixed_proto[] = { GNUTLS_VERSION_MAX, GNUTLS_TLS1_1, GNUTLS_TLS1_0, GNUTLS_SSL3, 0 };
|
||||
|
||||
switch (cl->server->type & ECORE_CON_SSL)
|
||||
{
|
||||
|
@ -508,6 +515,11 @@ _ecore_con_ssl_client_init_gnutls(Ecore_Con_Client *cl)
|
|||
proto = tls_proto;
|
||||
break;
|
||||
|
||||
case ECORE_CON_USE_TLS | ECORE_CON_USE_SSL3:
|
||||
case ECORE_CON_USE_TLS | ECORE_CON_USE_SSL3 | ECORE_CON_LOAD_CERT:
|
||||
proto = mixed_proto;
|
||||
break;
|
||||
|
||||
default:
|
||||
return ECORE_CON_SSL_ERROR_NONE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue