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

Commit

Permalink
Include krb5_cc_copy_creds function
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Fernández Álvarez committed Mar 27, 2020
1 parent 3ad0ba2 commit b897862
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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

0 comments on commit b897862

Please sign in to comment.