hip_55.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2009, 2011, 2013-2016 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: 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 */