* configure.in (withval): Link -ldyn as it is needed by the kadm5
shared library.
+Wed Jul 24 02:29:19 1996 Sam Hartman <hartmans@mit.edu>
+
+ * kerberos_v4.c (set_tgtkey): s/KRB4_#@/krb5_ui_4 so we work with
+ athena Kerberos.
+
+
+
Tue Jul 23 22:26:29 1996 Theodore Y. Ts'o <tytso@mit.edu>
* Makefile.in: Build logger.o from the libkadm5 directory. This
krb5kdc since they are needed for shared libraries. This
is a horrible hack....
+
Thu Jun 13 22:09:34 1996 Tom Yu <tlyu@voltage-multiplier.mit.edu>
* configure.in: remove ref to ET_RULES
dnl
dnl XXX we need to rethink where things go.
dnl
+USE_DYN_LIBRARY
USE_KADMSRV_LIBRARY
USE_GSSRPC_LIBRARY
USE_GSSAPI_LIBRARY
if (! compat_decrypt_key( pkey, k)) {
memcpy( &principal->key_low, k, LONGLEN);
- memcpy( &principal->key_high, (KRB4_32 *) k + 1, LONGLEN);
+ memcpy( &principal->key_high, (krb5_ui_4 *) k + 1, LONGLEN);
}
/* convert v5's entries struct to v4's Principal struct:
* v5's time-unit for lifetimes is 1 sec, while v4 uses 5 minutes.
/* unseal server's key from master key */
memcpy( key, &s_name_data.key_low, 4);
- memcpy( ((KRB4_32 *) key) + 1, &s_name_data.key_high, 4);
+ memcpy( ((krb5_ui_4 *) key) + 1, &s_name_data.key_high, 4);
s_name_data.key_low = s_name_data.key_high = 0;
kdb_encrypt_key(key, key, master_key,
/* a_name_data.key_low a_name_data.key_high */
memcpy( key, &a_name_data.key_low, 4);
- memcpy( ((KRB4_32 *) key) + 1, &a_name_data.key_high, 4);
+ memcpy( ((krb5_ui_4 *) key) + 1, &a_name_data.key_high, 4);
a_name_data.key_low= a_name_data.key_high = 0;
/* unseal the a_name key from the master key */
}
case AUTH_MSG_APPL_REQUEST:
{
- KRB4_32 time_ws; /* Workstation time */
+ krb5_ui_4 time_ws; /* Workstation time */
u_long req_life; /* Requested liftime */
char *service; /* Service name */
char *instance; /* Service instance */
/* unseal server's key from master key */
memcpy(key, &s_name_data.key_low, 4);
- memcpy(((KRB4_32 *) key) + 1, &s_name_data.key_high, 4);
+ memcpy(((krb5_ui_4 *) key) + 1, &s_name_data.key_high, 4);
s_name_data.key_low = s_name_data.key_high = 0;
kdb_encrypt_key(key, key, master_key,
master_key_schedule, DECRYPT);
/* unseal tgt key from master key */
memcpy(key, &p->key_low, 4);
- memcpy(((KRB4_32 *) key) + 1, &p->key_high, 4);
+ memcpy(((krb5_ui_4 *) key) + 1, &p->key_high, 4);
kdb_encrypt_key(key, key, master_key,
master_key_schedule, DECRYPT);
krb_set_key((char *) key, 0);
+Wed Jul 24 02:18:02 1996 Sam Hartman <hartmans@mit.edu>
+
+ * test.c (krb4_print_ticket): s/KRB4_INT4/krb5_ui_4 so we work
+ with Athena Kerberos4.
+
+Wed Jul 24 01:14:27 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * encode.c: s/PROTOTYPE/KRB5_PROTOTYPE
+
+ * krb524.h (KRB5_PROTOTYPE): Use KRB5_PROTOTYPE not PROTOTYPE because the include file is installed and PROTOTYPE wasn't defined anyway.
+
Wed Jul 31 17:05:25 1996 Tom Yu <tlyu@mit.edu>
* krb524d.c: Revert prior change due to shuffling of netdb.h
#include "krb524.h"
int krb524_convert_creds_plain
- PROTOTYPE((krb5_context context, krb5_creds *v5creds,
+KRB5_PROTOTYPE((krb5_context context, krb5_creds *v5creds,
CREDENTIALS *v4creds));
* the wheel is hidden.
*/
-int encode_v4tkt PROTOTYPE((KTEXT_ST *, char *, int *)),
- encode_ktext PROTOTYPE((char **, int *, KTEXT_ST *)),
- encode_bytes PROTOTYPE((char **, int *, char *, int)),
- encode_int32 PROTOTYPE((char **, int *, krb5_int32 *));
-
-int decode_v4tkt PROTOTYPE((KTEXT_ST *, char *, int *)),
- decode_ktext PROTOTYPE((char **, int *, KTEXT_ST *)),
- decode_bytes PROTOTYPE((char **, int *, char *, int)),
- decode_int32 PROTOTYPE((char **, int *, krb5_int32 *));
+int encode_v4tkt KRB5_PROTOTYPE((KTEXT_ST *, char *, int *)),
+ encode_ktext KRB5_PROTOTYPE((char **, int *, KTEXT_ST *)),
+ encode_bytes KRB5_PROTOTYPE((char **, int *, char *, int)),
+ encode_int32 KRB5_PROTOTYPE((char **, int *, krb5_int32 *));
+
+int decode_v4tkt KRB5_PROTOTYPE((KTEXT_ST *, char *, int *)),
+ decode_ktext KRB5_PROTOTYPE((char **, int *, KTEXT_ST *)),
+ decode_bytes KRB5_PROTOTYPE((char **, int *, char *, int)),
+ decode_int32 KRB5_PROTOTYPE((char **, int *, krb5_int32 *));
int encode_bytes(out, outlen, in, len)
char **out;
extern int krb524_debug;
int krb524_convert_tkt_skey
- PROTOTYPE((krb5_context context, krb5_ticket *v5tkt, KTEXT_ST *v4tkt,
+ KRB5_PROTOTYPE((krb5_context context, krb5_ticket *v5tkt, KTEXT_ST *v4tkt,
krb5_keyblock *v5_skey, krb5_keyblock *v4_skey));
/* conv_princ.c */
int krb524_convert_princs
- PROTOTYPE((krb5_context context, krb5_principal client,
+ KRB5_PROTOTYPE((krb5_context context, krb5_principal client,
krb5_principal server, char *pname,
char *pinst, char *prealm, char *sname, char *sinst));
/* conv_creds.c */
int krb524_convert_creds_addr
- PROTOTYPE((krb5_context context, krb5_creds *v5creds,
+ KRB5_PROTOTYPE((krb5_context context, krb5_creds *v5creds,
CREDENTIALS *v4creds, struct sockaddr *saddr));
int krb524_convert_creds_kdc
- PROTOTYPE((krb5_context context, krb5_creds *v5creds,
+ KRB5_PROTOTYPE((krb5_context context, krb5_creds *v5creds,
CREDENTIALS *v4creds));
/* conv_tkt.c */
int krb524_convert_tkt
- PROTOTYPE((krb5_principal server, krb5_data *v5tkt, KTEXT_ST *v4tkt,
+ KRB5_PROTOTYPE((krb5_principal server, krb5_data *v5tkt, KTEXT_ST *v4tkt,
int *kvno, struct sockaddr_in *saddr));
/* encode.c */
int encode_v4tkt
- PROTOTYPE((KTEXT_ST *v4tkt, char *buf, int *encoded_len));
+ KRB5_PROTOTYPE((KTEXT_ST *v4tkt, char *buf, int *encoded_len));
int decode_v4tkt
- PROTOTYPE((KTEXT_ST *v4tkt, char *buf, int *encoded_len));
+ KRB5_PROTOTYPE((KTEXT_ST *v4tkt, char *buf, int *encoded_len));
/* misc.c */
void krb524_init_ets
- PROTOTYPE((krb5_context context));
+ KRB5_PROTOTYPE((krb5_context context));
/* sendmsg.c */
int krb524_send_message
- PROTOTYPE((const struct sockaddr * addr, const krb5_data * message,
+ KRB5_PROTOTYPE((const struct sockaddr * addr, const krb5_data * message,
krb5_data * reply));
#endif /* __KRB524_H__ */
extern int krb5_skdc_timeout_1;
int krb524_send_message
- PROTOTYPE((const struct sockaddr * addr, const krb5_data * message,
+ KRB5_PROTOTYPE((const struct sockaddr * addr, const krb5_data * message,
krb5_data * reply));
char pname[ANAME_SZ], pinst[INST_SZ], prealm[REALM_SZ];
char sname[ANAME_SZ], sinst[INST_SZ];
unsigned char flags;
- unsigned KRB4_32 addr;
- unsigned KRB4_32 issue_time;
+ krb5_ui_4 addr;
+ krb5_ui_4 issue_time;
C_Block session_key;
int life;
Key_schedule keysched;