Hello,
I've found a bug in the crl2pkc7 command in the master branch.
openssl crl2pkcs7 -in test.crl -certfile cert.pem -out p7.pem
Output:
error opening the file, -in
error loading certificates
140737354073768:error:02001002:system library:fopen:No such file or
directory:bss_file.c:175:fopen('-in','r')
140737354073768:error:2006D080:BIO routines:BIO_new_file:no such
file:bss_file.c:178:
The patch I attach fixes it.
--
SY, Dmitry Belyavsky
--- a/apps/crl2p7.c
+++ b/apps/crl2p7.c
@@ -138,7 +138,7 @@ int crl2pkcs7_main(int argc, char **argv)
if ((certflst == NULL)
&& (certflst = sk_OPENSSL_STRING_new_null()) == NULL)
goto end;
- if (!sk_OPENSSL_STRING_push(certflst, *(++argv))) {
+ if (!sk_OPENSSL_STRING_push(certflst, opt_arg())) {
sk_OPENSSL_STRING_free(certflst);
goto end;
}
_______________________________________________
openssl-bugs-mod mailing list
[email protected]
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod
_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev