Changeset 1358

Show
Ignore:
Timestamp:
08/23/07 15:16:07 (1 year ago)
Author:
common
Message:

nepenthes

  • Utilities, renable hexdump fns
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/nepenthes-core/include/Utilities.hpp

    r836 r1358  
    131131                void MD5Update(struct MD5Context *context, unsigned char const *buf,unsigned len); 
    132132                void MD5Final(unsigned char digest[16], struct MD5Context *context); 
    133 /* 
     133 
    134134                virtual void hexdump(byte *data, uint32_t len); 
    135135                virtual void hexdump(uint32_t mask, byte *data, uint32_t len); 
    136 */ 
     136 
    137137                virtual unsigned char *b64encode_alloc(unsigned char *in); 
    138138                virtual unsigned char *b64encode_alloc(unsigned char *in, int32_t inlen); 
  • nepenthes/trunk/nepenthes-core/src/Utilities.cpp

    r836 r1358  
    340340// ENDOF MD5Sum 
    341341 
    342 /* 
     342 
    343343 
    344344void Utilities::hexdump(byte *data, uint32_t len) 
     
    373373 
    374374                g_Nepenthes->getLogMgr()->logf(mask,"Stored Hexdump %s (0x%08x , 0x%08x).\n", md5.c_str(), (uint32_t)((intptr_t)data), len); 
     375        }else 
     376        { 
     377                g_Nepenthes->getLogMgr()->logf(l_crit, "Could not open %s (%s)\n", md5.c_str(), strerror(errno)); 
    375378        } 
    376379 
     
    431434} 
    432435 
    433 */ 
     436 
    434437 
    435438