krb5_copy_data()--Copy a Kerberos Data Object


  Syntax
 #include <krb5.h>

 krb5_error_code krb5_copy_data(
     krb5_context     context,
     krb5_const krb5_data *     from_data,  
     krb5_data **     to_data); 
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_copy_data() function copies a Kerberos data object that is represented by a krb5_data structure.


Authorities

No authorities are required.


Parameters

context  (Input)
The Kerberos context.

from_data  (Input)
The data object to be copied.

to_data  (Output)
The copied data object. The krb5_free_data() routine should be called to release the data object when it is no longer needed.

Return Value

If no errors occur, the return value is 0. Otherwise, a Kerberos error code is returned.


Error Messages

Message ID Error Message Text
CPE3418 E Possible APAR condition or hardware failure.


API introduced: V5R1
Top | Security APIs
UNIX-Type APIs | APIs by category