Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"use strict";
/**
* @module opcua.miscellaneous
*/
const util = require("util");
const assert = require("node-opcua-assert").assert;
const _ = require("underscore");
const MessageBuilderBase = require("node-opcua-transport/src/message_builder_base").MessageBuilderBase;
const chooseSecurityHeader = require("./secure_channel_service").chooseSecurityHeader;
const SymmetricAlgorithmSecurityHeader = require("./secure_channel_service").SymmetricAlgorithmSecurityHeader;
const SequenceHeader = require("./secure_channel_service").SequenceHeader;
const BinaryStream = require("node-opcua-binary-stream").BinaryStream;
const ec = require("node-opcua-basic-types");
const decodeString = ec.decodeString;
const packet_analyzer = require("node-opcua-packet-analyzer").packet_analyzer;
const hexDump = require("node-opcua-debug").hexDump;
//xx require("./utils").setDebugFlag(__filename,true);