Lines Matching defs:dn
100 char *dn, *eom;
106 dn = dst;
115 if (dn != dst) {
116 if (dn >= eom) {
120 *dn++ = '.';
126 if (dn + l >= eom) {
138 if ((m = decode_bitstring(&cp, dn, eom)) < 0)
143 dn += m;
149 if (dn + 1 >= eom) {
153 *dn++ = '\\';
154 *dn++ = (char)c;
156 if (dn + 3 >= eom) {
160 *dn++ = '\\';
161 *dn++ = digits[c / 100];
162 *dn++ = digits[(c % 100) / 10];
163 *dn++ = digits[c % 10];
165 if (dn >= eom) {
169 *dn++ = (char)c;
173 if (dn == dst) {
174 if (dn >= eom) {
178 *dn++ = '.';
180 if (dn >= eom) {
184 *dn++ = '\0';
185 return (dn - dst);
357 u_char *dn, *eom;
363 dn = dst;
366 if (dn >= eom) {
376 *dn++ = n;
381 if (dn + l >= eom) {
388 *dn++ = tolower(c);
390 *dn++ = c;
393 *dn++ = '\0';
394 return (dn - dst);
924 const u_char *dn, *cp, *sp;
938 dn = domain;
947 if (n != *dn++)
951 if (mklower(*dn++) !=
955 if (*dn == '\0' && *cp == '\0')
957 if (*dn)
978 decode_bitstring(const unsigned char **cpp, char *dn, const char *eom)
981 char *beg = dn, tc;
988 if (dn + plen >= eom)
992 i = SPRINTF((dn, "\\[x"));
995 dn += i;
997 i = SPRINTF((dn, "%02x", *cp & 0xff));
1000 dn += i;
1004 i = SPRINTF((dn, "%02x", tc & (0xff << (8 - b))));
1007 dn += i;
1010 i = SPRINTF((dn, "%1x",
1014 dn += i;
1016 i = SPRINTF((dn, "/%d]", blen));
1019 dn += i;
1022 return (dn - beg);