use correct name for duplicate
authorDr. Stephen Henson <steve@openssl.org>
Thu, 21 Jul 2016 15:23:48 +0000 (16:23 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 22 Jul 2016 11:07:13 +0000 (12:07 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/rehash.c

index 4686b53..ee362b5 100644 (file)
@@ -114,8 +114,8 @@ static int add_entry(enum Type type, unsigned int hash, const char *filename,
     for (ep = bp->first_entry; ep; ep = ep->next) {
         if (digest && memcmp(digest, ep->digest, evpmdsize) == 0) {
             BIO_printf(bio_err,
-                       "%s: skipping duplicate certificate in %s\n",
-                       opt_getprog(), filename);
+                       "%s: skipping duplicate %s in %s\n", opt_getprog(),
+                       type == TYPE_CERT ? "certificate" : "CRL", filename);
             return 1;
         }
         if (strcmp(filename, ep->filename) == 0) {