From 5bf6f5071fe88e572175f414c2f5a7d2c781ac29 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 8 Jan 1991 14:29:59 +0000 Subject: [PATCH] revision to replay cache to generalize git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1619 dc483132-0cff-0310-8789-dd5450dbe970 --- doc/api/krb5.tex | 9 +++++++++ doc/api/rcache.tex | 6 +++--- doc/implement/rcache-i.tex | 6 +++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/doc/api/krb5.tex b/doc/api/krb5.tex index 6f2645700..a02318c3d 100644 --- a/doc/api/krb5.tex +++ b/doc/api/krb5.tex @@ -750,3 +750,12 @@ Copy a principal structure, filling in \funcparam{*outprinc} to point to the newly allocated copy, which should be freed with \funcname{krb5_free_principal}. +\begin{funcdecl}{krb5_auth_to_rep}{krb5_error_code}{\funcin} +\funcarg{krb5_tkt_authent *}{auth} +\funcout +\funcarg{krb5_donot_replay *}{rep} +\end{funcdecl} +Extract the relevant parts of \funcparam{auth} and fill them into the +structure pointed to by \funcparam{rep}. \funcparam{rep{\ptsto}client} +and \funcparam{rep{\ptsto}server} are set to allocated storage and +should be freed when \funcparam{*rep} is no longer needed. diff --git a/doc/api/rcache.tex b/doc/api/rcache.tex index 5d49116cb..8b2ad1a9c 100644 --- a/doc/api/rcache.tex +++ b/doc/api/rcache.tex @@ -52,12 +52,12 @@ Errors: permission errors \begin{funcdecl}{krb5_rc_store}{krb5_error_code}{\funcin} \funcarg{krb5_rcache}{id} -\funcarg{krb5_tkt_authent *}{tkt_auth} +\funcarg{krb5_dont_replay *}{rep} \end{funcdecl} -Stores \funcparam{tkt_auth} in the replay cache \funcparam{id}. +Stores \funcparam{rep} in the replay cache \funcparam{id}. Requires that \funcparam{id} identifies a valid replay cache. -Returns KRB5KRB_AP_ERR_REPEAT if \funcparam{tkt_auth} is already in the +Returns KRB5KRB_AP_ERR_REPEAT if \funcparam{rep} is already in the cache. May also return permission errors, storage failure errors. \begin{funcdecl}{krb5_rc_expunge}{krb5_error_code}{\funcin} diff --git a/doc/implement/rcache-i.tex b/doc/implement/rcache-i.tex index 5d49116cb..8b2ad1a9c 100644 --- a/doc/implement/rcache-i.tex +++ b/doc/implement/rcache-i.tex @@ -52,12 +52,12 @@ Errors: permission errors \begin{funcdecl}{krb5_rc_store}{krb5_error_code}{\funcin} \funcarg{krb5_rcache}{id} -\funcarg{krb5_tkt_authent *}{tkt_auth} +\funcarg{krb5_dont_replay *}{rep} \end{funcdecl} -Stores \funcparam{tkt_auth} in the replay cache \funcparam{id}. +Stores \funcparam{rep} in the replay cache \funcparam{id}. Requires that \funcparam{id} identifies a valid replay cache. -Returns KRB5KRB_AP_ERR_REPEAT if \funcparam{tkt_auth} is already in the +Returns KRB5KRB_AP_ERR_REPEAT if \funcparam{rep} is already in the cache. May also return permission errors, storage failure errors. \begin{funcdecl}{krb5_rc_expunge}{krb5_error_code}{\funcin} -- 2.26.2