diff options
Diffstat (limited to 'lib/libssl/src/demos/maurice/example4.c')
-rw-r--r-- | lib/libssl/src/demos/maurice/example4.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libssl/src/demos/maurice/example4.c b/lib/libssl/src/demos/maurice/example4.c index d436a200195..ce629848b74 100644 --- a/lib/libssl/src/demos/maurice/example4.c +++ b/lib/libssl/src/demos/maurice/example4.c @@ -8,9 +8,10 @@ */ #include <stdio.h> +#include <unistd.h> #include <fcntl.h> #include <sys/stat.h> -#include <evp.h> +#include <openssl/evp.h> #define STDIN 0 #define STDOUT 1 @@ -44,7 +45,7 @@ void do_encode() { char buf[BUFLEN]; char ebuf[BUFLEN+24]; - unsigned int ebuflen, rc; + unsigned int ebuflen; EVP_ENCODE_CTX ectx; EVP_EncodeInit(&ectx); @@ -78,7 +79,7 @@ void do_decode() { char buf[BUFLEN]; char ebuf[BUFLEN+24]; - unsigned int ebuflen, rc; + unsigned int ebuflen; EVP_ENCODE_CTX ectx; EVP_DecodeInit(&ectx); |