aboutsummaryrefslogtreecommitdiff
path: root/doc/html/_sources/appdev/refs/api/krb5_copy_principal.txt
blob: 1ca9fea71603ddcb7cfff72b75ce9f524b703ee7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
krb5_copy_principal -  Copy a principal. 
=========================================

..

.. c:function:: krb5_error_code krb5_copy_principal(krb5_context context, krb5_const_principal inprinc, krb5_principal * outprinc)

..


:param:

	          **[in]** **context** - Library context

	          **[in]** **inprinc** - Principal to be copied

	          **[out]** **outprinc** - Copy of *inprinc*


..


:retval:
         -   0   Success; otherwise - Kerberos error codes


..







This function creates a new principal structure with the contents of *inprinc* . Use :c:func:`krb5_free_principal()` to free *outprinc* when it is no longer needed.










..