t_dst.c revision c50936eb40263b65ebf6afe4e6556e2dc67c10e4
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * Copyright (C) 1999, 2000 Internet Software Consortium.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * Permission to use, copy, modify, and distribute this software for any
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * purpose with or without fee is hereby granted, provided that the above
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * copyright notice and this permission notice appear in all copies.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy#include <sys/types.h> /* Required for dirent.h */
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy * Adapted from the original dst_test.c program.
f38cb554a534c6df738be3f4d23327e69888e634John Wren Kennedy t_info("opendir(%s) failed %d\n", path, opendir);
++*nfails;
++*nfails;
int rval;
if (p == NULL) {
++*nprobs;
++*nfails;
++*nfails;
if (p == NULL) {
++*nprobs;
if (rval != 0) {
++*nprobs;
++*nprobs;
if (ret != 0) {
++*nfails;
if (ret != 0) {
++*nfails;
++*nprobs;
if (ret != 0) {
++*nfails;
if (ret != 0) {
++*nfails;
++*nfails;
int rval;
if (p == NULL) {
++*nprobs;
++*nfails;
if (p == NULL) {
++*nprobs;
if (rval != 0) {
++*nprobs;
++*nprobs;
if (ret != 0) {
++*nfails;
++*nprobs;
++*nfails;
++*nfails;
++*nfails;
++*nfails;
if (T_debug) {
for (i = 0; i < sizeof(data1); i++)
for (i = 0; i < sizeof(data2); i++)
static char *a1 =
t1(void) {
int nfails;
int nprobs;
int result;
nfails = 0;
nprobs = 0;
else if (nfails)
#ifdef NEWSIG
int rval;
int fd;
int len;
int nprobs;
int cnt;
unsigned char val;
cnt = 0;
nprobs = 0;
if (fd < 0) {
while (len) {
++nprobs;
++nprobs;
--len;
++cnt;
++nprobs;
++nprobs;
return(nprobs);
int rval;
int len;
int fd;
unsigned char val;
char *buf;
if (rval != 0) {
if (fd < 0) {
p = buf;
while (len) {
if (rval > 0) {
p += rval;
p = buf;
while(len) {
--len;
--len;
--len;
int rval;
int len;
int fd;
int exp_res;
unsigned char *data;
if (rval != 0) {
++*nprobs;
++*nprobs;
if (fd < 0) {
++*nprobs;
p = data;
if (rval > 0) {
p += rval;
} while (len);
++*nprobs;
#ifdef NEWSIG
++*nprobs;
if (rval != 0) {
++*nprobs;
if (rval != 0) {
++*nprobs;
exp_res = 0;
&sigreg);
++*nfails;
static char *a2 =
char *datapath;
char *sigpath;
char *keyname;
char *key;
int keyid;
char *alg;
int algid;
char *exp_result;
int nfails;
int nprobs;
int result;
nfails = 0;
nprobs = 0;
return(T_UNRESOLVED);
return(T_UNRESOLVED);
if (nfails)
return(result);
t2(void) {
int result;