Skip to content

Commit

Permalink
Remove auto zip preference in key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Jun 21, 2024
1 parent 20d9806 commit 610cabb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions openpgp/key_generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ func writeKeyProperties(selfSignature *packet.Signature, creationTime time.Time,
selfSignature.PreferredCompression = []uint8{uint8(packet.CompressionNone)}
if config.Compression() != packet.CompressionNone {
selfSignature.PreferredCompression = append(selfSignature.PreferredCompression, uint8(config.Compression()))
if config.Compression() == packet.CompressionZLIB {
// If zlib is supported also add zip
selfSignature.PreferredCompression = append(selfSignature.PreferredCompression, uint8(packet.CompressionZIP))
}
}

// And for DefaultMode.
Expand Down
4 changes: 0 additions & 4 deletions openpgp/v2/key_generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,6 @@ func writeKeyProperties(selfSignature *packet.Signature, selectedKeyProperties *
selfSignature.PreferredCompression = []uint8{uint8(packet.CompressionNone)}
if selectedKeyProperties.compression != packet.CompressionNone {
selfSignature.PreferredCompression = append(selfSignature.PreferredCompression, uint8(selectedKeyProperties.compression))
if selectedKeyProperties.compression == packet.CompressionZLIB {
// If zlib is supported also add zip
selfSignature.PreferredCompression = append(selfSignature.PreferredCompression, uint8(packet.CompressionZIP))
}
}

// And for DefaultMode.
Expand Down

0 comments on commit 610cabb

Please sign in to comment.