mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
meaningful forward secrecy info
This commit is contained in:
parent
ec6ccbfc4f
commit
fe6d78ed9b
8 changed files with 37 additions and 27 deletions
|
@ -210,10 +210,14 @@ int logon(int neverfails) {
|
|||
#ifdef __TLS__
|
||||
sAuthHosts(([ ])); // reset authhosts
|
||||
if (tls_available() && tls_query_connection_state(ME) == 1) {
|
||||
unless (tls_check_cipher(ME, "psyc")) {
|
||||
if (t = tls_bad_cipher(ME, "psyc")) {
|
||||
croak("_error_circuit_encryption_cipher",
|
||||
"Your cipher choice does not provide forward secrecy.");
|
||||
"Your cipher choice does not provide forward secrecy.",
|
||||
([ "_circuit_encryption_cipher": t ]));
|
||||
QUIT
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (mappingp(cert = tls_certificate(ME, 0))) {
|
||||
if (cert[0] != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue