]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Minor fixes for leashwin.h
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Sat, 9 Jun 2012 18:21:13 +0000 (14:21 -0400)
committerTom Yu <tlyu@mit.edu>
Mon, 27 Aug 2012 23:27:35 +0000 (19:27 -0400)
-explicitly include krb5.h (for krb5_timestamp)
-add extern "C" scope for c++ compatibility

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
(cherry picked from commit 68c9b0afef303114c7a43cb90d2516e5d7e2d817)

ticket: 7267
status: resolved

src/windows/include/leashwin.h

index 39a7d1a45f8a52688c8ad59f7fafe3087a650ba0..fc210a6ab573178500f4d8ee935fd3de531fa28c 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef NO_KRB4
 #include <krb.h>
 #else
+#include <krb5.h>
 #define ANAME_SZ               40
 #define        REALM_SZ                40
 #define        SNAME_SZ                40
@@ -127,6 +128,10 @@ struct TICKETINFO {
     unsigned long flags;
 };
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int FAR Leash_kinit_dlg(HWND hParent, LPLSH_DLGINFO lpdlginfo);
 int FAR Leash_kinit_dlg_ex(HWND hParent, LPLSH_DLGINFO_EX lpdlginfoex);
 int FAR Leash_changepwd_dlg(HWND hParent, LPLSH_DLGINFO lpdlginfo);
@@ -208,5 +213,8 @@ DWORD Leash_reset_default_mslsa_import();
 DWORD Leash_get_default_preserve_kinit_settings();
 DWORD Leash_set_default_preserve_kinit_settings(DWORD onoff);
 DWORD Leash_reset_default_preserve_kinit_settings();
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* LEASHWIN */