projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminate a warning: BN_mod_inverse() returns a (BIGNUM *) and remove and
[openssl.git]
/
apps
/
pkcs7.c
diff --git
a/apps/pkcs7.c
b/apps/pkcs7.c
index cac75f48b2551f8cc89a696342d53112423e2aae..9518983d5d6bea65361c0b2e931e43973dec892c 100644
(file)
--- a/
apps/pkcs7.c
+++ b/
apps/pkcs7.c
@@
-61,12
+61,12
@@
#include <string.h>
#include <time.h>
#include "apps.h"
#include <string.h>
#include <time.h>
#include "apps.h"
-#include
"err.h"
-#include
"objects.h"
-#include
"evp.h"
-#include
"x509.h"
-#include
"pkcs7.h"
-#include
"pem.h"
+#include
<openssl/err.h>
+#include
<openssl/objects.h>
+#include
<openssl/evp.h>
+#include
<openssl/x509.h>
+#include
<openssl/pkcs7.h>
+#include
<openssl/pem.h>
#undef PROG
#define PROG pkcs7_main
#undef PROG
#define PROG pkcs7_main
@@
-81,9
+81,7
@@
* -print_certs
*/
* -print_certs
*/
-int MAIN(argc, argv)
-int argc;
-char **argv;
+int MAIN(int argc, char **argv)
{
PKCS7 *p7=NULL;
int i,badops=0;
{
PKCS7 *p7=NULL;
int i,badops=0;
@@
-224,7
+222,7
@@
bad:
if (print_certs)
{
STACK_OF(X509) *certs=NULL;
if (print_certs)
{
STACK_OF(X509) *certs=NULL;
- STACK *crls=NULL;
+ STACK
_OF(X509_CRL)
*crls=NULL;
i=OBJ_obj2nid(p7->type);
switch (i)
i=OBJ_obj2nid(p7->type);
switch (i)
@@
-268,9
+266,9
@@
bad:
{
X509_CRL *crl;
{
X509_CRL *crl;
- for (i=0; i<sk_num(crls); i++)
+ for (i=0; i<sk_
X509_CRL_
num(crls); i++)
{
{
- crl=
(X509_CRL *)sk
_value(crls,i);
+ crl=
sk_X509_CRL
_value(crls,i);
X509_NAME_oneline(crl->crl->issuer,buf,256);
BIO_puts(out,"issuer= ");
X509_NAME_oneline(crl->crl->issuer,buf,256);
BIO_puts(out,"issuer= ");