1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

tls_check_certificate_data re-renamed to tls_check_service_identity and minor fixes

This commit is contained in:
Philipp Hancke 2011-08-03 13:38:00 +02:00 committed by psyc://psyced.org/~lynX
parent 7897992f05
commit c650302885
6 changed files with 21 additions and 13 deletions

View file

@ -41,7 +41,7 @@ volatile mapping legal_senders;
volatile array(mixed) verify_queue = ({ });
#ifdef __TLS__
volatile mixed certinfo;
volatile mapping certinfo;
#endif
volatile int flags = 0;
@ -213,7 +213,7 @@ void circuit_msg(string mc, mapping vars, string data) {
} else if (tls_query_connection_state(ME) == 1
&& mappingp(certinfo)
&& certinfo[0] == 0
&& tls_check_certificate_data(certinfo, su[UHost], "psyc") == 1) {
&& tls_check_service_identity(su[UHost], certinfo, "psyc") == 1) {
sAuthenticated(su[UHost]);
if (flags & TCP_PENDING_TIMEOUT) {
P0(("removing call out\n"))