dst_test.c revision 79d91e915023ffa5fac1bb2f91f19210bb18407c
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* 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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM 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.
*/
#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)
if (ret != ISC_R_SUCCESS)
if (ret != ISC_R_SUCCESS)
if (ret != ISC_R_SUCCESS)
}
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 (alg != DST_ALG_DH)
dst_key_free(&key);
}
int
main(void) {
isc_buffer_t b;
isc_mem_create(0, 0, &mctx);
&devrandom);
isc_buffer_add(&b, 5);
isc_buffer_add(&b, 3);
/* isc_mem_stats(mctx, stdout);*/
return (0);
}