do { \
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL, \
"Received a bad CERT cell from %s:%d: %s", \
- conn->_base.address, conn->_base.port, (s)); \
+ safe_str(conn->_base.address), conn->_base.port, (s)); \
connection_mark_for_close(TO_CONN(conn)); \
goto err; \
} while (0)
if (!cert) {
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
"Received undecodable certificate in CERT cell from %s:%d",
- conn->_base.address, conn->_base.port);
+ safe_str(conn->_base.address), conn->_base.port);
} else {
if (cert_type == OR_CERT_TYPE_TLS_LINK && !link_cert)
link_cert = cert;
ERR("Problem setting or checking peer id");
log_info(LD_OR, "Got some good certifcates from %s:%d: Authenticated it.",
- conn->_base.address, conn->_base.port);
+ safe_str(conn->_base.address), conn->_base.port);
conn->handshake_state->id_cert = id_cert;
id_cert = NULL;
log_info(LD_OR, "Got some good certifcates from %s:%d: "
"Waiting for AUTHENTICATE.",
- conn->_base.address, conn->_base.port);
+ safe_str(conn->_base.address), conn->_base.port);
/* XXXX check more stuff? */
id_cert = auth_cert = NULL;
do { \
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL, \
"Received a bad AUTH_CHALLENGE cell from %s:%d: %s", \
- conn->_base.address, conn->_base.port, (s)); \
+ safe_str(conn->_base.address), conn->_base.port, (s)); \
connection_mark_for_close(TO_CONN(conn)); \
return; \
} while (0)
if (use_type && public_server_mode(get_options())) {
log_info(LD_OR, "Got an AUTH_CHALLENGE cell from %s:%d: Sending "
"authentication",
- conn->_base.address, conn->_base.port);
+ safe_str(conn->_base.address), conn->_base.port);
if (connection_or_send_authenticate_cell(conn, use_type) < 0) {
log_warn(LD_OR, "Couldn't send authenticate cell");
}
} else {
log_info(LD_OR, "Got an AUTH_CHALLENGE cell from %s:%d: Not authenticating",
- conn->_base.address, conn->_base.port);
+ safe_str(conn->_base.address), conn->_base.port);
}
#undef ERR
}
do { \
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL, \
"Received a bad AUTHETNICATE cell from %s:%d: %s", \
- conn->_base.address, conn->_base.port, (s)); \
+ safe_str(conn->_base.address), conn->_base.port, (s)); \
connection_mark_for_close(TO_CONN(conn)); \
return; \
} while (0)
0);
log_info(LD_OR, "Got an AUTHENTICATE cell from %s:%d: Looks good.",
- conn->_base.address, conn->_base.port);
+ safe_str(conn->_base.address), conn->_base.port);
}
#undef ERR