crypto: prettify othername in PrintGeneralName
This change switches from the format produced by i2v_GENERAL_NAME
to the format produced by GENERAL_NAME_print
for GEN_OTHERNAME
entries. This effectively produces entries of the form othername:SRVName:example.com
instead of othername: SRVName::example.com
. This is more consistent with other GENERIC_NAME
entries and produces less awkward values in the legacy object representation.
(Please take a look at the modified test file to see the effect.)
This addresses the following TODO:
I also consider this the last major change required to resolve this TODO:
Refs: https://github.com/nodejs/node/commit/466e5415a2b7b3574ab5403acb87e89a94a980d1