Changeset 148
- Timestamp:
- 05/25/05 13:48:03
- Files:
-
- openpgpsdk/trunk/examples/packet-dump.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/examples/packet-dump.c
r147 r148 115 115 } 116 116 117 static 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 117 128 static void print_data( char *name, const ops_data_t *data) 118 129 { … … 273 284 content->signature.type); 274 285 275 print_hexdump ("Signer ID",286 print_hexdump_data("Signer ID", 276 287 content->signature.signer_id, 277 288 sizeof content->signature.signer_id); … … 285 296 286 297 print_indent(); 287 print_hexdump ("hash2",&content->signature.hash2[0],2);298 print_hexdump_data("hash2",&content->signature.hash2[0],2); 288 299 289 300 switch(content->signature.key_algorithm)
