Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-crypto

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-crypto - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

12

dist/source/crypto_explore_certificate.d.ts

@@ -15,3 +15,3 @@ /**

}
export interface KeyUsage {
export interface X509KeyUsage {
digitalSignature: boolean;

@@ -27,3 +27,3 @@ nonRepudiation: boolean;

}
export interface ExtKeyUsage {
export interface X509ExtKeyUsage {
clientAuth: boolean;

@@ -59,3 +59,3 @@ serverAuth: boolean;

}
export interface AuthorithyKeyIdentifier {
export interface AuthorityKeyIdentifier {
keyIdentifier: string | null;

@@ -69,5 +69,5 @@ authorityCertIssuer: DirectoryName | null;

subjectKeyIdentifier?: string;
authorityKeyIdentifier?: AuthorithyKeyIdentifier;
keyUsage?: KeyUsage;
extKeyUsage?: ExtKeyUsage;
authorityKeyIdentifier?: AuthorityKeyIdentifier;
keyUsage?: X509KeyUsage;
extKeyUsage?: X509ExtKeyUsage;
subjectAltName?: any;

@@ -74,0 +74,0 @@ }

/// <reference types="node" />
import { BlockInfo } from "./asn1";
import { BasicConstraints } from "./crypto_explore_certificate";
import { BasicConstraints, X509KeyUsage } from "./crypto_explore_certificate";
export interface ExtensionRequest {
basicConstraints: BasicConstraints;
keyUsage: KeyUsage;
keyUsage: X509KeyUsage;
subjectAltName: any;

@@ -8,0 +8,0 @@ }

{
"name": "node-opcua-crypto",
"version": "1.7.0",
"version": "1.7.1",
"description": "Crypto tools for Node-OPCUA",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -145,3 +145,3 @@ /**

function _readAuthorityKeyIdentifier(buffer: Buffer): AuthorithyKeyIdentifier {
function _readAuthorityKeyIdentifier(buffer: Buffer): AuthorityKeyIdentifier {
/**

@@ -307,3 +307,4 @@ * where a CA distributes its public key in the form of a "self-signed"

export interface KeyUsage {
// named X509KeyUsage not to confuse with DOM KeyUsage
export interface X509KeyUsage {
digitalSignature: boolean;

@@ -319,3 +320,3 @@ nonRepudiation: boolean;

}
export interface ExtKeyUsage {
export interface X509ExtKeyUsage {
clientAuth: boolean;

@@ -333,3 +334,3 @@ serverAuth: boolean;

function readKeyUsage(oid: string, buffer: Buffer): KeyUsage {
function readKeyUsage(oid: string, buffer: Buffer): X509KeyUsage {
const block_info = readTag(buffer, 0);

@@ -371,3 +372,3 @@

function readExtKeyUsage(oid: string, buffer: Buffer): ExtKeyUsage {
function readExtKeyUsage(oid: string, buffer: Buffer): X509ExtKeyUsage {
assert(oid === "2.5.29.37");

@@ -379,3 +380,3 @@ // see https://tools.ietf.org/html/rfc5280#section-4.2.1.12

const extKeyUsage: ExtKeyUsage = {
const extKeyUsage: X509ExtKeyUsage = {
serverAuth: false,

@@ -585,3 +586,3 @@ clientAuth: false,

export interface AuthorithyKeyIdentifier {
export interface AuthorityKeyIdentifier {
keyIdentifier: string | null;

@@ -596,5 +597,5 @@ authorityCertIssuer: DirectoryName | null;

subjectKeyIdentifier?: string;
authorityKeyIdentifier?: AuthorithyKeyIdentifier;
keyUsage?: KeyUsage;
extKeyUsage?: ExtKeyUsage;
authorityKeyIdentifier?: AuthorityKeyIdentifier;
keyUsage?: X509KeyUsage;
extKeyUsage?: X509ExtKeyUsage;
subjectAltName?: any;

@@ -601,0 +602,0 @@ }

@@ -1,13 +0,13 @@

import * as assert from "assert";
import * as assert from "assert";
import { BlockInfo, readTag, _findBlockAtIndex, _getBlock, _readObjectIdentifier, _readStruct, _readVersionValue } from "./asn1";
import { BasicConstraints, _readExtension } from "./crypto_explore_certificate";
import { BasicConstraints, X509KeyUsage, _readExtension } from "./crypto_explore_certificate";
export interface ExtensionRequest {
basicConstraints: BasicConstraints,
keyUsage: KeyUsage,
subjectAltName: any
basicConstraints: BasicConstraints;
keyUsage: X509KeyUsage;
subjectAltName: any;
}
export interface CertificateSigningRequestInfo {
extensionRequest: ExtensionRequest
extensionRequest: ExtensionRequest;
}

@@ -18,3 +18,2 @@

const inner_blocks = _readStruct(buffer, block);

@@ -45,3 +44,3 @@ const extensions = inner_blocks.map((block1) => _readExtension(buffer, block1));

const buf = _getBlock(buffer, blocks2[1]);
const extensionRequest = _readExtensionRequest(buf);

@@ -48,0 +47,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc