}
int
-rb_setup_ssl_server(const char *cert, const char *keyfile, const char *dhfile)
+rb_setup_ssl_server(const char *cert, const char *keyfile, const char *dhfile, const char *cipher_list)
{
int ret;
return 0;
}
+ /* XXX support cipher lists when added to mbedtls */
+
return 1;
}
MBEDTLS_VERSION_STRING, version_str);
}
+const char *
+rb_ssl_get_cipher(rb_fde_t *F)
+{
+ if(F == NULL || F->ssl == NULL)
+ return NULL;
+ return mbedtls_ssl_get_ciphersuite(SSL_P(F));
+}
#endif /* HAVE_GNUTLS */