(name string)
| 76 | } |
| 77 | |
| 78 | func 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 |