/*
* Copyright (C) 2006, 2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
*
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id$ */
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <isc/sockaddr.h>
#include <dns/dispatch.h>
#include <dns/fixedname.h>
#include <dns/keyvalues.h>
#include <dns/masterdump.h>
#include <dns/rdataset.h>
#include <dns/resolver.h>
#ifdef GSSAPI
#include ISC_PLATFORM_GSSAPIHEADER
struct dst_context {
unsigned int magic;
void *opaque;
};
if ((x) != ISC_R_SUCCESS) { \
goto end; \
} \
}
static void setup();
static void
{
for (;;) {
printf("\nCommand => ");
return;
}
return;
}
return;
}
printf("Unknown command\n");
}
}
static void
goto end;
}
printf("\nReceived Response:\n");
&outbuf);
(char *)isc_buffer_base(&outbuf));
end:
sizeof(*event));
return;
}
static void
{
printf("Query => ");
if (result != ISC_R_SUCCESS)
goto end;
if (result != ISC_R_SUCCESS)
goto end;
if (result != ISC_R_SUCCESS)
goto end;
printf("Submitting query:\n");
&outbuf);
(char *)isc_buffer_base(&outbuf));
return;
end:
}
static void
goto end;
}
goto end;
}
printf("Received token from server, calling gss_init_sec_context()\n");
printf("Context accepted\n");
if (qtype == dns_rdatatype_tkey) {
printf("Received TKEY response from server\n");
printf("Context completed\n");
} else {
printf("Did not receive TKEY response from server\n");
printf("Context not completed\n");
}
end:
sizeof(*event));
return;
}
static void
printf("Initctx - GSS name => ");
printf("Negotiating GSSAPI context: ");
printf("\n");
/*
* Setup a GSSAPI context with the server
*/
/* Make name happen */
printf("Calling gss_init_sec_context()\n");
printf("Sending context token to server\n");
return;
end:
sizeof(*event));
}
static void
setup(void)
{
int c;
for (;;) {
printf("Server IP => ");
return;
}
return;
}
}
}
int
/*
* Create and install the default channel.
*/
dispatchmgr = NULL;
dispatchv4 = NULL;
requestmgr = NULL;
&requestmgr));
&sock));
setup();
(void)isc_app_run();
if (tsigkey)
return (0);
}
#else
int
return (0);
}
#endif