Cleanup: bring tag type blocks in read_message() in order (non-functional)
This commit is contained in:
parent
717fc47fa4
commit
0ce9a0587d
|
@ -219,12 +219,6 @@ function _openpgp () {
|
||||||
if (first_packet.tagType == 8) {
|
if (first_packet.tagType == 8) {
|
||||||
util.print_error("A directly compressed message is currently not supported");
|
util.print_error("A directly compressed message is currently not supported");
|
||||||
break;
|
break;
|
||||||
} else
|
|
||||||
// Literal Message
|
|
||||||
// TODO: needs to be implemented. From a security perspective: this message is plaintext anyway.
|
|
||||||
if (first_packet.tagType == 11) {
|
|
||||||
util.print_error("A direct literal message is currently not supported.");
|
|
||||||
break;
|
|
||||||
} else
|
} else
|
||||||
// Marker Packet (Obsolete Literal Packet) (Tag 10)
|
// Marker Packet (Obsolete Literal Packet) (Tag 10)
|
||||||
// "Such a packet MUST be ignored when received." see http://tools.ietf.org/html/rfc4880#section-5.8
|
// "Such a packet MUST be ignored when received." see http://tools.ietf.org/html/rfc4880#section-5.8
|
||||||
|
@ -234,6 +228,12 @@ function _openpgp () {
|
||||||
// continue with next packet
|
// continue with next packet
|
||||||
mypos += first_packet.packetLength + first_packet.headerLength;
|
mypos += first_packet.packetLength + first_packet.headerLength;
|
||||||
l -= (first_packet.packetLength + first_packet.headerLength);
|
l -= (first_packet.packetLength + first_packet.headerLength);
|
||||||
|
} else
|
||||||
|
// Literal Message
|
||||||
|
// TODO: needs to be implemented. From a security perspective: this message is plaintext anyway.
|
||||||
|
if (first_packet.tagType == 11) {
|
||||||
|
util.print_error("A direct literal message is currently not supported.");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
util.print_error('no message found!');
|
util.print_error('no message found!');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user