| @@ -417,27 +417,27 @@ $1 == "CKA_LABEL" { | | | @@ -417,27 +417,27 @@ $1 == "CKA_LABEL" { |
417 | } | | 417 | } |
418 | label_lineno[lolab] = NR | | 418 | label_lineno[lolab] = NR |
419 | } else { | | 419 | } else { |
420 | if (VERBOSE) | | 420 | if (VERBOSE) |
421 | printf "line %d: trust \"%s\"\n", NR, label | | 421 | printf "line %d: trust \"%s\"\n", NR, label |
422 | # Hack: Take the highest-numbered counter for this label. | | 422 | # Hack: Take the highest-numbered counter for this label. |
423 | if (lolab in label_counter) { | | 423 | if (lolab in label_counter) { |
424 | label = sprintf("%s.%d", label, label_counter[lolab]) | | 424 | label = sprintf("%s.%d", label, label_counter[lolab]) |
425 | lolab = tolower(label) | | 425 | lolab = tolower(label) |
426 | printf "line %s: assuming duplicate is \"%s\"\n", \ | | 426 | printf "line %s: assuming duplicate is \"%s\"\n", \ |
427 | NR, label | | 427 | NR, label |
428 | } | | 428 | } |
429 | if (!(lolab in label_lineno)) { | | 429 | if (!(lolab in label_lineno)) { |
430 | err(snprintf("Missing label: %s", label)) | | 430 | err(sprintf("Missing label: %s", label)) |
431 | skip() | | 431 | skip() |
432 | next | | 432 | next |
433 | } | | 433 | } |
434 | } | | 434 | } |
435 | | | 435 | |
436 | # Apply special cases. | | 436 | # Apply special cases. |
437 | if (cka_class == "CKO_CERTIFICATE") { | | 437 | if (cka_class == "CKO_CERTIFICATE") { |
438 | if (label in special_distrust) { | | 438 | if (label in special_distrust) { |
439 | printf "line %s: specially distrusting \"%s\"\n", \ | | 439 | printf "line %s: specially distrusting \"%s\"\n", \ |
440 | NR, label | | 440 | NR, label |
441 | distrusted[lolab] = 1 | | 441 | distrusted[lolab] = 1 |
442 | delete special_distrust[label] | | 442 | delete special_distrust[label] |
443 | } | | 443 | } |