xref: /freebsd/crypto/krb5/doc/html/_sources/appdev/refs/api/krb5_auth_con_genaddrs.rst.txt (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1krb5_auth_con_genaddrs -  Generate auth context addresses from a connected socket.
2===================================================================================
3
4..
5
6.. c:function:: krb5_error_code krb5_auth_con_genaddrs(krb5_context context, krb5_auth_context auth_context, int infd, int flags)
7
8..
9
10
11:param:
12
13	          **[in]** **context** - Library context
14
15	          **[in]** **auth_context** - Authentication context
16
17	          **[in]** **infd** - Connected socket descriptor
18
19	          **[in]** **flags** - Flags
20
21
22..
23
24
25:retval:
26         -   0   Success; otherwise - Kerberos error codes
27
28
29..
30
31
32
33
34
35
36
37This function sets the local and/or remote addresses in *auth_context* based on the local and remote endpoints of the socket *infd* . The following flags determine the operations performed:
38
39
40
41
42
43	 - #KRB5_AUTH_CONTEXT_GENERATE_LOCAL_ADDR Generate local address.
44
45
46	 - #KRB5_AUTH_CONTEXT_GENERATE_REMOTE_ADDR Generate remote address.
47
48
49	 - #KRB5_AUTH_CONTEXT_GENERATE_LOCAL_FULL_ADDR Generate local address and port.
50
51
52	 - #KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR Generate remote address and port.
53
54
55
56
57
58
59
60
61..
62
63
64
65
66
67