12345678module juptune.data.x509.asn1convert;
Result x509ForeachNameComponent(
Name name,
Result function(
AttributeTypeAndValue component
) handler
);
Iterates over the components of the given name, passing them into the provided handler.
It's recommended to use x509HandleNameComponenton the componentfield passed to the handler, as that will detect most of the common name components.
The ASN.1 model for namecan very technically change in the future (as its a CHOICE type) so it's recommended to always use this function for future compatibility purposes.
Anything that the provided handlerthrows.
Any error thrown by handler.