diff options
Diffstat (limited to 'src/lib/libc/net/res_comp.c')
| -rw-r--r-- | src/lib/libc/net/res_comp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libc/net/res_comp.c b/src/lib/libc/net/res_comp.c index 9bdc26dd24..69a6ce0abb 100644 --- a/src/lib/libc/net/res_comp.c +++ b/src/lib/libc/net/res_comp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: res_comp.c,v 1.13 2005/08/06 20:30:03 espie Exp $ */ | 1 | /* $OpenBSD: res_comp.c,v 1.14 2008/04/16 22:35:23 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * ++Copyright++ 1985, 1993 | 4 | * ++Copyright++ 1985, 1993 |
| @@ -332,6 +332,7 @@ dn_find(u_char *exp_dn, u_char *msg, u_char **dnptrs, u_char **lastdnptr) | |||
| 332 | #define PERIOD 0x2e | 332 | #define PERIOD 0x2e |
| 333 | #define hyphenchar(c) ((c) == 0x2d) | 333 | #define hyphenchar(c) ((c) == 0x2d) |
| 334 | #define bslashchar(c) ((c) == 0x5c) | 334 | #define bslashchar(c) ((c) == 0x5c) |
| 335 | #define underscorechar(c) ((c) == 0x5f) | ||
| 335 | #define periodchar(c) ((c) == PERIOD) | 336 | #define periodchar(c) ((c) == PERIOD) |
| 336 | #define asterchar(c) ((c) == 0x2a) | 337 | #define asterchar(c) ((c) == 0x2a) |
| 337 | #define alphachar(c) (((c) >= 0x41 && (c) <= 0x5a) \ | 338 | #define alphachar(c) (((c) >= 0x41 && (c) <= 0x5a) \ |
| @@ -339,7 +340,7 @@ dn_find(u_char *exp_dn, u_char *msg, u_char **dnptrs, u_char **lastdnptr) | |||
| 339 | #define digitchar(c) ((c) >= 0x30 && (c) <= 0x39) | 340 | #define digitchar(c) ((c) >= 0x30 && (c) <= 0x39) |
| 340 | 341 | ||
| 341 | #define borderchar(c) (alphachar(c) || digitchar(c)) | 342 | #define borderchar(c) (alphachar(c) || digitchar(c)) |
| 342 | #define middlechar(c) (borderchar(c) || hyphenchar(c)) | 343 | #define middlechar(c) (borderchar(c) || hyphenchar(c) || underscorechar(c)) |
| 343 | #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) | 344 | #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) |
| 344 | 345 | ||
| 345 | int | 346 | int |
