projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial trust code: allow setting of trust checking functions
[oweals/openssl.git]
/
crypto
/
pkcs7
/
sign.c
diff --git
a/crypto/pkcs7/sign.c
b/crypto/pkcs7/sign.c
index d5f11540064c21e76c8e85602867caef8af125ba..367c00e0faa2d51c91965e8678545505f2fb37d0 100644
(file)
--- a/
crypto/pkcs7/sign.c
+++ b/
crypto/pkcs7/sign.c
@@
-56,6
+56,7
@@
* [including the GNU Public Licence.]
*/
#include <stdio.h>
* [including the GNU Public Licence.]
*/
#include <stdio.h>
+#include <string.h>
#include <openssl/bio.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/bio.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
@@
-97,9
+98,9
@@
again:
BIO_set_fp(data,stdin,BIO_NOCLOSE);
if ((in=BIO_new_file("server.pem","r")) == NULL) goto err;
BIO_set_fp(data,stdin,BIO_NOCLOSE);
if ((in=BIO_new_file("server.pem","r")) == NULL) goto err;
- if ((x509=PEM_read_bio_X509(in,NULL,NULL)) == NULL) goto err;
+ if ((x509=PEM_read_bio_X509(in,NULL,NULL
,NULL
)) == NULL) goto err;
BIO_reset(in);
BIO_reset(in);
- if ((pkey=PEM_read_bio_PrivateKey(in,NULL,NULL)) == NULL) goto err;
+ if ((pkey=PEM_read_bio_PrivateKey(in,NULL,NULL
,NULL
)) == NULL) goto err;
BIO_free(in);
p7=PKCS7_new();
BIO_free(in);
p7=PKCS7_new();