summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_strnid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/a_strnid.c')
-rw-r--r--src/lib/libcrypto/asn1/a_strnid.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/lib/libcrypto/asn1/a_strnid.c b/src/lib/libcrypto/asn1/a_strnid.c
index 74bc7b316c..6c59dcc8ec 100644
--- a/src/lib/libcrypto/asn1/a_strnid.c
+++ b/src/lib/libcrypto/asn1/a_strnid.c
@@ -264,26 +264,24 @@ main()
264 int i, last_nid = -1; 264 int i, last_nid = -1;
265 265
266 for (tmp = tbl_standard, i = 0; 266 for (tmp = tbl_standard, i = 0;
267 i < sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE); i++, tmp++) 267 i < sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE); i++, tmp++) {
268 { 268 if (tmp->nid < last_nid) {
269 if (tmp->nid < last_nid) 269 last_nid = 0;
270 { 270 break;
271 last_nid = 0;
272 break;
273 }
274 last_nid = tmp->nid;
275 } 271 }
272 last_nid = tmp->nid;
273 }
276 274
277 if (last_nid != 0) 275 if (last_nid != 0) {
278 {
279 printf("Table order OK\n"); 276 printf("Table order OK\n");
280 exit(0); 277 exit(0);
281 } 278 }
282 279
283 for (tmp = tbl_standard, i = 0; 280 for (tmp = tbl_standard, i = 0;
284 i < sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE); i++, tmp++) 281 i < sizeof(tbl_standard)/sizeof(ASN1_STRING_TABLE); i++, tmp++) {
285 printf("Index %d, NID %d, Name=%s\n", i, tmp->nid, 282 printf("Index %d, NID %d, Name=%s\n", i, tmp->nid,
286 OBJ_nid2ln(tmp->nid)); 283 OBJ_nid2ln(tmp->nid));
284 }
287 285
288} 286}
289 287