tsig_250.c revision f9d7040e8d8c6ef4d7750a0a680adb3c9540549e
/*
* 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.1 1999/02/04 01:06:40 marka Exp $ */
#ifndef RDATA_ANY_255_TSIG_250_H
#define RDATA_ANY_255_TSIG_250_H
static dns_result_t
{
unsigned long long sigtime;
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 "];
unsigned long long sigtime;
unsigned short n;
/* Algorithm Name */
/* Time Signed */
/* Fudge */
n = uint16_fromregion(&sr);
/* Signature Size */
n = uint16_fromregion(&sr);
/* Signature */
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;
/* 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
}
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);
}
#endif /* RDATA_ANY_255_TSIG_250_H */