+
+ if (!ConnSSL_LoadServerKey_gnutls())
+ goto out;
+
+ if(Conf_SSLOptions.CipherList && *Conf_SSLOptions.CipherList) {
+ err = gnutls_priority_init(&priorities_cache,
+ Conf_SSLOptions.CipherList, NULL);
+ if (err != GNUTLS_E_SUCCESS) {
+ Log(LOG_ERR,
+ "Failed to apply GnuTLS cipher list \"%s\"!",
+ Conf_SSLOptions.CipherList);
+ goto out;
+ }
+ Log(LOG_INFO,
+ "Successfully applied GnuTLS cipher list \"%s\".",
+ Conf_SSLOptions.CipherList);
+ } else {
+ err = gnutls_priority_init(&priorities_cache, "NORMAL", NULL);
+ if (err != GNUTLS_E_SUCCESS) {
+ Log(LOG_ERR,
+ "Failed to apply GnuTLS cipher list \"NORMAL\"!");
+ goto out;
+ }