added check if input is not binary

This commit is contained in:
git@daemon.de
2014-02-13 15:30:23 +01:00
parent 75cdbbe835
commit 823fc8bbe0
2 changed files with 28 additions and 0 deletions

View File

@@ -23,6 +23,8 @@
/* from https://github.com/tlinden/curve-keygen/ */
#ifndef _HAVE_PCP_Z85_H
#include <ctype.h>
#include "defines.h"
#include "zmq_z85.h"
#include "mem.h"
@@ -44,4 +46,6 @@ char *pcp_z85_encode(unsigned char *raw, size_t srclen, size_t *dstlen);
char *pcp_readz85file(FILE *infile);
char *pcp_readz85string(unsigned char *input, size_t bufsize);
size_t _buffer_is_binary(unsigned char *buf, size_t len);
#endif /* _HAVE_PCP_Z85_H */