The krb5_auth_con_genaddrs() function generates local and
remote network addresses from a socket descriptor and places them in an
authentication context.
The addresses generated by this routine can be retrieved by the application
by calling krb5_auth_con_getaddrs() and
krb5_auth_con_getports().
The socket must have been created using the AF_INET
address family. The socket must be in the connected state if the remote network
address is to be generated.
The Kerberos protocol runtime provides no concurrency control for the
authentication context. If the application wants to use the same authentication
context in multiple threads, it is the responsibility of the application to
serialize access to the authentication context so that only a single thread is
accessing the authentication context at any time.