summaryrefslogtreecommitdiff
path: root/src/pkg/crypto/x509/x509.go
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2009-11-17 18:09:41 -0800
committerAdam Langley <agl@golang.org>2009-11-17 18:09:41 -0800
commit6eb2c27248680b5fdb1a6b7e0da2c8a8f98607a7 (patch)
treec8d55bf845256c9f54dd67e7955be2e60301821e /src/pkg/crypto/x509/x509.go
parente6ecaea0d007cdaf14824a59547c1f7e5e635e40 (diff)
downloadgolang-6eb2c27248680b5fdb1a6b7e0da2c8a8f98607a7.tar.gz
asn1:
* add Marshal * add BitString.RightAlign * change to using a *time.Time (from time.Time) since that's what the time package uses. * return the unparsed data from Unmarshal. R=rsc CC=golang-dev http://codereview.appspot.com/156047
Diffstat (limited to 'src/pkg/crypto/x509/x509.go')
-rw-r--r--src/pkg/crypto/x509/x509.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/crypto/x509/x509.go b/src/pkg/crypto/x509/x509.go
index 572b4e639..c1488e41e 100644
--- a/src/pkg/crypto/x509/x509.go
+++ b/src/pkg/crypto/x509/x509.go
@@ -32,7 +32,7 @@ func rawValueIsInteger(raw *asn1.RawValue) bool {
// ParsePKCS1PrivateKey returns an RSA private key from its ASN.1 PKCS#1 DER encoded form.
func ParsePKCS1PrivateKey(der []byte) (key *rsa.PrivateKey, err os.Error) {
var priv pkcs1PrivateKey;
- err = asn1.Unmarshal(&priv, der);
+ _, err = asn1.Unmarshal(&priv, der);
if err != nil {
return
}