projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RAND_pseudo_bytes is good enough for encryption IVs,
[openssl.git]
/
demos
/
maurice
/
example2.c
diff --git
a/demos/maurice/example2.c
b/demos/maurice/example2.c
index 99f7b2244091479b7ff3c50d4b109879e5df3818..57bce10b5ed5ec37f8ee1d3a37b0394604732752 100644
(file)
--- a/
demos/maurice/example2.c
+++ b/
demos/maurice/example2.c
@@
-10,13
+10,13
@@
#include <stdio.h>
#include <strings.h>
#include <stdio.h>
#include <strings.h>
-#include
"rsa.h"
-#include
"evp.h"
-#include
"objects.h"
-#include
"x509.h"
-#include
"err.h"
-#include
"pem.h"
-#include
"ssl.h"
+#include
<openssl/rsa.h>
+#include
<openssl/evp.h>
+#include
<openssl/objects.h>
+#include
<openssl/x509.h>
+#include
<openssl/err.h>
+#include
<openssl/pem.h>
+#include
<openssl/ssl.h>
#include "loadkeys.h"
#include "loadkeys.h"
@@
-33,7
+33,6
@@
int main()
EVP_PKEY *pubKey;
EVP_PKEY *privKey;
int len;
EVP_PKEY *pubKey;
EVP_PKEY *privKey;
int len;
- FILE *fp;
ERR_load_crypto_strings();
ERR_load_crypto_strings();
@@
-72,6
+71,5
@@
int main()
EVP_PKEY_free(pubKey);
free(buf);
free(buf2);
EVP_PKEY_free(pubKey);
free(buf);
free(buf2);
+ return 0;
}
}
-
-