From b60df56157ee1fd0bd4938799bac05a62fda91a1 Mon Sep 17 00:00:00 2001 From: lookshe Date: Sat, 14 Mar 2015 20:45:20 +0100 Subject: initial commit from working version --- .../flash-src/com/hurlant/util/der/Sequence.as | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100755 signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/der/Sequence.as (limited to 'signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/der/Sequence.as') diff --git a/signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/der/Sequence.as b/signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/der/Sequence.as new file mode 100755 index 0000000..c352414 --- /dev/null +++ b/signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/der/Sequence.as @@ -0,0 +1,90 @@ +/** + * Sequence + * + * An ASN1 type for a Sequence, implemented as an Array + * Copyright (c) 2007 Henri Torgemane + * + * See LICENSE.txt for full license information. + */ +package com.hurlant.util.der +{ + import flash.utils.ByteArray; + + public dynamic class Sequence extends Array implements IAsn1Type + { + protected var type:uint; + protected var len:uint; + + public function Sequence(type:uint = 0x30, length:uint = 0x00) { + this.type = type; + this.len = length; + } + + public function getLength():uint + { + return len; + } + + public function getType():uint + { + return type; + } + + public function toDER():ByteArray { + var tmp:ByteArray = new ByteArray; + for (var i:int=0;i