diff options
| author | Tom Yu <tlyu@mit.edu> | 2003-02-11 02:20:12 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2003-02-11 02:20:12 +0000 |
| commit | 048ce3638ec9fe5a0103c8b20722af4f14f3feaf (patch) | |
| tree | e6e68ab7491523c6f3ee17493277f306b2429153 /src/lib | |
| parent | 208e27d7e52cdaa9ed75bcfbd22b0527f5a2c4df (diff) | |
| download | krb5-048ce3638ec9fe5a0103c8b20722af4f14f3feaf.tar.gz krb5-048ce3638ec9fe5a0103c8b20722af4f14f3feaf.tar.xz krb5-048ce3638ec9fe5a0103c8b20722af4f14f3feaf.zip | |
Various fixes to Windows build of krb4 library. Fix up KRB5_CALLCONV
on some new krb4 library functions. Fix up library generation to
refer to des425.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15174 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ChangeLog | 4 | ||||
| -rw-r--r-- | src/lib/Makefile.in | 2 | ||||
| -rw-r--r-- | src/lib/krb4/ChangeLog | 6 | ||||
| -rw-r--r-- | src/lib/krb4/krb4int.h | 12 | ||||
| -rw-r--r-- | src/lib/krb4/password_to_key.c | 27 |
5 files changed, 38 insertions, 13 deletions
diff --git a/src/lib/ChangeLog b/src/lib/ChangeLog index 3f2be016d..7f0061d9b 100644 --- a/src/lib/ChangeLog +++ b/src/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-02-10 Tom Yu <tlyu@mit.edu> + + * Makefile.in (K4LIBS): Add des425.lib. + 2003-01-17 Ken Raeburn <raeburn@mit.edu> * krb5_32.def: Export krb5_rc_close, krb5_free_enc_tkt_part, and diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in index 01a43511d..83624ef6b 100644 --- a/src/lib/Makefile.in +++ b/src/lib/Makefile.in @@ -40,7 +40,7 @@ KLIBS = krb5\$(OUTPRE)krb5.lib crypto\$(OUTPRE)crypto.lib \ $(BUILDTOP)\util\profile\$(OUTPRE)profile.lib \ des425\$(OUTPRE)des425.lib GLIBS = gssapi\$(OUTPRE)gssapi.lib -K4LIBS = krb4\$(OUTPRE)krb4.lib +K4LIBS = krb4\$(OUTPRE)krb4.lib des425\$(OUTPRE)des425.lib CDEF = comerr32.def PDEF = xpprof32.def diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index fbef40e26..e71a890ae 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,5 +1,11 @@ 2003-02-10 Tom Yu <tlyu@mit.edu> + * password_to_key.c (mit_passwd_to_key, krb5_passwd_to_key) + (afs_passwd_to_key): Fix to have KRB5_CALLCONV. + + * krb4int.h (mit_passwd_to_key, krb5_passwd_to_key): + (afs_passwd_to_key): Fix prototypes to have KRB5_CALLCONV. + * CCache-glue.c (krb4int_save_credentials_addr): Renamed from krb_save_credentials(). (krb_save_credentials): Implement in terms of diff --git a/src/lib/krb4/krb4int.h b/src/lib/krb4/krb4int.h index 0a09378cf..9857b4cae 100644 --- a/src/lib/krb4/krb4int.h +++ b/src/lib/krb4/krb4int.h @@ -72,12 +72,12 @@ const char * month_sname(int); /* password_to_key.c */ key_proc_type *krb_get_keyprocs (key_proc_type keyproc); -int mit_passwd_to_key(char *user, char *instance, char *realm, - char *passwd, C_Block key); -int krb5_passwd_to_key(char *user, char *instance, char *realm, - char *passwd, C_Block key); -int afs_passwd_to_key(char *user, char *instance, char *realm, - char *passwd, C_Block key); +int KRB5_CALLCONV mit_passwd_to_key(char *user, char *instance, char *realm, + char *passwd, C_Block key); +int KRB5_CALLCONV krb5_passwd_to_key(char *user, char *instance, char *realm, + char *passwd, C_Block key); +int KRB5_CALLCONV afs_passwd_to_key(char *user, char *instance, char *realm, + char *passwd, C_Block key); /* rd_preauth.c */ #ifdef KRB_DB_DEFS diff --git a/src/lib/krb4/password_to_key.c b/src/lib/krb4/password_to_key.c index ee040fc51..adde3b9fd 100644 --- a/src/lib/krb4/password_to_key.c +++ b/src/lib/krb4/password_to_key.c @@ -72,8 +72,13 @@ key_proc_type *krb_get_keyprocs (key_proc_type keyproc) } } -int mit_passwd_to_key(char *user, char *instance, char *realm, - char *passwd, C_Block key) +int KRB5_CALLCONV +mit_passwd_to_key( + char *user, + char *instance, + char *realm, + char *passwd, + C_Block key) { #pragma unused(user) #pragma unused(instance) @@ -92,8 +97,13 @@ int mit_passwd_to_key(char *user, char *instance, char *realm, } /* So we can use a v4 kinit against a v5 kdc with no krb4 salted key */ -int krb5_passwd_to_key(char *user, char *instance, char *realm, - char *passwd, C_Block key) +int KRB5_CALLCONV +krb5_passwd_to_key( + char *user, + char *instance, + char *realm, + char *passwd, + C_Block key) { if (user && instance && realm && passwd) { unsigned int len = MAX_K_NAME_SZ + strlen(passwd) + 1; @@ -109,8 +119,13 @@ int krb5_passwd_to_key(char *user, char *instance, char *realm, return -1; } -int afs_passwd_to_key(char *user, char *instance, char *realm, - char *passwd, C_Block key) +int KRB5_CALLCONV +afs_passwd_to_key( + char *user, + char *instance, + char *realm, + char *passwd, + C_Block key) { #pragma unused(user) #pragma unused(instance) |
