Skip to content

Commit c016d14

Browse files
committed
add forward decls and fix check_section_integrity signature
1 parent ce969fd commit c016d14

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

auth.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ void snapshot_text_page_protections();
126126
bool text_page_protections_ok();
127127
void snapshot_data_page_protections();
128128
bool data_page_protections_ok();
129+
static bool get_text_section_info(std::uintptr_t& base, size_t& size);
130+
static uint32_t rolling_crc32(const uint8_t* data, size_t len, size_t window = 64, size_t stride = 16);
131+
static bool get_export_address(HMODULE mod, const char* name, void*& out_addr);
129132

130133
inline void secure_zero(std::string& value) noexcept;
131134
inline void securewipe(std::string& value) noexcept;
@@ -3324,7 +3327,7 @@ void error(std::string message) {
33243327
LI_FN(__fastfail)(0);
33253328
}
33263329
// code submitted in pull request from https://github.com/Roblox932
3327-
integrity( const char *section_name, bool fix = false ) -> bool
3330+
auto check_section_integrity( const char *section_name, bool fix = false ) -> bool
33283331
{
33293332
const auto map_file = []( HMODULE hmodule ) -> std::tuple<std::uintptr_t, HANDLE>
33303333
{

0 commit comments

Comments
 (0)