UNPKG

@wildboar/pki-stub

Version:
33 lines (32 loc) 1.15 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { RDNSequence } from "../PKI-Stub/RDNSequence.ta"; /** * @summary DistinguishedName * @description * * A sequence of relative distinguished names in an order that descends from the * root of the DIT. * * ### ASN.1 Definition: * * ```asn1 * DistinguishedName ::= RDNSequence * ``` */ export declare type DistinguishedName = RDNSequence; /** * @summary Decodes an ASN.1 element into a(n) DistinguishedName * @function * @param {_Element} el The element being decoded. * @returns {DistinguishedName} The decoded data structure. */ export declare function _decode_DistinguishedName(el: _Element): RDNSequence; /** * @summary Encodes a(n) DistinguishedName into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The DistinguishedName, encoded as an ASN.1 Element. */ export declare function _encode_DistinguishedName(value: DistinguishedName, elGetter: $.ASN1Encoder<DistinguishedName>): _Element;