2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Replace custom isc_boolean_t with C standard bool type

This commit is contained in:
Ondřej Surý
2018-04-17 08:29:14 -07:00
parent cb6a185c69
commit 994e656977
546 changed files with 10785 additions and 10367 deletions

View File

@@ -15,6 +15,7 @@
/*! \file dst/dst.h */
#include <inttypes.h>
#include <stdbool.h>
#include <isc/lang.h>
#include <isc/stdtime.h>
@@ -153,29 +154,29 @@ dst_lib_destroy(void);
* Releases all resources allocated by DST.
*/
isc_boolean_t
bool
dst_algorithm_supported(unsigned int alg);
/*%<
* Checks that a given algorithm is supported by DST.
*
* Returns:
* \li ISC_TRUE
* \li ISC_FALSE
* \li true
* \li false
*/
isc_boolean_t
bool
dst_ds_digest_supported(unsigned int digest_type);
/*%<
* Checks that a given digest algorithm is supported by DST.
*
* Returns:
* \li ISC_TRUE
* \li ISC_FALSE
* \li true
* \li false
*/
isc_result_t
dst_context_create(dst_key_t *key, isc_mem_t *mctx,
isc_logcategory_t *category, isc_boolean_t useforsigning,
isc_logcategory_t *category, bool useforsigning,
int maxbits, dst_context_t **dctxp);
/*%<
* Creates a context to be used for a sign or verify operation.
@@ -581,7 +582,7 @@ dst_key_generate(const dns_name_t *name, unsigned int alg,
*\li If successful, *keyp will contain a valid key.
*/
isc_boolean_t
bool
dst_key_compare(const dst_key_t *key1, const dst_key_t *key2);
/*%<
* Compares two DST keys. Returns true if they match, false otherwise.
@@ -594,13 +595,13 @@ dst_key_compare(const dst_key_t *key1, const dst_key_t *key2);
*\li "key2" is a valid key.
*
* Returns:
*\li ISC_TRUE
* \li ISC_FALSE
*\li true
* \li false
*/
isc_boolean_t
bool
dst_key_pubcompare(const dst_key_t *key1, const dst_key_t *key2,
isc_boolean_t match_revoked_key);
bool match_revoked_key);
/*%<
* Compares only the public portions of two DST keys. Returns true
* if they match, false otherwise. This allows us, for example, to
@@ -615,11 +616,11 @@ dst_key_pubcompare(const dst_key_t *key1, const dst_key_t *key2,
*\li "key2" is a valid key.
*
* Returns:
*\li ISC_TRUE
* \li ISC_FALSE
*\li true
* \li false
*/
isc_boolean_t
bool
dst_key_paramcompare(const dst_key_t *key1, const dst_key_t *key2);
/*%<
* Compares the parameters of two DST keys. This is used to determine if
@@ -630,8 +631,8 @@ dst_key_paramcompare(const dst_key_t *key1, const dst_key_t *key2);
*\li "key2" is a valid key.
*
* Returns:
*\li ISC_TRUE
* \li ISC_FALSE
*\li true
* \li false
*/
void
@@ -689,13 +690,13 @@ dst_key_rid(const dst_key_t *key);
dns_rdataclass_t
dst_key_class(const dst_key_t *key);
isc_boolean_t
bool
dst_key_isprivate(const dst_key_t *key);
isc_boolean_t
bool
dst_key_iszonekey(const dst_key_t *key);
isc_boolean_t
bool
dst_key_isnullkey(const dst_key_t *key);
isc_result_t
@@ -941,7 +942,7 @@ dst_key_restore(dns_name_t *name, unsigned int alg, unsigned int flags,
unsigned int protocol, dns_rdataclass_t rdclass,
isc_mem_t *mctx, const char *keystr, dst_key_t **keyp);
isc_boolean_t
bool
dst_key_inactive(const dst_key_t *key);
/*%<
* Determines if the private key is missing due the key being deemed inactive.
@@ -951,7 +952,7 @@ dst_key_inactive(const dst_key_t *key);
*/
void
dst_key_setinactive(dst_key_t *key, isc_boolean_t inactive);
dst_key_setinactive(dst_key_t *key, bool inactive);
/*%<
* Set key inactive state.
*
@@ -960,9 +961,9 @@ dst_key_setinactive(dst_key_t *key, isc_boolean_t inactive);
*/
void
dst_key_setexternal(dst_key_t *key, isc_boolean_t value);
dst_key_setexternal(dst_key_t *key, bool value);
isc_boolean_t
bool
dst_key_isexternal(dst_key_t *key);
ISC_LANG_ENDDECLS