#include "port_before.h"
#include "fd_setsize.h"
#include <errno.h>
#include <netdb.h>
#include <resolv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "port_after.h"
#define DEBUG
#include "res_debug.h"
/*% res_nsendsigned */
int
{
int usingTCP = 0;
int ret;
int len;
dst_init();
return (-1);
}
return (-1);
}
else
return (-1);
}
if (ret < 0) {
if (ret == NS_TSIG_ERROR_NO_SPACE)
else if (ret == -1)
return (ret);
}
usingTCP = 1;
if (usingTCP == 0)
else
/*
* Stop res_send printing the answer.
*/
if (len < 0) {
return (len);
}
if (ret != 0) {
(stdout, ";; got answer:\n"));
if (ret > 0) {
(stdout, ";; server rejected TSIG (%s)\n",
} else {
(stdout, ";; TSIG invalid (%s)\n",
}
if (ret == -1)
else
return (-1);
}
usingTCP = 1;
goto retry;
}
(stdout, ";; got answer:\n"));
return (len);
}
/*! \file */