comparison src/libpst.c @ 149:f9773b6368e0

improve documentation of .pst format. remove decrypt option from getidblock - we always decrypt.
author Carl Byington <carl@five-ten-sg.com>
date Sat, 28 Feb 2009 11:55:48 -0800
parents b47d04257b43
children 06aa84023b48
comparison
equal deleted inserted replaced
148:b47d04257b43 149:f9773b6368e0
747 memcpy(index, buf, sizeof(pst_index)); 747 memcpy(index, buf, sizeof(pst_index));
748 LE64_CPU(index->id); 748 LE64_CPU(index->id);
749 LE64_CPU(index->offset); 749 LE64_CPU(index->offset);
750 LE16_CPU(index->size); 750 LE16_CPU(index->size);
751 LE16_CPU(index->u0); 751 LE16_CPU(index->u0);
752 LE16_CPU(index->u1); 752 LE32_CPU(index->u1);
753 r = sizeof(pst_index); 753 r = sizeof(pst_index);
754 } else { 754 } else {
755 pst_index32 index32; 755 pst_index32 index32;
756 DEBUG_INDEX(("Decoding index32\n")); 756 DEBUG_INDEX(("Decoding index32\n"));
757 DEBUG_HEXDUMPC(buf, sizeof(pst_index32), 0x10); 757 DEBUG_HEXDUMPC(buf, sizeof(pst_index32), 0x10);
761 LE16_CPU(index32.size); 761 LE16_CPU(index32.size);
762 LE16_CPU(index32.u1); 762 LE16_CPU(index32.u1);
763 index->id = index32.id; 763 index->id = index32.id;
764 index->offset = index32.offset; 764 index->offset = index32.offset;
765 index->size = index32.size; 765 index->size = index32.size;
766 index->u0 = 0;
766 index->u1 = index32.u1; 767 index->u1 = index32.u1;
767 r = sizeof(pst_index32); 768 r = sizeof(pst_index32);
768 } 769 }
769 return r; 770 return r;
770 } 771 }