mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
should we do NAMEPREP automatically?
This commit is contained in:
parent
61ef5ce041
commit
9f9bdc4e20
8 changed files with 18 additions and 12 deletions
|
@ -120,10 +120,10 @@ int logon(int failure) {
|
|||
// probably also: register_target?
|
||||
// but be careful never to register_target wildcards
|
||||
if (stringp(m))
|
||||
sAuthenticated(NAMEPREP(m));
|
||||
sAuthenticated(m);
|
||||
else
|
||||
foreach(t : m)
|
||||
sAuthenticated(NAMEPREP(t));
|
||||
sAuthenticated(t);
|
||||
}
|
||||
//#ifdef _flag_allow_certificate_name_common // to be switched this year
|
||||
#ifndef _flag_disallow_certificate_name_common
|
||||
|
@ -132,7 +132,7 @@ int logon(int failure) {
|
|||
// note: CN is deprecated for good reasons.
|
||||
else if (t = cert["2.5.4.3"]) {
|
||||
P1(("%O believing CN %O\n", ME, t))
|
||||
sAuthenticated(NAMEPREP(t));
|
||||
sAuthenticated(t);
|
||||
}
|
||||
#endif
|
||||
if (m = tls_query_connection_info(ME)) {
|
||||
|
@ -224,7 +224,7 @@ void circuit_msg(string mc, mapping vars, string data) {
|
|||
return;
|
||||
}
|
||||
u = parse_uniform(vars["_uniform_source"]);
|
||||
u[UHost] = NAMEPREP(u[UHost]);
|
||||
// qAuthenticated does that:u[UHost] = NAMEPREP(u[UHost]);
|
||||
if (qAuthenticated(u[UHost])) {
|
||||
// possibly different _uniform_target only
|
||||
if (flags & TCP_PENDING_TIMEOUT) {
|
||||
|
|
|
@ -163,7 +163,7 @@ void dispatch(mapping rvars, mapping evars, mixed method, mixed body) {
|
|||
}
|
||||
#ifdef USE_VERIFICATION
|
||||
# ifdef PSYC_TCP
|
||||
unless (qAuthenticated(NAMEPREP(u[UHost]))) {
|
||||
unless (qAuthenticated(u[UHost])) {
|
||||
DISPATCHERROR("non-authenticated host\n")
|
||||
}
|
||||
# else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue