xref: /freebsd/crypto/krb5/doc/html/_sources/appdev/refs/api/krb5_kt_resolve.rst.txt (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1krb5_kt_resolve -  Get a handle for a key table.
2=================================================
3
4..
5
6.. c:function:: krb5_error_code krb5_kt_resolve(krb5_context context, const char * name, krb5_keytab * ktid)
7
8..
9
10
11:param:
12
13	          **[in]** **context** - Library context
14
15	          **[in]** **name** - Name of the key table
16
17	          **[out]** **ktid** - Key table handle
18
19
20..
21
22
23:retval:
24         -   0   Success
25
26
27:return:
28         -  Kerberos error codes
29
30..
31
32
33
34
35
36
37
38Resolve the key table name *name* and set *ktid* to a handle identifying the key table. Use krb5_kt_close() to free *ktid* when it is no longer needed.
39
40
41
42 *name* must be of the form **type:residual** , where *type* must be a type known to the library and *residual* portion should be specific to the particular keytab type. If no *type* is given, the default is **FILE** .
43
44
45
46If *name* is of type **FILE** , the keytab file is not opened by this call.
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61..
62
63
64
65
66
67