tsig_250.c revision fad44a20eede1bbc66716241dede225500c91caa
/*
* Copyright (C) 1999 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.
*/
/* $Id: tsig_250.c,v 1.12 1999/06/08 20:41:30 gson Exp $ */
#ifndef RDATA_ANY_255_TSIG_250_C
#define RDATA_ANY_255_TSIG_250_C
static dns_result_t
{
char *e;
/* Algorithm Name */
/* Time Signed: 48 bits */
if (*e != 0)
return (DNS_R_SYNTAX);
if ((sigtime >> 48) != 0)
return(DNS_R_RANGE);
/* Fudge */
return (DNS_R_RANGE);
/* Signature Size */
return (DNS_R_RANGE);
/* Signature */
/* Original ID */
return (DNS_R_RANGE);
/* Error */
return (DNS_R_RANGE);
/* Other Len */
return (DNS_R_RANGE);
/* Other Data */
}
static dns_result_t
{
char buf[sizeof "281474976710655 "];
char *bufp;
unsigned short n;
/* Algorithm Name */
/* Time Signed */
*bufp-- = 0;
*bufp-- = ' ';
do {
sigtime /= 10;
} while (sigtime != 0);
bufp++;
/* Fudge */
n = uint16_fromregion(&sr);
/* Signature Size */
n = uint16_fromregion(&sr);
/* Signature */
else
isc_region_consume(&sr, n);
/* Original ID */
n = uint16_fromregion(&sr);
/* Error */
n = uint16_fromregion(&sr);
/* Other Size */
n = uint16_fromregion(&sr);
/* Other */
}
static dns_result_t
{
unsigned long n;
else
/* Algorithm Name */
/* Time Signed + Fudge */
return (DNS_R_UNEXPECTEDEND);
/* Signature Length + Signature */
return (DNS_R_UNEXPECTEDEND);
n = uint16_fromregion(&sr);
return (DNS_R_UNEXPECTEDEND);
/* Original ID + Error */
return (DNS_R_UNEXPECTEDEND);
/* Other Length + Other */
return (DNS_R_UNEXPECTEDEND);
n = uint16_fromregion(&sr);
return (DNS_R_UNEXPECTEDEND);
}
static dns_result_t
else
}
static int
int result;
if (result != 0)
return (result);
}
static dns_result_t
{
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
return (DNS_R_NOTIMPLEMENTED);
}
static void
freestruct_any_tsig(void *source) {
}
#endif /* RDATA_ANY_255_TSIG_250_C */