mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 18:33:16 +00:00
Logical signature hook for bytecode.
This commit is contained in:
parent
459b13ed89
commit
d38d6dadef
13 changed files with 117 additions and 22 deletions
|
@ -28,6 +28,7 @@ uint32_t cli_bcapi_test0(struct cli_bc_ctx *ctx, struct foo*, uint32_t);
|
|||
uint32_t cli_bcapi_test1(struct cli_bc_ctx *ctx, uint32_t, uint32_t);
|
||||
int32_t cli_bcapi_read(struct cli_bc_ctx *ctx, uint8_t*, int32_t);
|
||||
int32_t cli_bcapi_seek(struct cli_bc_ctx *ctx, int32_t, uint32_t);
|
||||
uint32_t cli_bcapi_setvirusname(struct cli_bc_ctx *ctx, const const uint8_t*, uint32_t);
|
||||
uint32_t cli_bcapi_debug_print_str(struct cli_bc_ctx *ctx, const const uint8_t*, uint32_t);
|
||||
uint32_t cli_bcapi_debug_print_uint(struct cli_bc_ctx *ctx, uint32_t, uint32_t);
|
||||
|
||||
|
@ -52,7 +53,8 @@ const struct cli_apicall cli_apicalls[]={
|
|||
{"test1", 3, 0, 0},
|
||||
{"read", 4, 1, 1},
|
||||
{"seek", 3, 1, 0},
|
||||
{"debug_print_str", 4, 2, 1},
|
||||
{"setvirusname", 4, 2, 1},
|
||||
{"debug_print_str", 4, 3, 1},
|
||||
{"debug_print_uint", 3, 2, 0}
|
||||
/* Bytecode APIcalls END */
|
||||
};
|
||||
|
@ -64,6 +66,7 @@ const cli_apicall_int2 cli_apicalls0[] = {
|
|||
const cli_apicall_pointer cli_apicalls1[] = {
|
||||
(cli_apicall_pointer)cli_bcapi_test0,
|
||||
(cli_apicall_pointer)cli_bcapi_read,
|
||||
(cli_apicall_pointer)cli_bcapi_setvirusname,
|
||||
(cli_apicall_pointer)cli_bcapi_debug_print_str
|
||||
};
|
||||
const unsigned cli_apicall_maxapi = sizeof(cli_apicalls)/sizeof(cli_apicalls[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue