Changeset 148

Show
Ignore:
Timestamp:
05/25/05 13:48:03
Author:
rachel
Message:

Print hexdump of data without length information,
used in SignerID and hash2 outputs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openpgpsdk/trunk/examples/packet-dump.c

    r147 r148  
    115115    } 
    116116 
     117static void print_hexdump_data( char *name, 
     118                          const unsigned char *data, 
     119                          unsigned int len) 
     120    { 
     121    print_name(name); 
     122 
     123    printf("0x"); 
     124    hexdump(data,len); 
     125    printf("\n"); 
     126    } 
     127 
    117128static void print_data( char *name, const ops_data_t *data) 
    118129    { 
     
    273284                               content->signature.type); 
    274285 
    275         print_hexdump("Signer ID", 
     286        print_hexdump_data("Signer ID", 
    276287                      content->signature.signer_id, 
    277288                      sizeof content->signature.signer_id); 
     
    285296 
    286297        print_indent(); 
    287         print_hexdump("hash2",&content->signature.hash2[0],2); 
     298        print_hexdump_data("hash2",&content->signature.hash2[0],2); 
    288299 
    289300        switch(content->signature.key_algorithm)