Lines Matching full:dn

98 	char *dn, *eom;  in ns_name_ntop()  local
104 dn = dst; in ns_name_ntop()
113 if (dn != dst) { in ns_name_ntop()
114 if (dn >= eom) { in ns_name_ntop()
118 *dn++ = '.'; in ns_name_ntop()
124 if (dn + l >= eom) { in ns_name_ntop()
136 if ((m = decode_bitstring(&cp, dn, eom)) < 0) in ns_name_ntop()
141 dn += m; in ns_name_ntop()
147 if (dn + 1 >= eom) { in ns_name_ntop()
151 *dn++ = '\\'; in ns_name_ntop()
152 *dn++ = (char)c; in ns_name_ntop()
154 if (dn + 3 >= eom) { in ns_name_ntop()
158 *dn++ = '\\'; in ns_name_ntop()
159 *dn++ = digits[c / 100]; in ns_name_ntop()
160 *dn++ = digits[(c % 100) / 10]; in ns_name_ntop()
161 *dn++ = digits[c % 10]; in ns_name_ntop()
163 if (dn >= eom) { in ns_name_ntop()
167 *dn++ = (char)c; in ns_name_ntop()
171 if (dn == dst) { in ns_name_ntop()
172 if (dn >= eom) { in ns_name_ntop()
176 *dn++ = '.'; in ns_name_ntop()
178 if (dn >= eom) { in ns_name_ntop()
182 *dn++ = '\0'; in ns_name_ntop()
183 return (dn - dst); in ns_name_ntop()
355 u_char *dn, *eom; in ns_name_ntol() local
361 dn = dst; in ns_name_ntol()
364 if (dn >= eom) { in ns_name_ntol()
374 *dn++ = n; in ns_name_ntol()
379 if (dn + l >= eom) { in ns_name_ntol()
386 *dn++ = tolower(c); in ns_name_ntol()
388 *dn++ = c; in ns_name_ntol()
391 *dn++ = '\0'; in ns_name_ntol()
392 return (dn - dst); in ns_name_ntol()
923 const u_char *dn, *cp, *sp; in dn_find() local
937 dn = domain; in dn_find()
946 if (n != *dn++) in dn_find()
950 if (mklower(*dn++) != in dn_find()
954 if (*dn == '\0' && *cp == '\0') in dn_find()
956 if (*dn) in dn_find()
977 decode_bitstring(const unsigned char **cpp, char *dn, const char *eom) in decode_bitstring() argument
980 char *beg = dn, tc; in decode_bitstring()
987 if (dn + plen >= eom) in decode_bitstring()
991 i = SPRINTF((dn, "\\[x")); in decode_bitstring()
994 dn += i; in decode_bitstring()
996 i = SPRINTF((dn, "%02x", *cp & 0xff)); in decode_bitstring()
999 dn += i; in decode_bitstring()
1003 i = SPRINTF((dn, "%02x", tc & (0xff << (8 - b)))); in decode_bitstring()
1006 dn += i; in decode_bitstring()
1009 i = SPRINTF((dn, "%1x", in decode_bitstring()
1013 dn += i; in decode_bitstring()
1015 i = SPRINTF((dn, "/%d]", blen)); in decode_bitstring()
1018 dn += i; in decode_bitstring()
1021 return (dn - beg); in decode_bitstring()