Changeset 131
- Timestamp:
- 05/17/05 13:06:48
- Files:
-
- openpgpsdk/trunk/examples/packet-dump.c (modified) (1 diff)
- openpgpsdk/trunk/include/packet.h (modified) (1 diff)
- openpgpsdk/trunk/src/packet-parse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/examples/packet-dump.c
r130 r131 208 208 209 209 case OPS_PTAG_CT_TRUST: 210 printf("Trust: "); 211 hexdump(content->trust.data,content->trust.len); 212 printf("\n"); 210 print_data("Trust",&content->trust.data,0); 213 211 break; 214 212 openpgpsdk/trunk/include/packet.h
r130 r131 304 304 typedef struct 305 305 { 306 int len; /* length of data */ 307 unsigned char * data; 306 data_t data; 308 307 } ops_trust_t; 309 308 openpgpsdk/trunk/src/packet-parse.c
r130 r131 1334 1334 void ops_trust_free(ops_trust_t * trust) 1335 1335 { 1336 free(trust->data); 1337 trust->data=NULL; 1338 trust->len=0; 1336 data_free(&trust->data); 1339 1337 } 1340 1338 … … 1344 1342 ops_parser_content_t content; 1345 1343 1346 C.trust.len = region->length - region->length_read; 1347 C.trust.data = malloc(C.trust.len); 1348 1349 if (!ops_limited_read (C.trust.data, C.trust.len, 1350 region, opt)) 1351 return 0; 1344 if (!read_data(&C.trust.data,region,opt)) 1345 return 0; 1352 1346 1353 1347 CB (OPS_PTAG_CT_TRUST, &content);
