projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typos
[openssl.git]
/
demos
/
maurice
/
example4.c
diff --git
a/demos/maurice/example4.c
b/demos/maurice/example4.c
index d436a20019591f4b3f01a1a45508b039825cdfb4..ce629848b74fc6617cce73ba87fc1e887ef79eeb 100644
(file)
--- a/
demos/maurice/example4.c
+++ b/
demos/maurice/example4.c
@@
-8,9
+8,10
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
+#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/stat.h>
-#include <evp.h>
+#include <
openssl/
evp.h>
#define STDIN 0
#define STDOUT 1
#define STDIN 0
#define STDOUT 1
@@
-44,7
+45,7
@@
void do_encode()
{
char buf[BUFLEN];
char ebuf[BUFLEN+24];
{
char buf[BUFLEN];
char ebuf[BUFLEN+24];
- unsigned int ebuflen
, rc
;
+ unsigned int ebuflen;
EVP_ENCODE_CTX ectx;
EVP_EncodeInit(&ectx);
EVP_ENCODE_CTX ectx;
EVP_EncodeInit(&ectx);
@@
-78,7
+79,7
@@
void do_decode()
{
char buf[BUFLEN];
char ebuf[BUFLEN+24];
{
char buf[BUFLEN];
char ebuf[BUFLEN+24];
- unsigned int ebuflen
, rc
;
+ unsigned int ebuflen;
EVP_ENCODE_CTX ectx;
EVP_DecodeInit(&ectx);
EVP_ENCODE_CTX ectx;
EVP_DecodeInit(&ectx);