added pcpstream, which wraps buffers or file i/o, so crypto code doesn't have to know if it works with a file or a buffer. makes the api much more flexible

This commit is contained in:
TLINDEN
2014-02-15 13:10:51 +01:00
parent 347f155341
commit e78269fceb
12 changed files with 325 additions and 72 deletions

View File

@@ -44,6 +44,11 @@
this one as well is independent of internal structs
in pcp and should therefore be future proof.
Internal api change: added pcpstream, which is a
wrapper around file i/o or buffer i/o. It's used
in libpcp/crypto.c (more to follow), so it depends
on the caller if it works on files or on buffers.
Lots of refactoring have been done to clear things
out and make the system work with the changes
above.