Lines Matching refs:dn
106 char *dn, *eom;
112 dn = dst;
121 if (dn != dst) {
122 if (dn >= eom) {
126 *dn++ = '.';
132 if (dn + l >= eom) {
144 if ((m = decode_bitstring(&cp, dn, eom)) < 0)
149 dn += m;
155 if (dn + 1 >= eom) {
159 *dn++ = '\\';
160 *dn++ = (char)c;
162 if (dn + 3 >= eom) {
166 *dn++ = '\\';
167 *dn++ = digits[c / 100];
168 *dn++ = digits[(c % 100) / 10];
169 *dn++ = digits[c % 10];
171 if (dn >= eom) {
175 *dn++ = (char)c;
179 if (dn == dst) {
180 if (dn >= eom) {
184 *dn++ = '.';
186 if (dn >= eom) {
190 *dn++ = '\0';
191 return (dn - dst);
341 u_char *dn, *eom;
347 dn = dst;
350 if (dn >= eom) {
360 *dn++ = n;
365 if (dn + l >= eom) {
372 *dn++ = tolower(c);
374 *dn++ = c;
377 *dn++ = '\0';
378 return (dn - dst);
742 const u_char *dn, *cp, *sp;
756 dn = domain;
766 if (n != *dn++)
770 if (mklower(*dn++) !=
774 if (*dn == '\0' && *cp == '\0')
776 if (*dn)
797 decode_bitstring(const unsigned char **cpp, char *dn, const char *eom)
800 char *beg = dn, tc;
807 if (dn + plen >= eom)
811 i = SPRINTF((dn, "\\[x"));
814 dn += i;
816 i = SPRINTF((dn, "%02x", *cp & 0xff));
819 dn += i;
823 i = SPRINTF((dn, "%02x", tc & (0xff << (8 - b))));
826 dn += i;
829 i = SPRINTF((dn, "%1x",
833 dn += i;
835 i = SPRINTF((dn, "/%d]", blen));
838 dn += i;
841 return(dn - beg);