MCPcopy
hub / github.com/go-sql-driver/mysql / getServerPubKey

Function getServerPubKey

auth.go:78–85  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

76}
77
78func getServerPubKey(name string) (pubKey *rsa.PublicKey) {
79 serverPubKeyLock.RLock()
80 if v, ok := serverPubKeyRegistry[name]; ok {
81 pubKey = v
82 }
83 serverPubKeyLock.RUnlock()
84 return
85}
86
87// Hash password using pre 4.1 (old password) method
88// https://github.com/atcurtis/mariadb/blob/master/mysys/my_rnd.c

Callers 1

normalizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected