]> Cypherpunks repositories - gostls13.git/commit
crypto/openpgp: better handling of keyrings.
authorAdam Langley <agl@golang.org>
Tue, 19 Apr 2011 15:00:35 +0000 (11:00 -0400)
committerAdam Langley <agl@golang.org>
Tue, 19 Apr 2011 15:00:35 +0000 (11:00 -0400)
commitb8df1465ccd8a45f8c7da66757ef18ad71c115fe
treeb9a1b759683d163106a3aecde934fd1f0cee01cb
parent90d3837193fd8224bb44e979ff250cfb76a0710a
crypto/openpgp: better handling of keyrings.

  * Accept armored private key blocks
  * If an armored block is missing, return an InvalidArgumentError,
    rather than ignoring it.
  * If every key in a block is skipped due to being unsupported,
    return the last unsupported error.
  * Include the numeric type of unsupported public keys.
  * Don't assume that the self-signature comes immediately after the
    user id packet.

R=bradfitzgo
CC=golang-dev
https://golang.org/cl/4434048
src/pkg/crypto/openpgp/keys.go
src/pkg/crypto/openpgp/packet/public_key.go
src/pkg/crypto/openpgp/read_test.go