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 { RelativeDistinguishedName } from "../PKI-Stub/RelativeDistinguishedName.ta"; /** * @summary RDNSequence * @description * * A sequence of relative distinguished names in an order that descends from the * root of the DIT. * * ### ASN.1 Definition: * * ```asn1 * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName * ``` */ export declare type RDNSequence = RelativeDistinguishedName[]; /** * @summary Decodes an ASN.1 element into a(n) RDNSequence * @function * @param {_Element} el The element being decoded. * @returns {RDNSequence} The decoded data structure. */ export declare function _decode_RDNSequence(el: _Element): RDNSequence; /** * @summary Encodes a(n) RDNSequence 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 RDNSequence, encoded as an ASN.1 Element. */ export declare function _encode_RDNSequence(value: RDNSequence, elGetter: $.ASN1Encoder<RDNSequence>): _Element;