[PATCH] kerberos: Fix compilation on systems where SONAME_LIBKRB5 is not defined.

Dmitry Timoshkov dmitry at baikal.ru
Mon Jul 1 22:05:26 CDT 2019


Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 dlls/kerberos/krb5_ap.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dlls/kerberos/krb5_ap.c b/dlls/kerberos/krb5_ap.c
index 3827e5ccbc..0a6463c5f3 100644
--- a/dlls/kerberos/krb5_ap.c
+++ b/dlls/kerberos/krb5_ap.c
@@ -842,6 +842,8 @@ static int get_buffer_index( SecBufferDesc *desc, DWORD type )
     return -1;
 }
 
+#ifdef SONAME_LIBKRB5
+
 static char *get_user_at_domain( const WCHAR *user, ULONG user_len, const WCHAR *domain, ULONG domain_len )
 {
     int len_user, len_domain;
@@ -924,6 +926,16 @@ done:
     return krb5_error_to_status( err );
 }
 
+#else /* SONAME_LIBKRB5 */
+
+static NTSTATUS init_creds( const SEC_WINNT_AUTH_IDENTITY_W *id )
+{
+    FIXME( "Kerberos support was not provided at compile time\n" );
+    return SEC_E_UNKNOWN_CREDENTIALS;
+}
+
+#endif /* SONAME_LIBKRB5 */
+
 static NTSTATUS acquire_credentials_handle( UNICODE_STRING *principal_us, gss_cred_usage_t cred_usage,
     LSA_SEC_HANDLE *credential, TimeStamp *ts_expiry )
 {
-- 
2.20.1




More information about the wine-devel mailing list