Home GnuPG

Store oidmap as vector and add lookup helper

Description

Store oidmap as vector and add lookup helper

* src/dn.cpp (struct NameAndOID): New.
(oidmap): Change type from plain array to vector.
(numOidMaps): Remove.
(attributeNameForOID): New.
(parse_dn_part): Use attributeNameForOID.

This brings the code a bit closer to the one used in libkleo.

Details

Provenance
ikloeckerAuthored on Dec 12 2024, 3:21 PM
Parents
rGPGMEQTe10eec5fbf59: Avoid clashes of qgpgme headers with other headers
Branches
Unknown
Tags
Unknown

Event Timeline