Project

General

Profile

Actions

Task #7738

open

ldap: update ldap-parser crate to 0.5.0 and refactor code

Added by Pierre Chifflier 16 days ago. Updated 16 days ago.

Status:
Assigned
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:

Description

The current version of ldap-parser is 0.5.0, so the dependency in Suricata should be upgraded.
Version 0.5.0 also has support for the ToStatic trait, which can be used to refactor code and simplify/eliminate all redundant code in Suricata's LDAP parser (currently, all types are duplicated from the Rust crate).
I have already worked on this and have a PR ready.

Note: this will bump the dependency on asn1-rs as well, but it keeps compatibility with old rust compilers (MSRV is 1.63). After that, we can also upgrade other ASN.1-based parsers as well.

Actions

Also available in: Atom PDF