Fix #15
This commit is contained in:
parent
0cfd894ce7
commit
5e219c6a36
|
@ -3,9 +3,6 @@ import { IJsonConvertible } from "@peculiar/json-schema";
|
||||||
import { Convert } from "pvtsutils";
|
import { Convert } from "pvtsutils";
|
||||||
import { EcPublicKey } from "./ec_public_key";
|
import { EcPublicKey } from "./ec_public_key";
|
||||||
|
|
||||||
// tslint:disable-next-line: no-var-requires
|
|
||||||
const asn1 = require("asn1js");
|
|
||||||
|
|
||||||
// RFC 5915
|
// RFC 5915
|
||||||
// https://tools.ietf.org/html/rfc5915#section-3
|
// https://tools.ietf.org/html/rfc5915#section-3
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { AsnIntegerArrayBufferConverter, AsnProp, AsnPropTypes, IAsnConverter } from "@peculiar/asn1-schema";
|
import { AsnIntegerArrayBufferConverter, AsnProp, AsnPropTypes, IAsnConverter } from "@peculiar/asn1-schema";
|
||||||
// tslint:disable-next-line: no-var-requires
|
//@ts-ignore
|
||||||
const asn1 = require("asn1js");
|
import * as asn1 from "asn1js";
|
||||||
|
|
||||||
// RFC 3279
|
// RFC 3279
|
||||||
// https://tools.ietf.org/html/rfc3279#section-2.2.3
|
// https://tools.ietf.org/html/rfc3279#section-2.2.3
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { IAsnConverter } from "@peculiar/asn1-schema";
|
import { IAsnConverter } from "@peculiar/asn1-schema";
|
||||||
// tslint:disable-next-line: no-var-requires
|
//@ts-ignore
|
||||||
const asn1 = require("asn1js");
|
import * as asn1 from "asn1js";
|
||||||
|
|
||||||
export const AsnIntegerArrayBufferConverter: IAsnConverter<ArrayBuffer> = {
|
export const AsnIntegerArrayBufferConverter: IAsnConverter<ArrayBuffer> = {
|
||||||
fromASN: (value: any) => {
|
fromASN: (value: any) => {
|
||||||
|
|
Reference in New Issue