MCPcopy Create free account
hub / github.com/OISF/libhtp / SetUp

Method SetUp

test/test_bench.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46protected:
47
48 virtual void SetUp() {
49 home = getenv("srcdir");
50 if (home == NULL) {
51 fprintf(stderr, "This program needs environment variable 'srcdir' set.");
52 exit(EXIT_FAILURE);
53 }
54
55 cfg = htp_config_create();
56 htp_config_set_server_personality(cfg, HTP_SERVER_APACHE_2);
57 htp_config_register_urlencoded_parser(cfg);
58 htp_config_register_multipart_parser(cfg);
59 }
60
61 virtual void TearDown() {
62 htp_connp_destroy_all(connp);

Callers

nothing calls this directly

Tested by

no test coverage detected