zeek/scripts/policy/protocols/ssl
Benjamin Bannier d5fd29edcd Prefer explicit construction to coercion in record initialization
While we support initializing records via coercion from an expression
list, e.g.,

    local x: X = [$x1=1, $x2=2];

this can sometimes obscure the code to readers, e.g., when assigning to
value declared and typed elsewhere. The language runtime has a similar
overhead since instead of just constructing a known type it needs to
check at runtime that the coercion from the expression list is valid;
this can be slower than just writing the readible code in the first
place, see #4559.

With this patch we use explicit construction, e.g.,

    local x = X($x1=1, $x2=2);
2025-07-11 16:28:37 -07:00
..
certificate-request-info.zeek Bump typos pre-commit hooks 2024-12-09 16:13:28 +01:00
decryption.zeek Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
dpd-v2.sig Match DPD TLS signature on one-sided connections. 2022-02-01 16:51:21 +00:00
expiring-certs.zeek Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
heartbleed.zeek Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
known-certs.zeek Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
log-certs-base64.zeek Spelling fixes: scripts 2022-11-02 17:36:39 -04:00
log-hostcerts-only.zeek Change SSL and X.509 logging format 2021-06-29 09:26:43 +01:00
ssl-log-ext.zeek Fix ssl-log-ext omitting data in some cases 2024-01-11 17:12:33 +00:00
validate-certs.zeek Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
validate-ocsp.zeek Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
validate-sct.zeek scripts: Migrate table iteration to blank identifiers 2022-10-24 10:36:09 +02:00
weak-keys.zeek Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00