Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Include krb5_cc_copy_creds function #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/Authen/Krb5.pm
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ error.
Initializes a context for the application. Returns a C<Authen::Krb5::Context>
object, or C<undef> if there was an error.

=func C<cc_copy_creds(incc, outcc)>

Copies a credential cache to a different one. C<outcc>, the credential cache
to be filled in, can be of different type.

=func C<init_ets() (DEPRECATED)>

Initializes the Kerberos error tables. Should be called along with
Expand Down
11 changes: 11 additions & 0 deletions lib/Authen/Krb5.xs
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,17 @@ krb5_recvauth(auth_context,fh,version,server,keytab)
sv_setref_pv(ST(0),"Authen::Krb5::Ticket",(void*)ticket);
XSRETURN(1);

void
cc_copy_creds(incc,outcc)
Authen::Krb5::Ccache incc
Authen::Krb5::Ccache outcc

CODE:
err = krb5_cc_copy_creds(context, incc, outcc);
if (err) XSRETURN_UNDEF;
XSRETURN_YES;



MODULE = Authen::Krb5 PACKAGE = Authen::Krb5::Principal

Expand Down