sig0_test.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2000, 2001, 2004, 2005, 2007-2009, 2012, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: sig0_test.c,v 1.19 2009/09/02 23:48:01 tbox Exp $ */
#include <config.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <isc/assertions.h>
#include <isc/commandline.h>
#include <dns/fixedname.h>
#include <dns/keyvalues.h>
#include <dns/masterdump.h>
#include <dns/rdataset.h>
#include <dns/resolver.h>
if ((x) != ISC_R_SUCCESS) { \
exit(-1); \
} \
}
isc_socket_t *s;
static void
printf("senddone\n");
}
static void
printf("recvdone\n");
printf("failed\n");
exit(-1);
}
(char *)isc_buffer_base(&outbuf));
}
static void
buildquery(void) {
isc_region_t r, inr;
char nametext[] = "host.example";
unsigned char namedata[256];
(char *)isc_buffer_base(&outbuf));
isc_buffer_usedregion(&qbuffer, &r);
NULL);
}
int
isc_buffer_t b;
int ch;
switch (ch) {
case 'v':
break;
case 'p':
break;
}
}
s = NULL;
isc_sockettype_udp, &s) ==
buildquery();
(void)isc_app_run();
isc_socket_detach(&s);
dst_key_free(&key);
if (verbose)
DESTROYLOCK(&lock);
return (0);
}