Mercurial > libpst
diff src/libpst.h @ 204:268458c79e9b
more cleanup of the shared library interface, but still not fully thread safe
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 06 Jun 2009 11:39:02 -0700 |
parents | 3850a3b11745 |
children | 94bde95d7e18 |
line wrap: on
line diff
--- a/src/libpst.h Tue May 19 10:20:33 2009 -0700 +++ b/src/libpst.h Sat Jun 06 11:39:02 2009 -0700 @@ -994,19 +994,6 @@ pst_index_ll* pst_getID(pst_file* pf, uint64_t i_id); -/** Decrypt a block of data from the pst file. - * @param i_id identifier of this block, needed as part of the key for the enigma cipher - * @param buf pointer to the buffer to be decrypted in place - * @param size size of the buffer - * @param type - @li 0 PST_NO_ENCRYPT, none - @li 1 PST_COMP_ENCRYPT, simple byte substitution cipher with fixed key - @li 2 PST_ENCRYPT, german enigma 3 rotor cipher with fixed key - * @return 0 if ok, -1 if error (NULL buffer or unknown encryption type) - */ -int pst_decrypt(uint64_t i_id, char *buf, size_t size, unsigned char type); - - /** Get an ID block from the file using pst_ff_getIDblock() and decrypt if necessary. * @param pf pointer to the pst_file structure setup by pst_open(). * @param i_id ID of block to retrieve @@ -1017,16 +1004,6 @@ size_t pst_ff_getIDblock_dec(pst_file *pf, uint64_t i_id, char **buf); -/** Read a block of data from the file into memory. - * @param pf pointer to the pst_file structure setup by pst_open(). - * @param i_id ID of block to read - * @param buf reference to pointer to buffer that will contain the data block. - * If this pointer is non-NULL, it will first be free()d. - * @return size of block read into memory - */ -size_t pst_ff_getIDblock(pst_file *pf, uint64_t i_id, char** buf); - - /** fwrite with checking for null pointer. * @param ptr pointer to the buffer * @param size size of each item