xref: /freebsd/crypto/krb5/doc/html/_sources/appdev/refs/api/krb5_init_context_profile.rst.txt (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1krb5_init_context_profile -  Create a krb5 library context using a specified profile.
2======================================================================================
3
4..
5
6.. c:function:: krb5_error_code krb5_init_context_profile(struct _profile_t * profile, krb5_flags flags, krb5_context * context)
7
8..
9
10
11:param:
12
13	          **[in]** **profile** - Profile object (NULL to create default profile)
14
15	          **[in]** **flags** - Context initialization flags
16
17	          **[out]** **context** - Library context
18
19
20..
21
22
23
24..
25
26
27
28
29
30
31
32Create a context structure, optionally using a specified profile and initialization flags. If *profile* is NULL, the default profile will be created from config files. If *profile* is non-null, a copy of it will be made for the new context; the caller should still clean up its copy. Valid flag values are:
33
34
35
36
37
38	 - #KRB5_INIT_CONTEXT_SECURE Ignore environment variables
39
40
41	 - #KRB5_INIT_CONTEXT_KDC Use KDC configuration if creating profile
42
43
44
45
46
47
48
49
50..
51
52
53
54
55
56