]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: add MarshalPKCS8PrivateKey
authorJames Hartig <fastest963@gmail.com>
Fri, 14 Apr 2017 04:53:09 +0000 (00:53 -0400)
committerAdam Langley <agl@golang.org>
Tue, 15 Aug 2017 18:43:32 +0000 (18:43 +0000)
commit0a1a65c9ce2a55a41ccce8e681faabb719c827db
tree581903fd6f7e9b12471c4caf074cf356b31616b8
parent03929984b9b473aa1c2e7f86c89a9c3624667d59
crypto/x509: add MarshalPKCS8PrivateKey

asn1.NullRawValue was used according to RFC 3279 2.2.1. Without this tag,
the output didn't match openssl.

Fixes #19972

Change-Id: Ia52ddb810888837f913dbd65c4e1328f6c8084bb
Reviewed-on: https://go-review.googlesource.com/40730
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/crypto/x509/pkcs8.go
src/crypto/x509/pkcs8_test.go
src/crypto/x509/sec1.go