krb5_copy_authdata()--Copy an Array of Authorization Data Structures


  Syntax
 #include <krb5.h>

 krb5_error_code krb5_copy_authdata(
     krb5_context     context,
     krb5_authdata * krb5_const * from_authdata,  
     krb5_authdata ***      to_authdata); 
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_copy_authdata() function copies an array of authorization data structures.


Authorities

No authorities are required.


Parameters

context  (Input)
The Kerberos context.

from_authdata  (Input)
The array of krb5_authdata structures. The last array entry must be a NULL pointer.

to_authdata  (Output)
The new array of krb5_authdata structures. The krb5_free_authdata() routine should be called to release the array 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

[ Back to top | Security APIs | UNIX-Type APIs | APIs by category ]