[openssl-dev] [openssl.org #4104] A bug in the crl2pkc7 command in master

Dmitry Belyavsky via RT rt at openssl.org
Wed Oct 21 19:41:58 UTC 2015


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

-------------- next part --------------
--- 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;
             }
-------------- next part --------------
_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod


More information about the openssl-dev mailing list