GetRemoteUserCredentials returns the remote user credentials.
()
| 1445 | |
| 1446 | // GetRemoteUserCredentials returns the remote user credentials. |
| 1447 | func (a *Agent) GetRemoteUserCredentials() (frag string, pwd string, err error) { |
| 1448 | valSet := make(chan struct{}) |
| 1449 | err = a.loop.Run(a.loop, func(_ context.Context) { |
| 1450 | frag = a.remoteUfrag |
| 1451 | pwd = a.remotePwd |
| 1452 | close(valSet) |
| 1453 | }) |
| 1454 | |
| 1455 | if err == nil { |
| 1456 | <-valSet |
| 1457 | } |
| 1458 | |
| 1459 | return |
| 1460 | } |
| 1461 | |
| 1462 | func (a *Agent) removeUfragFromMux() { |
| 1463 | if a.tcpMux != nil { |