X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Ferrstr.c;h=fe3b98077ee25a7ef9fc676b71686dcd17d32615;hp=c86b5d940bcac9e87482f1c5e7215c3b12028847;hb=e933f91f50108a43c0198cdc63ecdfdbc77b4d0d;hpb=ec577822f95a8bca0023c5c77cef1a4916822d4a diff --git a/apps/errstr.c b/apps/errstr.c index c86b5d940b..fe3b98077e 100644 --- a/apps/errstr.c +++ b/apps/errstr.c @@ -68,6 +68,8 @@ #undef PROG #define PROG errstr_main +int MAIN(int, char **); + int MAIN(int argc, char **argv) { int i,ret=0; @@ -89,12 +91,20 @@ int MAIN(int argc, char **argv) out=BIO_new(BIO_s_file()); if ((out != NULL) && BIO_set_fp(out,stdout,BIO_NOCLOSE)) { - 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); +#ifdef OPENSSL_SYS_VMS + { + BIO *tmpbio = BIO_new(BIO_f_linebuffer()); + out = BIO_push(tmpbio, out); + } +#endif + 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(out); + if (out != NULL) BIO_free_all(out); argc--; argv++; } @@ -102,7 +112,10 @@ int MAIN(int argc, char **argv) for (i=1; i