summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_strnid.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/asn1/a_strnid.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/lib/libcrypto/asn1/a_strnid.c b/src/lib/libcrypto/asn1/a_strnid.c
index ec3b160b9f..fb985db27f 100644
--- a/src/lib/libcrypto/asn1/a_strnid.c
+++ b/src/lib/libcrypto/asn1/a_strnid.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_strnid.c,v 1.14 2014/06/12 15:49:27 deraadt Exp $ */ 1/* $OpenBSD: a_strnid.c,v 1.15 2014/06/22 13:17:08 deraadt Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -286,34 +286,3 @@ st_free(ASN1_STRING_TABLE *tbl)
286 286
287 287
288IMPLEMENT_STACK_OF(ASN1_STRING_TABLE) 288IMPLEMENT_STACK_OF(ASN1_STRING_TABLE)
289
290#ifdef STRING_TABLE_TEST
291
292main()
293{
294 ASN1_STRING_TABLE *tmp;
295 int i, last_nid = -1;
296
297 for (tmp = tbl_standard, i = 0;
298 i < sizeof(tbl_standard) / sizeof(ASN1_STRING_TABLE); i++, tmp++) {
299 if (tmp->nid < last_nid) {
300 last_nid = 0;
301 break;
302 }
303 last_nid = tmp->nid;
304 }
305
306 if (last_nid != 0) {
307 printf("Table order OK\n");
308 exit(0);
309 }
310
311 for (tmp = tbl_standard, i = 0;
312 i < sizeof(tbl_standard) / sizeof(ASN1_STRING_TABLE); i++, tmp++) {
313 printf("Index %d, NID %d, Name=%s\n", i, tmp->nid,
314 OBJ_nid2ln(tmp->nid));
315 }
316
317}
318
319#endif