Add CryptoStream.destroy()
This commit is contained in:
parent
953561ab06
commit
66767edf12
@ -87,6 +87,12 @@ CryptoStream.prototype.end = function(d) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
CryptoStream.prototype.destroy = function(err) {
|
||||||
|
if (this.pair._done) return;
|
||||||
|
this.pair._destroy();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
function CleartextStream (pair) {
|
function CleartextStream (pair) {
|
||||||
CryptoStream.call(this, pair);
|
CryptoStream.call(this, pair);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user