#include <unistd.h>
#include <time.h>
+#include <lib-lib/mem.h>
+
#include "sha1.h"
#include "lib.h"
#include "pgplib.h"
startpos = ftello (fp);
if (!plen) {
- plen = CHUNKSIZE;
- pbuf = mem_malloc (plen);
+ pbuf = p_new(char, plen = CHUNKSIZE);
}
if (fread (&ctb, 1, 1, fp) < 1) {
void pgp_release_packet (void)
{
plen = 0;
- mem_free (&pbuf);
+ p_delete(&pbuf);
}