fix printout of expiry days if -enddate is used in ca
[openssl.git] / apps / errstr.c
index fedb568d686988ce9da114c63495227f2b927bfe..fe3b98077ee25a7ef9fc676b71686dcd17d32615 100644 (file)
@@ -97,10 +97,12 @@ int MAIN(int argc, char **argv)
                        out = BIO_push(tmpbio, out);
                        }
 #endif
-                       lh_node_stats_bio((LHASH *)ERR_get_string_table(),out);
-                       lh_stats_bio((LHASH *)ERR_get_string_table(),out);
-                       lh_node_usage_stats_bio((LHASH *)
-                               ERR_get_string_table(),out);
+                       lh_ERR_STRING_DATA_node_stats_bio(
+                                                 ERR_get_string_table(), out);
+                       lh_ERR_STRING_DATA_stats_bio(ERR_get_string_table(),
+                                                    out);
+                       lh_ERR_STRING_DATA_node_usage_stats_bio(
+                                                   ERR_get_string_table(),out);
                        }
                if (out != NULL) BIO_free_all(out);
                argc--;
@@ -122,5 +124,5 @@ int MAIN(int argc, char **argv)
                        }
                }
        apps_shutdown();
-       EXIT(ret);
+       OPENSSL_EXIT(ret);
        }