OLD | NEW |
1 /* apps/errstr.c */ | 1 /* apps/errstr.c */ |
2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
8 * | 8 * |
9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 out=BIO_new(BIO_s_file()); | 91 out=BIO_new(BIO_s_file()); |
92 if ((out != NULL) && BIO_set_fp(out,stdout,BIO_NOCLOSE)) | 92 if ((out != NULL) && BIO_set_fp(out,stdout,BIO_NOCLOSE)) |
93 { | 93 { |
94 #ifdef OPENSSL_SYS_VMS | 94 #ifdef OPENSSL_SYS_VMS |
95 { | 95 { |
96 BIO *tmpbio = BIO_new(BIO_f_linebuffer()); | 96 BIO *tmpbio = BIO_new(BIO_f_linebuffer()); |
97 out = BIO_push(tmpbio, out); | 97 out = BIO_push(tmpbio, out); |
98 } | 98 } |
99 #endif | 99 #endif |
100 » » » lh_node_stats_bio((LHASH *)ERR_get_string_table(),out); | 100 » » » lh_ERR_STRING_DATA_node_stats_bio( |
101 » » » lh_stats_bio((LHASH *)ERR_get_string_table(),out); | 101 » » » » » » ERR_get_string_table(), out); |
102 » » » lh_node_usage_stats_bio((LHASH *) | 102 » » » lh_ERR_STRING_DATA_stats_bio(ERR_get_string_table(), |
103 » » » » ERR_get_string_table(),out); | 103 » » » » » » out); |
| 104 » » » lh_ERR_STRING_DATA_node_usage_stats_bio( |
| 105 » » » » » » ERR_get_string_table(),out); |
104 } | 106 } |
105 if (out != NULL) BIO_free_all(out); | 107 if (out != NULL) BIO_free_all(out); |
106 argc--; | 108 argc--; |
107 argv++; | 109 argv++; |
108 } | 110 } |
109 | 111 |
110 for (i=1; i<argc; i++) | 112 for (i=1; i<argc; i++) |
111 { | 113 { |
112 if (sscanf(argv[i],"%lx",&l)) | 114 if (sscanf(argv[i],"%lx",&l)) |
113 { | 115 { |
114 ERR_error_string_n(l, buf, sizeof buf); | 116 ERR_error_string_n(l, buf, sizeof buf); |
115 printf("%s\n",buf); | 117 printf("%s\n",buf); |
116 } | 118 } |
117 else | 119 else |
118 { | 120 { |
119 printf("%s: bad error code\n",argv[i]); | 121 printf("%s: bad error code\n",argv[i]); |
120 printf("usage: errstr [-stats] <errno> ...\n"); | 122 printf("usage: errstr [-stats] <errno> ...\n"); |
121 ret++; | 123 ret++; |
122 } | 124 } |
123 } | 125 } |
124 apps_shutdown(); | 126 apps_shutdown(); |
125 OPENSSL_EXIT(ret); | 127 OPENSSL_EXIT(ret); |
126 } | 128 } |
OLD | NEW |