From 82b18c61f3f1bdc0770edc2af5d8a1cbe50a1f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obernd=C3=B6rfer?= Date: Fri, 4 Apr 2014 17:33:30 +0200 Subject: [PATCH] Add empty read method to trust packet. Otherwise import of key with a trust packet will fail. Trust packets are ignored and filtered out by the Key class. --- src/packet/trust.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/packet/trust.js b/src/packet/trust.js index 73914ae5..0b85c076 100644 --- a/src/packet/trust.js +++ b/src/packet/trust.js @@ -13,3 +13,12 @@ var enums = require('../enums.js'); function Trust() { this.tag = enums.packet.trust; } + +/** + * Parsing function for a trust packet (tag 12). + * Currently empty as we ignore trust packets + * @param {String} byptes payload of a tag 12 packet + */ +Trust.prototype.read = function (bytes) { + +};