Example #1
0
 void log(int level, const char * message) const {
     LOG(level
         , "%s: RedirectionInfo(valid=%s, session_id=%u, host='%s', username='******',"
         " password='******', domain='%s', LoadBalanceInfoLength=%u,"
         " dont_store_username=%s, server_tsv_capable=%s, smart_card_logon=%s)"
         , message
         , this->valid?"true":"false"
         , this->session_id
         , this->host
         , this->username
         , (this->password[0] == 0)?"<null>":"<hidden>"
         , this->domain
         , this->lb_info_length
         , this->dont_store_username?"true":"false"
         , this->server_tsv_capable?"true":"false"
         , this->smart_card_logon?"true":"false"
         );
     if (this->lb_info_length > 0) {
         hexdump_c(this->lb_info, this->lb_info_length);
     }
 }
Example #2
0
static inline void hexdump_c(const unsigned char * data, size_t size)
{
    hexdump_c(reinterpret_cast<const char*>(data), size);
}
Example #3
0
 void log(NTLM_AV_ID avId) const
 {
     LOG(LOG_INFO, "\tAvId: 0x%02X, AvLen : %u,", avId, unsigned(this->avLen));
     hexdump_c(this->data.get(), this->avLen, 8);
 }