diff options
author | tedu <> | 2014-07-09 21:13:34 +0000 |
---|---|---|
committer | tedu <> | 2014-07-09 21:13:34 +0000 |
commit | 555f9c8f48cb40e936e75dc7774680f7ba3e608d (patch) | |
tree | a2d396eff20e14e75fe2c8f60b609ac4e50aaed3 | |
parent | 5ca6e8aa8ac2a7f79cfa93ef9a29f39abfc28d80 (diff) | |
download | openbsd-555f9c8f48cb40e936e75dc7774680f7ba3e608d.tar.gz openbsd-555f9c8f48cb40e936e75dc7774680f7ba3e608d.tar.bz2 openbsd-555f9c8f48cb40e936e75dc7774680f7ba3e608d.zip |
unfidef RL_DEBUG. hopefully it's been debugged by now
-rw-r--r-- | src/lib/libssl/src/apps/apps.c | 39 | ||||
-rw-r--r-- | src/lib/libssl/src/apps/ca.c | 13 |
2 files changed, 2 insertions, 50 deletions
diff --git a/src/lib/libssl/src/apps/apps.c b/src/lib/libssl/src/apps/apps.c index e586ec26cc..a9dd83c094 100644 --- a/src/lib/libssl/src/apps/apps.c +++ b/src/lib/libssl/src/apps/apps.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: apps.c,v 1.63 2014/07/09 21:02:35 tedu Exp $ */ | 1 | /* $OpenBSD: apps.c,v 1.64 2014/07/09 21:13:34 tedu Exp $ */ |
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 | * |
@@ -1451,9 +1451,6 @@ save_serial(char *serialfile, char *suffix, BIGNUM *serial, | |||
1451 | BIO_printf(bio_err, "serial too long\n"); | 1451 | BIO_printf(bio_err, "serial too long\n"); |
1452 | goto err; | 1452 | goto err; |
1453 | } | 1453 | } |
1454 | #ifdef RL_DEBUG | ||
1455 | BIO_printf(bio_err, "DEBUG: writing \"%s\"\n", buf[0]); | ||
1456 | #endif | ||
1457 | out = BIO_new(BIO_s_file()); | 1454 | out = BIO_new(BIO_s_file()); |
1458 | if (out == NULL) { | 1455 | if (out == NULL) { |
1459 | ERR_print_errors(bio_err); | 1456 | ERR_print_errors(bio_err); |
@@ -1501,10 +1498,6 @@ rotate_serial(char *serialfile, char *new_suffix, char *old_suffix) | |||
1501 | snprintf(buf[0], sizeof buf[0], "%s.%s", serialfile, new_suffix); | 1498 | snprintf(buf[0], sizeof buf[0], "%s.%s", serialfile, new_suffix); |
1502 | snprintf(buf[1], sizeof buf[1], "%s.%s", serialfile, old_suffix); | 1499 | snprintf(buf[1], sizeof buf[1], "%s.%s", serialfile, old_suffix); |
1503 | 1500 | ||
1504 | #ifdef RL_DEBUG | ||
1505 | BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n", | ||
1506 | serialfile, buf[1]); | ||
1507 | #endif | ||
1508 | 1501 | ||
1509 | if (rename(serialfile, buf[1]) < 0 && | 1502 | if (rename(serialfile, buf[1]) < 0 && |
1510 | errno != ENOENT && errno != ENOTDIR) { | 1503 | errno != ENOENT && errno != ENOTDIR) { |
@@ -1514,10 +1507,6 @@ rotate_serial(char *serialfile, char *new_suffix, char *old_suffix) | |||
1514 | goto err; | 1507 | goto err; |
1515 | } | 1508 | } |
1516 | 1509 | ||
1517 | #ifdef RL_DEBUG | ||
1518 | BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n", | ||
1519 | buf[0], serialfile); | ||
1520 | #endif | ||
1521 | 1510 | ||
1522 | if (rename(buf[0], serialfile) < 0) { | 1511 | if (rename(buf[0], serialfile) < 0) { |
1523 | BIO_printf(bio_err, "unable to rename %s to %s\n", | 1512 | BIO_printf(bio_err, "unable to rename %s to %s\n", |
@@ -1610,10 +1599,6 @@ load_index(char *dbfile, DB_ATTR *db_attr) | |||
1610 | if (dbattr_conf) { | 1599 | if (dbattr_conf) { |
1611 | char *p = NCONF_get_string(dbattr_conf, NULL, "unique_subject"); | 1600 | char *p = NCONF_get_string(dbattr_conf, NULL, "unique_subject"); |
1612 | if (p) { | 1601 | if (p) { |
1613 | #ifdef RL_DEBUG | ||
1614 | BIO_printf(bio_err, | ||
1615 | "DEBUG[load_index]: unique_subject = \"%s\"\n", p); | ||
1616 | #endif | ||
1617 | retdb->attributes.unique_subject = parse_yesno(p, 1); | 1602 | retdb->attributes.unique_subject = parse_yesno(p, 1); |
1618 | } | 1603 | } |
1619 | } | 1604 | } |
@@ -1668,9 +1653,6 @@ save_index(const char *dbfile, const char *suffix, CA_DB *db) | |||
1668 | snprintf(buf[1], sizeof buf[1], "%s.attr.%s", dbfile, suffix); | 1653 | snprintf(buf[1], sizeof buf[1], "%s.attr.%s", dbfile, suffix); |
1669 | snprintf(buf[0], sizeof buf[0], "%s.%s", dbfile, suffix); | 1654 | snprintf(buf[0], sizeof buf[0], "%s.%s", dbfile, suffix); |
1670 | 1655 | ||
1671 | #ifdef RL_DEBUG | ||
1672 | BIO_printf(bio_err, "DEBUG: writing \"%s\"\n", buf[0]); | ||
1673 | #endif | ||
1674 | 1656 | ||
1675 | if (BIO_write_filename(out, buf[0]) <= 0) { | 1657 | if (BIO_write_filename(out, buf[0]) <= 0) { |
1676 | perror(dbfile); | 1658 | perror(dbfile); |
@@ -1685,9 +1667,6 @@ save_index(const char *dbfile, const char *suffix, CA_DB *db) | |||
1685 | 1667 | ||
1686 | out = BIO_new(BIO_s_file()); | 1668 | out = BIO_new(BIO_s_file()); |
1687 | 1669 | ||
1688 | #ifdef RL_DEBUG | ||
1689 | BIO_printf(bio_err, "DEBUG: writing \"%s\"\n", buf[1]); | ||
1690 | #endif | ||
1691 | 1670 | ||
1692 | if (BIO_write_filename(out, buf[1]) <= 0) { | 1671 | if (BIO_write_filename(out, buf[1]) <= 0) { |
1693 | perror(buf[2]); | 1672 | perror(buf[2]); |
@@ -1724,10 +1703,6 @@ rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix) | |||
1724 | snprintf(buf[1], sizeof buf[1], "%s.%s", dbfile, old_suffix); | 1703 | snprintf(buf[1], sizeof buf[1], "%s.%s", dbfile, old_suffix); |
1725 | snprintf(buf[3], sizeof buf[3], "%s.attr.%s", dbfile, old_suffix); | 1704 | snprintf(buf[3], sizeof buf[3], "%s.attr.%s", dbfile, old_suffix); |
1726 | 1705 | ||
1727 | #ifdef RL_DEBUG | ||
1728 | BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n", | ||
1729 | dbfile, buf[1]); | ||
1730 | #endif | ||
1731 | 1706 | ||
1732 | if (rename(dbfile, buf[1]) < 0 && errno != ENOENT && errno != ENOTDIR) { | 1707 | if (rename(dbfile, buf[1]) < 0 && errno != ENOENT && errno != ENOTDIR) { |
1733 | BIO_printf(bio_err, "unable to rename %s to %s\n", | 1708 | BIO_printf(bio_err, "unable to rename %s to %s\n", |
@@ -1736,10 +1711,6 @@ rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix) | |||
1736 | goto err; | 1711 | goto err; |
1737 | } | 1712 | } |
1738 | 1713 | ||
1739 | #ifdef RL_DEBUG | ||
1740 | BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n", | ||
1741 | buf[0], dbfile); | ||
1742 | #endif | ||
1743 | 1714 | ||
1744 | if (rename(buf[0], dbfile) < 0) { | 1715 | if (rename(buf[0], dbfile) < 0) { |
1745 | BIO_printf(bio_err, "unable to rename %s to %s\n", | 1716 | BIO_printf(bio_err, "unable to rename %s to %s\n", |
@@ -1749,10 +1720,6 @@ rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix) | |||
1749 | goto err; | 1720 | goto err; |
1750 | } | 1721 | } |
1751 | 1722 | ||
1752 | #ifdef RL_DEBUG | ||
1753 | BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n", | ||
1754 | buf[4], buf[3]); | ||
1755 | #endif | ||
1756 | 1723 | ||
1757 | if (rename(buf[4], buf[3]) < 0 && errno != ENOENT && errno != ENOTDIR) { | 1724 | if (rename(buf[4], buf[3]) < 0 && errno != ENOENT && errno != ENOTDIR) { |
1758 | BIO_printf(bio_err, "unable to rename %s to %s\n", | 1725 | BIO_printf(bio_err, "unable to rename %s to %s\n", |
@@ -1763,10 +1730,6 @@ rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix) | |||
1763 | goto err; | 1730 | goto err; |
1764 | } | 1731 | } |
1765 | 1732 | ||
1766 | #ifdef RL_DEBUG | ||
1767 | BIO_printf(bio_err, "DEBUG: renaming \"%s\" to \"%s\"\n", | ||
1768 | buf[2], buf[4]); | ||
1769 | #endif | ||
1770 | 1733 | ||
1771 | if (rename(buf[2], buf[4]) < 0) { | 1734 | if (rename(buf[2], buf[4]) < 0) { |
1772 | BIO_printf(bio_err, "unable to rename %s to %s\n", | 1735 | BIO_printf(bio_err, "unable to rename %s to %s\n", |
diff --git a/src/lib/libssl/src/apps/ca.c b/src/lib/libssl/src/apps/ca.c index 2192d91876..a191c18211 100644 --- a/src/lib/libssl/src/apps/ca.c +++ b/src/lib/libssl/src/apps/ca.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ca.c,v 1.60 2014/06/28 04:39:41 deraadt Exp $ */ | 1 | /* $OpenBSD: ca.c,v 1.61 2014/07/09 21:13:34 tedu Exp $ */ |
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 | * |
@@ -603,20 +603,9 @@ bad: | |||
603 | db_attr.unique_subject = 1; | 603 | db_attr.unique_subject = 1; |
604 | p = NCONF_get_string(conf, section, ENV_UNIQUE_SUBJECT); | 604 | p = NCONF_get_string(conf, section, ENV_UNIQUE_SUBJECT); |
605 | if (p) { | 605 | if (p) { |
606 | #ifdef RL_DEBUG | ||
607 | BIO_printf(bio_err, "DEBUG: unique_subject = \"%s\"\n", p); | ||
608 | #endif | ||
609 | db_attr.unique_subject = parse_yesno(p, 1); | 606 | db_attr.unique_subject = parse_yesno(p, 1); |
610 | } else | 607 | } else |
611 | ERR_clear_error(); | 608 | ERR_clear_error(); |
612 | #ifdef RL_DEBUG | ||
613 | if (!p) | ||
614 | BIO_printf(bio_err, "DEBUG: unique_subject undefined\n", p); | ||
615 | #endif | ||
616 | #ifdef RL_DEBUG | ||
617 | BIO_printf(bio_err, "DEBUG: configured unique_subject is %d\n", | ||
618 | db_attr.unique_subject); | ||
619 | #endif | ||
620 | 609 | ||
621 | in = BIO_new(BIO_s_file()); | 610 | in = BIO_new(BIO_s_file()); |
622 | out = BIO_new(BIO_s_file()); | 611 | out = BIO_new(BIO_s_file()); |