+Mon Nov 21 14:17:50 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * library.tex (internalfunc): Define \internalfunc, which prints a
+ disclaimer in front of "internal functions". We should
+ move them somewhere else, but for now, let's start marking
+ those functions which we believe are internal.
+
+ * krb5.tex: Documented changed interfaces to krb5_encode_kdc_rep
+ and krb5_encrypt_tkt_part. Document krb5_encode_kdc_rep,
+ krb5_decode_kdc_rep, krb5_encrypt_tkt_part,
+ krb5_decrypt_tkt_part, and krb5_send_tgs as all internal
+ functions.
+
Thu Oct 13 13:14:48 1994 Theodore Y. Ts'o (tytso@dcl)
* krb5.tex: Fixed typo; extra space in \funcname{ krb5_recvauth}.
\begin{funcdecl}{krb5_encode_kdc_rep}{krb5_error_code}{\funcin}
\funcarg{const krb5_msgtype}{type}
\funcarg{const krb5_enc_kdc_rep_part *}{encpart}
+\funcarg{krb5_encrypt_block *}{eblock}
\funcarg{const krb5_keyblock *}{client_key}
\funcinout
\funcarg{krb5_kdc_rep *}{dec_rep}
\funcarg{krb5_data **}{enc_rep}
\end{funcdecl}
+\internalfunc
+
Takes KDC rep parts in \funcparam{*rep} and \funcparam{*encpart}, and
-formats it into \funcparam{*enc_rep}, using message type \funcparam{type}
-and encryption key \funcparam{client_key} and encryption type
-\funcparam{dec_rep{\ptsto}etype}.
+formats it into \funcparam{*enc_rep}, using message type
+\funcparam{type} and encryption key \funcparam{client_key} and
+encryption block \funcparam{eblock}.
\funcparam{enc_rep{\ptsto}data} will point to allocated storage upon
non-error return; the caller should free it when finished.
\funcarg{krb5_kdc_rep **}{dec_rep}
\end{funcdecl}
+\internalfunc
+
Takes a KDC_REP message and decrypts encrypted part using
\funcparam{etype} and \funcparam{*key}, putting result in \funcparam{*dec_rep}.
The pointers in \funcparam{dec_rep}
argument to \funcname{krb5_get_in_tkt}.
\begin{funcdecl}{krb5_encrypt_tkt_part}{krb5_error_code}{ \funcin}
+\funcarg{const krb5_encrypt_block *}{eblock}
\funcarg{const krb5_keyblock *}{srv_key}
\funcinout
\funcarg{krb5_ticket *}{dec_ticket}
\end{funcdecl}
+\internalfunc
+
Takes unencrypted \funcparam{dec_ticket} and
\funcparam{dec_ticket{\ptsto}enc_part2}, encrypts with
-\funcparam{dec_ticket{\ptsto}etype}
-using \funcparam{srv_key}, and places result in
+the encryption system specified by \funcparam{eblock} using
+\funcparam{srv_key}, and places result in
\funcparam{dec_ticket{\ptsto}enc_part}.
The string \funcparam{dec_ticket{\ptsto}enc_part} will be allocated
before formatting.
\funcarg{krb5_ticket *}{dec_ticket}
\end{funcdecl}
+\internalfunc
+
Takes encrypted \funcparam{dec_ticket{\ptsto}enc_part}, encrypts with
\funcparam{dec_ticket{\ptsto}etype}
using \funcparam{srv_key}, and places result in
\funcarg{krb5_response *}{rep}
\end{funcdecl}
+\internalfunc
+
Sends a request to the TGS and waits for a response.
\funcparam{options} is used for the options in the KRB_TGS_REQ.
\funcparam{timestruct} values are used for from, till, and rtime in the