dst_test.c revision 3759f10fc543747668b1ca4b4671f35b0dea8445
/*
* Copyright (C) 2004, 2005, 2007, 2009, 2012, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* 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: dst_test.c,v 1.46 2009/09/01 00:22:25 jinmei Exp $ */
#include <config.h>
#include <stdlib.h>
#include <unistd.h> /* XXX */
#include <dns/fixedname.h>
char *current;
const char *tmp = "/tmp";
static void
const char *data = "This is some data";
unsigned char sig[512];
/*
* Advance 1 byte for fun.
*/
if (ret != ISC_R_SUCCESS) {
return;
}
if (ret != ISC_R_SUCCESS) {
return;
}
if (ret != ISC_R_SUCCESS) {
return;
}
if (ret != ISC_R_SUCCESS) {
return;
}
}
static void
unsigned char buffer1[2048];
unsigned char buffer2[2048];
if (ret != ISC_R_SUCCESS)
return;
if (ret != ISC_R_SUCCESS)
return;
if (ret != ISC_R_SUCCESS)
return;
}
static void
if (ret != 0)
return;
if (ret != 0)
return;
dst_key_free(&key);
}
static void
int alg = DST_ALG_DH;
if (ret != 0)
return;
if (ret != 0)
return;
if (ret != 0)
return;
if (ret != 0)
return;
if (ret != 0)
return;
if (ret != 0)
return;
{
int i;
printf("secrets don't match\n");
printf("\n");
printf("\n");
}
dst_key_free(&key1);
dst_key_free(&key2);
}
static void
if (ret != ISC_R_SUCCESS)
return;
if (alg != DST_ALG_DH)
dst_key_free(&key);
}
int
main(void) {
isc_buffer_t b;
if (result != ISC_R_SUCCESS)
return (1);
return (1);
perror("getcwd");
return (1);
}
if (result != ISC_R_SUCCESS)
return (1);
if (result != ISC_R_SUCCESS)
return (1);
isc_buffer_add(&b, 5);
if (result != ISC_R_SUCCESS)
return (1);
mctx);
isc_buffer_add(&b, 3);
if (result != ISC_R_SUCCESS)
return (1);
/* isc_mem_stats(mctx, stdout);*/
return (0);
}