hip_55.c revision 2bdfb330af70122f9ca5aae2556a112a3010e9ef
/*
* Copyright (C) 2009, 2011, 2013 Internet Systems Consortium, Inc. ("ISC")
*
* 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 ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC 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: hip_55.c,v 1.8 2011/01/13 04:59:26 tbox Exp $ */
/* reviewed: TBC */
/* RFC 5205 */
#ifndef RDATA_GENERIC_HIP_5_C
#define RDATA_GENERIC_HIP_5_C
#define RRTYPE_HIP_ATTRIBUTES (0)
static inline isc_result_t
unsigned char *start;
/*
* Dummy HIT len.
*/
/*
* Algorithm.
*/
ISC_FALSE));
/*
* Dummy KEY len.
*/
/*
* HIT (base16).
*/
ISC_FALSE));
/*
* Fill in HIT len.
*/
if (len > 0xffU)
/*
* Public key (base64).
*/
ISC_FALSE));
/*
* Fill in KEY len.
*/
if (len > 0xffffU)
/*
* Rendezvous Servers.
*/
do {
ISC_TRUE));
break;
target));
} while (1);
/*
*/
return (ISC_R_SUCCESS);
}
static inline isc_result_t
unsigned char algorithm;
char buf[sizeof("225 ")];
/*
* Algorithm
*/
/*
* HIT.
*/
/*
* Public KEY.
*/
/*
* Rendezvous Servers.
*/
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
if (hit_len == 0)
if (key_len == 0)
while (isc_buffer_activelength(source) > 0) {
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
}
static inline int
}
static inline isc_result_t
result == ISC_R_SUCCESS;
/* empty */;
}
static inline isc_result_t
goto cleanup;
goto cleanup;
if (hip->servers_len != 0) {
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
isc_region_t r;
dns_rdata_toregion(rdata, &r);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
if (hip->servers_len == 0)
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
}
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
}
void
}
static inline int
int order;
if (order != 0)
return (order);
if (order != 0)
return (order);
if (order != 0)
return (order);
}
}
#endif /* RDATA_GENERIC_HIP_5_C */