فهرست منبع

LibgnuTLSSession: Disable SSLv3

Tatsuhiro Tsujikawa 11 سال پیش
والد
کامیت
6d3bd60905
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/LibgnutlsTLSSession.cc

+ 1 - 1
src/LibgnutlsTLSSession.cc

@@ -107,7 +107,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;
-  rv_ = gnutls_priority_set_direct(sslSession_, "SECURE128", &err);
+  rv_ = gnutls_priority_set_direct(sslSession_, "SECURE128:-VERS-SSL3.0", &err);
   if(rv_ != GNUTLS_E_SUCCESS) {
     return TLS_ERR_ERROR;
   }