~mcf/dnssec-rr

b0920a00d60d67fb295d3c0ce151ef77f1ea7959 — Michael Forney 6 months ago 18fc144 master
Use lowercase for domain names so they are in canonical form
1 files changed, 2 insertions(+), 2 deletions(-)

M dnssec.c
M dnssec.c => dnssec.c +2 -2
@@ 157,7 157,7 @@ dname_parse(const char *s, char **end, unsigned char dn[static DNAME_MAX], const
					++s;
				if (len + label_len == DNAME_MAX - 2 || label_len == LABEL_MAX)
					return 0;
				dn[len + 1 + label_len++] = *s;
				dn[len + 1 + label_len++] = tolower(*s);
			}
			++s;
			break;


@@ 176,7 176,7 @@ dname_parse(const char *s, char **end, unsigned char dn[static DNAME_MAX], const
				}
				if (len + label_len == DNAME_MAX - 2 || label_len == LABEL_MAX)
					return 0;
				dn[len + 1 + label_len++] = c;
				dn[len + 1 + label_len++] = tolower(c);
			}
		}
		if (label_len == 0)