浏览代码

Enable TLS1.1 with gnutls build

Tatsuhiro Tsujikawa 12 年之前
父节点
当前提交
233501f768
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      src/LibgnutlsTLSSession.cc

+ 1 - 7
src/LibgnutlsTLSSession.cc

@@ -71,13 +71,7 @@ int GnuTLSSession::init(sock_t sockfd)
   // It seems err is not error message, but the argument string
   // which causes syntax error.
   const char* err;
-  // For client side, disables TLS1.1 here because there are servers
-  // that don't understand TLS1.1.  TODO Is this still necessary?
-  rv_ = gnutls_priority_set_direct(sslSession_,
-                                   tlsContext_->getSide() == TLS_CLIENT ?
-                                   "NORMAL:-VERS-TLS1.1" :
-                                   "NORMAL",
-                                   &err);
+  rv_ = gnutls_priority_set_direct(sslSession_, "NORMAL", &err);
   if(rv_ != GNUTLS_E_SUCCESS) {
     return TLS_ERR_ERROR;
   }