Deleted Added
full compact
errstr.c (68651) errstr.c (109998)
1/* apps/errstr.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 77 unchanged lines hidden (view full) ---

86
87 if ((argc > 1) && (strcmp(argv[1],"-stats") == 0))
88 {
89 BIO *out=NULL;
90
91 out=BIO_new(BIO_s_file());
92 if ((out != NULL) && BIO_set_fp(out,stdout,BIO_NOCLOSE))
93 {
1/* apps/errstr.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 77 unchanged lines hidden (view full) ---

86
87 if ((argc > 1) && (strcmp(argv[1],"-stats") == 0))
88 {
89 BIO *out=NULL;
90
91 out=BIO_new(BIO_s_file());
92 if ((out != NULL) && BIO_set_fp(out,stdout,BIO_NOCLOSE))
93 {
94#ifdef VMS
94#ifdef OPENSSL_SYS_VMS
95 {
96 BIO *tmpbio = BIO_new(BIO_f_linebuffer());
97 out = BIO_push(tmpbio, out);
98 }
99#endif
100 lh_node_stats_bio((LHASH *)ERR_get_string_table(),out);
101 lh_stats_bio((LHASH *)ERR_get_string_table(),out);
102 lh_node_usage_stats_bio((LHASH *)

--- 13 unchanged lines hidden (view full) ---

116 }
117 else
118 {
119 printf("%s: bad error code\n",argv[i]);
120 printf("usage: errstr [-stats] <errno> ...\n");
121 ret++;
122 }
123 }
95 {
96 BIO *tmpbio = BIO_new(BIO_f_linebuffer());
97 out = BIO_push(tmpbio, out);
98 }
99#endif
100 lh_node_stats_bio((LHASH *)ERR_get_string_table(),out);
101 lh_stats_bio((LHASH *)ERR_get_string_table(),out);
102 lh_node_usage_stats_bio((LHASH *)

--- 13 unchanged lines hidden (view full) ---

116 }
117 else
118 {
119 printf("%s: bad error code\n",argv[i]);
120 printf("usage: errstr [-stats] <errno> ...\n");
121 ret++;
122 }
123 }
124 EXIT(ret);
124 apps_shutdown();
125 OPENSSL_EXIT(ret);
125 }
126 }