diff options
Diffstat (limited to 'src/lib/libssl/src/demos/maurice/example4.c')
-rw-r--r-- | src/lib/libssl/src/demos/maurice/example4.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libssl/src/demos/maurice/example4.c b/src/lib/libssl/src/demos/maurice/example4.c index d436a20019..ce629848b7 100644 --- a/src/lib/libssl/src/demos/maurice/example4.c +++ b/src/lib/libssl/src/demos/maurice/example4.c | |||
@@ -8,9 +8,10 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <unistd.h> | ||
11 | #include <fcntl.h> | 12 | #include <fcntl.h> |
12 | #include <sys/stat.h> | 13 | #include <sys/stat.h> |
13 | #include <evp.h> | 14 | #include <openssl/evp.h> |
14 | 15 | ||
15 | #define STDIN 0 | 16 | #define STDIN 0 |
16 | #define STDOUT 1 | 17 | #define STDOUT 1 |
@@ -44,7 +45,7 @@ void do_encode() | |||
44 | { | 45 | { |
45 | char buf[BUFLEN]; | 46 | char buf[BUFLEN]; |
46 | char ebuf[BUFLEN+24]; | 47 | char ebuf[BUFLEN+24]; |
47 | unsigned int ebuflen, rc; | 48 | unsigned int ebuflen; |
48 | EVP_ENCODE_CTX ectx; | 49 | EVP_ENCODE_CTX ectx; |
49 | 50 | ||
50 | EVP_EncodeInit(&ectx); | 51 | EVP_EncodeInit(&ectx); |
@@ -78,7 +79,7 @@ void do_decode() | |||
78 | { | 79 | { |
79 | char buf[BUFLEN]; | 80 | char buf[BUFLEN]; |
80 | char ebuf[BUFLEN+24]; | 81 | char ebuf[BUFLEN+24]; |
81 | unsigned int ebuflen, rc; | 82 | unsigned int ebuflen; |
82 | EVP_ENCODE_CTX ectx; | 83 | EVP_ENCODE_CTX ectx; |
83 | 84 | ||
84 | EVP_DecodeInit(&ectx); | 85 | EVP_DecodeInit(&ectx); |