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

Function DeregisterServerPubKey

auth.go:70–76  ·  view source on GitHub ↗

DeregisterServerPubKey removes the public key registered with the given name.

(name string)

Source from the content-addressed store, hash-verified

68
69// DeregisterServerPubKey removes the public key registered with the given name.
70func DeregisterServerPubKey(name string) {
71 serverPubKeyLock.Lock()
72 if serverPubKeyRegistry != nil {
73 delete(serverPubKeyRegistry, name)
74 }
75 serverPubKeyLock.Unlock()
76}
77
78func getServerPubKey(name string) (pubKey *rsa.PublicKey) {
79 serverPubKeyLock.RLock()

Callers 3

TestDSNServerPubKeyFunction · 0.85
TestCloneConfigFunction · 0.85

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 3

TestDSNServerPubKeyFunction · 0.68
TestCloneConfigFunction · 0.68