rewrote z85 decoder, uses Buffer* class now

This commit is contained in:
TLINDEN
2014-02-09 13:50:48 +01:00
parent 82883d92ac
commit 83a4d0bb88
5 changed files with 71 additions and 42 deletions

View File

@@ -263,13 +263,13 @@ int main (int argc, char **argv) {
sodium_init(); /* FIXME: better called from the lib? */
errno = 0; /* FIXME: workaround for https://github.com/jedisct1/libsodium/issues/114 */
if(mode == PCP_MODE_ENCRYPT && useid == 0 && userec == 0) {
usevault = 0;
mode = PCP_MODE_ENCRYPT_ME;
}
if(argc >= 1) {
/* ok, there are arguments left on the commandline.
treat it as filename or recipient, depending on
@@ -333,7 +333,6 @@ int main (int argc, char **argv) {
}
}
/* check if there's some enviroment we could use */
if(usevault == 1) {
char *_vaultfile = getenv("PCP_VAULT");