projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
argc counting bug fixed.
[oweals/openssl.git]
/
apps
/
crl2p7.c
diff --git
a/apps/crl2p7.c
b/apps/crl2p7.c
index 12e535a282bcb47dd5e1ac4d9a9bccf9a8d21065..ba4eba16bf9ca1932dd5524ae80de0e9a00a1c89 100644
(file)
--- a/
apps/crl2p7.c
+++ b/
apps/crl2p7.c
@@
-72,12
+72,7
@@
#include <openssl/pem.h>
#include <openssl/objects.h>
#include <openssl/pem.h>
#include <openssl/objects.h>
-#ifndef NOPROTO
static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile);
static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile);
-#else
-static int add_certs_from_file();
-#endif
-
#undef PROG
#define PROG crl2pkcs7_main
#undef PROG
#define PROG crl2pkcs7_main
@@
-292,7
+287,7
@@
static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile)
BIO *in=NULL;
int count=0;
int ret= -1;
BIO *in=NULL;
int count=0;
int ret= -1;
- STACK *sk=NULL;
+ STACK
_OF(X509_INFO)
*sk=NULL;
X509_INFO *xi;
if ((stat(certfile,&st) != 0))
X509_INFO *xi;
if ((stat(certfile,&st) != 0))
@@
-316,9
+311,9
@@
static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile)
}
/* scan over it and pull out the CRL's */
}
/* scan over it and pull out the CRL's */
- while (sk_num(sk))
+ while (sk_
X509_INFO_
num(sk))
{
{
- xi=
(X509_INFO *)sk
_shift(sk);
+ xi=
sk_X509_INFO
_shift(sk);
if (xi->x509 != NULL)
{
sk_X509_push(stack,xi->x509);
if (xi->x509 != NULL)
{
sk_X509_push(stack,xi->x509);
@@
-332,7
+327,7
@@
static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile)
end:
/* never need to Free x */
if (in != NULL) BIO_free(in);
end:
/* never need to Free x */
if (in != NULL) BIO_free(in);
- if (sk != NULL) sk_free(sk);
+ if (sk != NULL) sk_
X509_INFO_
free(sk);
return(ret);
}
return(ret);
}