How sshd manages globals

Nuno Gonçalves nunojpg at
Sun Jul 14 19:45:17 AEST 2019


I am looking for a small explanation of how some sshd code is architected.

sshd uses this 2 globals:

Authctxt *the_authctxt = NULL;
struct sshauthopt *auth_opts = NULL;

Since sshd can have several simultaneous unauthenticated connections
each on their own thread, how can this globals handle concurrency?

I appreciate any help to understand this.


More information about the openssh-unix-dev mailing list