| 70 | } |
| 71 | |
| 72 | static int |
| 73 | authorized(char *user, char *password) |
| 74 | { |
| 75 | /* |
| 76 | * This routine checks the validity of the user name and |
| 77 | * password. UNIX systems, enter your own authorization code |
| 78 | * here. ToDO: This doesn't do anything useful now. |
| 79 | */ |
| 80 | if (user && password) { |
| 81 | return 1; |
| 82 | } else { |
| 83 | return 0; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | static void |
| 88 | handle_dns(TSHttpTxn txnp, TSCont contp) |