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

Method parseParts

test/test_multipart.cpp:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 void parseParts(char *parts[]) {
128 mpartp = htp_mpartp_create(cfg, bstr_dup_c("0123456789"), 0 /* flags */);
129
130 size_t i = 0;
131 for (;;) {
132 if (parts[i] == NULL) break;
133 htp_mpartp_parse(mpartp, parts[i], strlen(parts[i]));
134 i++;
135 }
136
137 htp_mpartp_finalize(mpartp);
138
139 body = htp_mpartp_get_multipart(mpartp);
140 ASSERT_TRUE(body != NULL);
141 }
142
143 void parsePartsThenVerify(char *parts[]) {
144 parseParts(parts);

Callers

nothing calls this directly

Calls 5

htp_mpartp_createFunction · 0.85
bstr_dup_cFunction · 0.85
htp_mpartp_parseFunction · 0.85
htp_mpartp_finalizeFunction · 0.85
htp_mpartp_get_multipartFunction · 0.85

Tested by

no test coverage detected