mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Replace custom isc_u?intNN_t types with C99 u?intNN_t types
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
|
||||
#if !USE_PKCS11
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <isc/md5.h>
|
||||
#include <isc/mem.h>
|
||||
#include <isc/safe.h>
|
||||
@@ -585,13 +587,13 @@ opensslrsa_todns(const dst_key_t *key, isc_buffer_t *data) {
|
||||
if (e_bytes < 256) { /*%< key exponent is <= 2040 bits */
|
||||
if (r.length < 1)
|
||||
DST_RET(ISC_R_NOSPACE);
|
||||
isc_buffer_putuint8(data, (isc_uint8_t) e_bytes);
|
||||
isc_buffer_putuint8(data, (uint8_t) e_bytes);
|
||||
isc_region_consume(&r, 1);
|
||||
} else {
|
||||
if (r.length < 3)
|
||||
DST_RET(ISC_R_NOSPACE);
|
||||
isc_buffer_putuint8(data, 0);
|
||||
isc_buffer_putuint16(data, (isc_uint16_t) e_bytes);
|
||||
isc_buffer_putuint16(data, (uint16_t) e_bytes);
|
||||
isc_region_consume(&r, 3);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user