Skip to content

Commit dc9631c

Browse files
committed
Add tfw_http_stop
1 parent 500aa15 commit dc9631c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

fw/http.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7345,6 +7345,12 @@ tfw_http_start(void)
73457345
return 0;
73467346
}
73477347

7348+
static void
7349+
tfw_http_stop(void)
7350+
{
7351+
ja5h_close_filter();
7352+
}
7353+
73487354
/*
73497355
* ------------------------------------------------------------------------
73507356
* configuration handling
@@ -8000,6 +8006,7 @@ static TfwCfgSpec tfw_http_specs[] = {
80008006
TfwMod tfw_http_mod = {
80018007
.name = "http",
80028008
.start = tfw_http_start,
8009+
.stop = tfw_http_stop,
80038010
.specs = tfw_http_specs,
80048011
};
80058012

@@ -8024,5 +8031,4 @@ tfw_http_exit(void)
80248031
{
80258032
tfw_mod_unregister(&tfw_http_mod);
80268033
tfw_connection_hooks_unregister(TFW_FSM_HTTP);
8027-
http_close_filter();
80288034
}

fw/t/unit/helpers.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* and generic testing functions/macros are located in test.c/test.h
1616
*
1717
* Copyright (C) 2014 NatSys Lab. (info@natsys-lab.com).
18-
* Copyright (C) 2015-2024 Tempesta Technologies, Inc.
18+
* Copyright (C) 2015-2025 Tempesta Technologies, Inc.
1919
*
2020
* This program is free software; you can redistribute it and/or modify it
2121
* under the terms of the GNU General Public License as published by
@@ -489,6 +489,12 @@ ja5h_init_filter(size_t max_storage_size)
489489
return true;
490490
}
491491

492+
void
493+
ja5h_close_filter(void)
494+
{
495+
496+
}
497+
492498
int
493499
http_ja5_cfgop_finish(TfwCfgSpec *cs)
494500
{

0 commit comments

Comments
 (0)