Comparing version 0.0.16 to 0.0.17
@@ -0,1 +1,8 @@ | ||
## 0.0.17 (2014-03-11) | ||
Bugfixes: | ||
- Close keybase/keybase-issues#133: Parse (and ignore) experimental subpackets. | ||
- Support MD5 via triplesec v3.0.7 (see keybase/keybase-issues#111 for problem key) | ||
## 0.0.16 (2014-03-11) | ||
@@ -2,0 +9,0 @@ |
@@ -20,2 +20,3 @@ // Generated by IcedCoffeeScript 1.7.1-a | ||
hash_algorithms: { | ||
MD5: 1, | ||
SHA1: 2, | ||
@@ -50,3 +51,5 @@ SHA256: 8, | ||
signature_target: 31, | ||
embedded_signature: 32 | ||
embedded_signature: 32, | ||
experimental_low: 101, | ||
experimental_high: 110 | ||
}, | ||
@@ -53,0 +56,0 @@ sig_types: { |
@@ -50,3 +50,3 @@ // Generated by IcedCoffeeScript 1.7.1-a | ||
if (!ret) { | ||
throw new Error("unknonw hash type: " + typ); | ||
throw new Error("unknown hash type: " + typ); | ||
} | ||
@@ -53,0 +53,0 @@ return ret; |
// Generated by IcedCoffeeScript 1.7.1-a | ||
(function() { | ||
var C, CreationTime, EmbeddedSignature, ExpirationTime, Exportable, Features, Issuer, KeyExpirationTime, KeyFlags, KeyServerPreferences, NotationData, Packet, Parser, PolicyURI, Preference, PreferredCompressionAlgorithms, PreferredHashAlgorithms, PreferredKeyServer, PreferredSymmetricAlgorithms, PrimaryUserId, ReasonForRevocation, RegularExpression, Revocable, RevocationKey, S, SHA1, SHA512, Signature, SignatureTarget, Signature_v3, SignersUserID, SlicerBuffer, SubPacket, Time, Trust, alloc_or_throw, assert, asymmetric, encode_length, iced, make_time_packet, packetsigs, uint_to_buffer, unix_time, util, __iced_k, __iced_k_noop, _ref, _ref1, _ref2, | ||
var C, CreationTime, EmbeddedSignature, Experimental, ExpirationTime, Exportable, Features, Issuer, KeyExpirationTime, KeyFlags, KeyServerPreferences, NotationData, Packet, Parser, PolicyURI, Preference, PreferredCompressionAlgorithms, PreferredHashAlgorithms, PreferredKeyServer, PreferredSymmetricAlgorithms, PrimaryUserId, ReasonForRevocation, RegularExpression, Revocable, RevocationKey, S, SHA1, SHA512, Signature, SignatureTarget, Signature_v3, SignersUserID, SlicerBuffer, SubPacket, Time, Trust, alloc_or_throw, assert, asymmetric, encode_length, iced, make_time_packet, packetsigs, uint_to_buffer, unix_time, util, __iced_k, __iced_k_noop, _ref, _ref1, _ref2, | ||
__hasProp = {}.hasOwnProperty, | ||
@@ -593,2 +593,22 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
Experimental = (function(_super) { | ||
__extends(Experimental, _super); | ||
function Experimental(buf, type) { | ||
this.buf = buf; | ||
this.type = type; | ||
} | ||
Experimental.parse = function(slice, type) { | ||
return new Experimental(slice.consume_rest_to_buffer(), type); | ||
}; | ||
Experimental.prototype._v_to_buffer = function() { | ||
return this.buf; | ||
}; | ||
return Experimental; | ||
})(SubPacket); | ||
Time = (function(_super) { | ||
@@ -1233,6 +1253,10 @@ __extends(Time, _super); | ||
default: | ||
throw new Error("Unknown signature subpacket: " + type); | ||
if (type >= S.experimental_low && type <= S.experimental_high) { | ||
return Experimental; | ||
} else { | ||
throw new Error("Unknown signature subpacket: " + type); | ||
} | ||
} | ||
})(); | ||
ret = klass.parse(this.slice); | ||
ret = klass.parse(this.slice, type); | ||
this.slice.unclamp(end); | ||
@@ -1239,0 +1263,0 @@ return ret; |
@@ -10,3 +10,3 @@ { | ||
"author": "Maxwell Krohn", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"license": "BSD-3-Clause", | ||
@@ -26,3 +26,3 @@ "main": "./lib/main.js", | ||
"purepack": ">=1", | ||
"triplesec": ">=3.0.6", | ||
"triplesec": ">=3.0.7", | ||
"bn": ">=0.0.2", | ||
@@ -29,0 +29,0 @@ "pgp-utils": ">=0.0.15" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
812505
11915
Updatedtriplesec@>=3.0.7