go.crypto/ssh: remove misleading marshalPrivRSA.

Properly capitalize publicKey throughout.

R=golang-dev
CC=agl, dave, golang-dev, jpsugar
https://golang.org/cl/13415046
This commit is contained in:
Han-Wen Nienhuys
2013-09-05 11:36:51 -04:00
committed by Adam Langley
parent 58b09dec0e
commit f17d130281
7 changed files with 13 additions and 28 deletions
+2 -2
View File
@@ -248,7 +248,7 @@ func serializeSignature(algoname string, sig []byte) []byte {
}
// serialize a *rsa.PublicKey or *dsa.PublicKey according to RFC 4253 6.6.
func serializePublickey(key interface{}) []byte {
func serializePublicKey(key interface{}) []byte {
var pubKeyBytes []byte
algoname := algoName(key)
switch key := key.(type) {
@@ -304,7 +304,7 @@ func algoName(key interface{}) string {
}
}
}
panic("unexpected key type")
panic(fmt.Sprintf("unexpected key type %T", key))
}
// buildDataSignedForAuth returns the data that is signed in order to prove