krb5 commit [krb5-1.11]: Build fixes for windows

Tom Yu tlyu at MIT.EDU
Wed Dec 5 16:01:02 EST 2012


https://github.com/krb5/krb5/commit/5c4e5d69db621dd47ee0fcd3c1c9fef872e81f17
commit 5c4e5d69db621dd47ee0fcd3c1c9fef872e81f17
Author: Ben Kaduk <kaduk at mit.edu>
Date:   Tue Dec 4 15:51:20 2012 -0500

    Build fixes for windows
    
    Add entries to OBJS and SRCS as well as STLIBOBJS.
    
    Use KRB5_CALLCONV at function definition as well as declaration.
    
    Declare missing variable in _WIN32-conditional code.
    
    (cherry picked from commit eef68e4dab824ef62dded1edb662d292ccad8984)
    
    ticket: 7479
    version_fixed: 1.11
    status: resolved

 src/lib/crypto/krb/Makefile.in         |    2 ++
 src/lib/gssapi/mechglue/g_initialize.c |    2 +-
 src/lib/krb5/krb/preauth_otp.c         |    6 +++---
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/lib/crypto/krb/Makefile.in b/src/lib/crypto/krb/Makefile.in
index b65559b..4ef9b85 100644
--- a/src/lib/crypto/krb/Makefile.in
+++ b/src/lib/crypto/krb/Makefile.in
@@ -88,6 +88,7 @@ OBJS=\
 	$(OUTPRE)checksum_length.$(OBJEXT)	\
 	$(OUTPRE)cksumtype_to_string.$(OBJEXT)	\
 	$(OUTPRE)cksumtypes.$(OBJEXT)		\
+	$(OUTPRE)cmac.$(OBJEXT)			\
 	$(OUTPRE)coll_proof_cksum.$(OBJEXT)	\
 	$(OUTPRE)combine_keys.$(OBJEXT)		\
 	$(OUTPRE)crc32.$(OBJEXT)		\
@@ -149,6 +150,7 @@ SRCS=\
 	$(srcdir)/checksum_length.c	\
 	$(srcdir)/cksumtype_to_string.c	\
 	$(srcdir)/cksumtypes.c		\
+	$(srcdir)/cmac.c		\
 	$(srcdir)/coll_proof_cksum.c	\
 	$(srcdir)/combine_keys.c	\
 	$(srcdir)/crc32.c		\
diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c
index 62c59ea..a7303b6 100644
--- a/src/lib/gssapi/mechglue/g_initialize.c
+++ b/src/lib/gssapi/mechglue/g_initialize.c
@@ -1330,7 +1330,7 @@ static void
 loadConfigFromRegistry(HKEY hBaseKey, const char *keyPath)
 {
 	HKEY hConfigKey;
-	DWORD iSubKey, nSubKeys, maxSubKeyNameLen;
+	DWORD iSubKey, nSubKeys, maxSubKeyNameLen, modTypeLen;
 	char *oidStr = NULL, *oid = NULL, *sharedLib = NULL, *kernMod = NULL;
 	char *modOptions = NULL, *modType = NULL;
 	DWORD oidStrLen = 0, oidLen = 0, sharedLibLen = 0, kernModLen = 0;
diff --git a/src/lib/krb5/krb/preauth_otp.c b/src/lib/krb5/krb/preauth_otp.c
index 27157c5..0828978 100644
--- a/src/lib/krb5/krb/preauth_otp.c
+++ b/src/lib/krb5/krb/preauth_otp.c
@@ -1174,7 +1174,7 @@ clpreauth_otp_initvt(krb5_context context, int maj_ver, int min_ver,
     return 0;
 }
 
-krb5_error_code
+krb5_error_code KRB5_CALLCONV
 krb5_responder_otp_get_challenge(krb5_context ctx,
                                  krb5_responder_context rctx,
                                  krb5_responder_otp_challenge **chl)
@@ -1197,7 +1197,7 @@ krb5_responder_otp_get_challenge(krb5_context ctx,
     return 0;
 }
 
-krb5_error_code
+krb5_error_code KRB5_CALLCONV
 krb5_responder_otp_set_answer(krb5_context ctx, krb5_responder_context rctx,
                               size_t ti, const char *value, const char *pin)
 {
@@ -1256,7 +1256,7 @@ error:
     return ENOMEM;
 }
 
-void
+void KRB5_CALLCONV
 krb5_responder_otp_challenge_free(krb5_context ctx,
                                   krb5_responder_context rctx,
                                   krb5_responder_otp_challenge *chl)


More information about the cvs-krb5 mailing list