/*
* Copyright (C) 2003-2005, 2007, 2009, 2011-2017 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
/* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */
/* RFC2535 */
#ifndef RDATA_GENERIC_RRSIG_46_C
#define RDATA_GENERIC_RRSIG_46_C
static inline isc_result_t
unsigned char c;
long i;
char *e;
/*
* Type covered.
*/
ISC_FALSE));
if (i < 0 || i > 65535)
if (*e != 0)
covered = (dns_rdatatype_t)i;
}
/*
* Algorithm.
*/
ISC_FALSE));
/*
* Labels.
*/
ISC_FALSE));
/*
* Original ttl.
*/
ISC_FALSE));
/*
* Signature expiration.
*/
ISC_FALSE));
char *end;
unsigned long u;
if (u64 > 0xffffffffUL)
time_expire = u;
} else
/*
* Time signed.
*/
ISC_FALSE));
char *end;
unsigned long u;
if (u64 > 0xffffffffUL)
time_signed = u;
} else
/*
* Key footprint.
*/
ISC_FALSE));
/*
* Signer.
*/
ISC_FALSE));
/*
* Sig.
*/
}
static inline isc_result_t
unsigned long ttl;
unsigned long when;
unsigned long exp;
unsigned long foot;
/*
* Type covered.
*/
/*
* XXXAG We should have something like dns_rdatatype_isknown()
* that does the right thing with type 0.
*/
} else {
}
/*
* Algorithm.
*/
/*
* Labels.
*/
/*
* Ttl.
*/
/*
* Sig exp.
*/
/*
* Time signed.
*/
/*
* Footprint.
*/
/*
* Signer.
*/
/*
* Sig.
*/
else
} else
return (ISC_R_SUCCESS);
}
static inline isc_result_t
/*
* type covered: 2
* algorithm: 1
* labels: 1
* original ttl: 4
* signature expiration: 4
* time signed: 4
* key footprint: 2
*/
return (ISC_R_UNEXPECTEDEND);
/*
* Signer.
*/
/*
* Sig.
*/
}
static inline isc_result_t
/*
* type covered: 2
* algorithm: 1
* labels: 1
* original ttl: 4
* signature expiration: 4
* time signed: 4
* key footprint: 2
*/
/*
* Signer.
*/
/*
* Signature.
*/
}
static inline int
}
static inline isc_result_t
/*
* Type covered.
*/
/*
* Algorithm.
*/
/*
* Labels.
*/
/*
* Original TTL.
*/
/*
* Expire time.
*/
/*
* Time signed.
*/
/*
* Key ID.
*/
/*
* Signer name.
*/
/*
* Signature.
*/
}
static inline isc_result_t
/*
* Type covered.
*/
/*
* Algorithm.
*/
/*
* Labels.
*/
/*
* Original TTL.
*/
/*
* Expire time.
*/
/*
* Time signed.
*/
/*
* Key ID.
*/
/*
* Signature.
*/
goto cleanup;
return (ISC_R_SUCCESS);
return (ISC_R_NOMEMORY);
}
static inline void
return;
}
static inline isc_result_t
return (ISC_R_SUCCESS);
}
static inline isc_result_t
return (ISC_R_NOTIMPLEMENTED);
}
static inline dns_rdatatype_t
isc_region_t r;
dns_rdata_toregion(rdata, &r);
type = uint16_fromregion(&r);
return (type);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline int
int order;
if (order != 0)
return (order);
if (order != 0)
return (order);
}
#endif /* RDATA_GENERIC_RRSIG_46_C */