Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/isc
File: safe.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef ISC_SAFE_H
[12] Fix | Delete
#define ISC_SAFE_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file isc/safe.h */
[15] Fix | Delete
[16] Fix | Delete
#include <stdbool.h>
[17] Fix | Delete
[18] Fix | Delete
#include <isc/types.h>
[19] Fix | Delete
#include <stdlib.h>
[20] Fix | Delete
[21] Fix | Delete
ISC_LANG_BEGINDECLS
[22] Fix | Delete
[23] Fix | Delete
bool
[24] Fix | Delete
isc_safe_memequal(const void *s1, const void *s2, size_t n);
[25] Fix | Delete
/*%<
[26] Fix | Delete
* Returns true iff. two blocks of memory are equal, otherwise
[27] Fix | Delete
* false.
[28] Fix | Delete
*
[29] Fix | Delete
*/
[30] Fix | Delete
[31] Fix | Delete
int
[32] Fix | Delete
isc_safe_memcompare(const void *b1, const void *b2, size_t len);
[33] Fix | Delete
/*%<
[34] Fix | Delete
* Clone of libc memcmp() which is safe to differential timing attacks.
[35] Fix | Delete
*/
[36] Fix | Delete
[37] Fix | Delete
void
[38] Fix | Delete
isc_safe_memwipe(void *ptr, size_t len);
[39] Fix | Delete
/*%<
[40] Fix | Delete
* Clear the memory of length `len` pointed to by `ptr`.
[41] Fix | Delete
*
[42] Fix | Delete
* Some crypto code calls memset() on stack allocated buffers just
[43] Fix | Delete
* before return so that they are wiped. Such memset() calls can be
[44] Fix | Delete
* optimized away by the compiler. We provide this external non-inline C
[45] Fix | Delete
* function to perform the memset operation so that the compiler cannot
[46] Fix | Delete
* infer about what the function does and optimize the call away.
[47] Fix | Delete
*/
[48] Fix | Delete
[49] Fix | Delete
ISC_LANG_ENDDECLS
[50] Fix | Delete
[51] Fix | Delete
#endif /* ISC_SAFE_H */
[52] Fix | Delete
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function