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