summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhemagx <ibrahem.h.basyone@gmail.com>2017-01-14 17:41:14 +0200
committerhemagx <ibrahem.h.basyone@gmail.com>2017-01-14 17:41:14 +0200
commit853e3d09cfd72b4478347d10f2e04870f37d20b9 (patch)
tree052d46716cb9bdb0daffedcc1c0070160bc26f65
parent89e976aec097a2422f6faa08d4c8b0780df13acd (diff)
downloadhercules-853e3d09cfd72b4478347d10f2e04870f37d20b9.tar.gz
hercules-853e3d09cfd72b4478347d10f2e04870f37d20b9.tar.bz2
hercules-853e3d09cfd72b4478347d10f2e04870f37d20b9.tar.xz
hercules-853e3d09cfd72b4478347d10f2e04870f37d20b9.zip
HPM Hooks Update
Signed-off-by: hemagx <ibrahem.h.basyone@gmail.com>
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Defs.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc12
-rw-r--r--src/plugins/HPMHooking/HPMHooking_login.Hooks.inc12
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc12
4 files changed, 20 insertions, 20 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Defs.inc b/src/plugins/HPMHooking/HPMHooking.Defs.inc
index 15da10bde..57abf25e0 100644
--- a/src/plugins/HPMHooking/HPMHooking.Defs.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Defs.inc
@@ -4462,8 +4462,8 @@ typedef bool (*HPMHOOK_post_mapreg_config_read) (bool retVal___, const char *fil
#ifdef COMMON_MD5CALC_H /* md5 */
typedef void (*HPMHOOK_pre_md5_string) (const char **string, char **output);
typedef void (*HPMHOOK_post_md5_string) (const char *string, char *output);
-typedef void (*HPMHOOK_pre_md5_binary) (const char **string, unsigned char **output);
-typedef void (*HPMHOOK_post_md5_binary) (const char *string, unsigned char *output);
+typedef void (*HPMHOOK_pre_md5_binary) (const uint8 **buf, const int *buf_size, uint8 **output);
+typedef void (*HPMHOOK_post_md5_binary) (const uint8 *buf, const int buf_size, uint8 *output);
typedef void (*HPMHOOK_pre_md5_salt) (int *len, char **output);
typedef void (*HPMHOOK_post_md5_salt) (int len, char *output);
#endif // COMMON_MD5CALC_H
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index f7b43ad50..e2108c8f8 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -15207,14 +15207,14 @@ void HP_md5_string(const char *string, char *output) {
}
return;
}
-void HP_md5_binary(const char *string, unsigned char *output) {
+void HP_md5_binary(const uint8 *buf, const int buf_size, uint8 *output) {
int hIndex = 0;
if( HPMHooks.count.HP_md5_binary_pre ) {
- void (*preHookFunc) (const char **string, unsigned char **output);
+ void (*preHookFunc) (const uint8 **buf, const int *buf_size, uint8 **output);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_md5_binary_pre[hIndex].func;
- preHookFunc(&string, &output);
+ preHookFunc(&buf, &buf_size, &output);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -15222,13 +15222,13 @@ void HP_md5_binary(const char *string, unsigned char *output) {
}
}
{
- HPMHooks.source.md5.binary(string, output);
+ HPMHooks.source.md5.binary(buf, buf_size, output);
}
if( HPMHooks.count.HP_md5_binary_post ) {
- void (*postHookFunc) (const char *string, unsigned char *output);
+ void (*postHookFunc) (const uint8 *buf, const int buf_size, uint8 *output);
for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_md5_binary_post[hIndex].func;
- postHookFunc(string, output);
+ postHookFunc(buf, buf_size, output);
}
}
return;
diff --git a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
index ffdfd15a8..a7e7afa4e 100644
--- a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
@@ -4743,14 +4743,14 @@ void HP_md5_string(const char *string, char *output) {
}
return;
}
-void HP_md5_binary(const char *string, unsigned char *output) {
+void HP_md5_binary(const uint8 *buf, const int buf_size, uint8 *output) {
int hIndex = 0;
if( HPMHooks.count.HP_md5_binary_pre ) {
- void (*preHookFunc) (const char **string, unsigned char **output);
+ void (*preHookFunc) (const uint8 **buf, const int *buf_size, uint8 **output);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_md5_binary_pre[hIndex].func;
- preHookFunc(&string, &output);
+ preHookFunc(&buf, &buf_size, &output);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -4758,13 +4758,13 @@ void HP_md5_binary(const char *string, unsigned char *output) {
}
}
{
- HPMHooks.source.md5.binary(string, output);
+ HPMHooks.source.md5.binary(buf, buf_size, output);
}
if( HPMHooks.count.HP_md5_binary_post ) {
- void (*postHookFunc) (const char *string, unsigned char *output);
+ void (*postHookFunc) (const uint8 *buf, const int buf_size, uint8 *output);
for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_md5_binary_post[hIndex].func;
- postHookFunc(string, output);
+ postHookFunc(buf, buf_size, output);
}
}
return;
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index e514b50fd..654c902d8 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -43812,14 +43812,14 @@ void HP_md5_string(const char *string, char *output) {
}
return;
}
-void HP_md5_binary(const char *string, unsigned char *output) {
+void HP_md5_binary(const uint8 *buf, const int buf_size, uint8 *output) {
int hIndex = 0;
if( HPMHooks.count.HP_md5_binary_pre ) {
- void (*preHookFunc) (const char **string, unsigned char **output);
+ void (*preHookFunc) (const uint8 **buf, const int *buf_size, uint8 **output);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_md5_binary_pre[hIndex].func;
- preHookFunc(&string, &output);
+ preHookFunc(&buf, &buf_size, &output);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -43827,13 +43827,13 @@ void HP_md5_binary(const char *string, unsigned char *output) {
}
}
{
- HPMHooks.source.md5.binary(string, output);
+ HPMHooks.source.md5.binary(buf, buf_size, output);
}
if( HPMHooks.count.HP_md5_binary_post ) {
- void (*postHookFunc) (const char *string, unsigned char *output);
+ void (*postHookFunc) (const uint8 *buf, const int buf_size, uint8 *output);
for(hIndex = 0; hIndex < HPMHooks.count.HP_md5_binary_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_md5_binary_post[hIndex].func;
- postHookFunc(string, output);
+ postHookFunc(buf, buf_size, output);
}
}
return;