* USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sdlz.c,v 1.30 2011/01/13 04:59:25 tbox Exp $ */
+/* $Id: sdlz.c,v 1.31 2011/01/13 06:29:16 marka Exp $ */
/*! \file */
char b_key[DST_KEY_FORMATSIZE];
isc_buffer_t *tkey_token;
isc_region_t token_region;
- uint32_t token_len = 0;
+ isc_uint32_t token_len = 0;
isc_boolean_t ret;
REQUIRE(driverarg != NULL);
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ssu_external.c,v 1.4 2011/01/07 23:47:07 tbox Exp $ */
+/* $Id: ssu_external.c,v 1.5 2011/01/13 06:29:16 marka Exp $ */
/*
* This implements external update-policy rules. This allows permission
isc_region_t token_region;
uint8_t *data;
isc_buffer_t buf;
- uint32_t token_len = 0;
- uint32_t reply;
+ isc_uint32_t token_len = 0;
+ isc_uint32_t reply;
ssize_t ret;
/* The identity contains local:/path/to/socket */
}
/* Work out how big the request will be */
- req_len = sizeof(uint32_t) + /* Format version */
- sizeof(uint32_t) + /* Length */
+ req_len = sizeof(isc_uint32_t) + /* Format version */
+ sizeof(isc_uint32_t) + /* Length */
strlen(b_signer) + 1 + /* Signer */
strlen(b_name) + 1 + /* Name */
strlen(b_addr) + 1 + /* Address */
strlen(b_type) + 1 + /* Type */
strlen(b_key) + 1 + /* Key */
- sizeof(uint32_t) + /* tkey_token length */
+ sizeof(isc_uint32_t) + /* tkey_token length */
token_len; /* tkey_token */
}
/* Receive the reply */
- ret = read(fd, &reply, sizeof(uint32_t));
- if (ret != (ssize_t) sizeof(uint32_t)) {
+ ret = read(fd, &reply, sizeof(isc_uint32_t));
+ if (ret != (ssize_t) sizeof(isc_uint32_t)) {
char strbuf[ISC_STRERRORSIZE];
isc__strerror(errno, strbuf, sizeof(strbuf));
ssu_e_log(3, "ssu_external: unable to receive reply - %s",