]> Cypherpunks repositories - gostls13.git/commit
crypto/openpgp/armor: bug fixes
authorAdam Langley <agl@golang.org>
Thu, 3 Feb 2011 14:19:20 +0000 (09:19 -0500)
committerAdam Langley <agl@golang.org>
Thu, 3 Feb 2011 14:19:20 +0000 (09:19 -0500)
commit2a2995cec82da870adb5f1b3f191b9b6bd968b92
tree463ff23e10a506d10a410e70665accddf38e3ccd
parentfc5c1f0a181dd620bfc3c48d93e6b2fcba234c7c
crypto/openpgp/armor: bug fixes

* Don't require lines to be full.
* Don't forget to flush the line buffer.
* Update the test so that it doesn't happen to include only full lines
  in order to test the above.
* Always write the line after the header as GNUPG expects it.

R=bradfitzgo
CC=golang-dev
https://golang.org/cl/4124043
src/pkg/crypto/openpgp/armor/armor.go
src/pkg/crypto/openpgp/armor/armor_test.go
src/pkg/crypto/openpgp/armor/encode.go