Commit 85cb2b6c authored by YannGarcia's avatar YannGarcia
Browse files

Bug fixed in TTCN-3 function f_set_headers_list()

parent 3f7c134d
......@@ -89,11 +89,11 @@ module LibItsHttp_Functions {
var integer v_jdx;
for (v_jdx := 0; v_jdx < lengthof(p_headers); v_jdx := v_jdx + 1) {
if (p_headers[v_jdx].header_name == p_headers_to_set[v_idx]) {
p_headers[v_jdx].header_value := p_headers_value[v_idx]; // NOTE Codec won't encode it
p_headers[v_jdx].header_value := { p_headers_value[v_idx] }; // NOTE Codec won't encode it
break;
}
if (v_jdx == lengthof(p_headers)) {
p_headers[v_jdx].header_value := p_headers_value[v_jdx];
p_headers[v_jdx].header_value := { p_headers_value[v_jdx] };
}
} // End of 'for' statement
} // End of 'for' statement
......
......@@ -2275,6 +2275,8 @@ module LibItsSecurity_Functions {
in charstring p_certificate_id,
out octetstring p_hash
) return boolean {
log(">>> f_getCertificateHash: ", p_certificate_id);
if (not fx_readCertificateHash(p_certificate_id, p_hash)){
log("f_getCertificateHash: Failed to retrieve digest for ", p_certificate_id);
return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment