]> andersk Git - openssh.git/blobdiff - sshconnect2.c
- (djm) Make portable build with MIT krb5 (some issues remain)
[openssh.git] / sshconnect2.c
index 0605e4e5f6a19df308bbe374e62d403d7eafb397..f91f5b274140e67225e6e0484ad8bc1d7e37ebcf 100644 (file)
@@ -27,8 +27,13 @@ RCSID("$OpenBSD: sshconnect2.c,v 1.118 2003/05/14 02:15:47 markus Exp $");
 
 #ifdef KRB5
 #include <krb5.h>
+#ifndef HEIMDAL
+#define krb5_get_err_text(context,code) error_message(code)
+#endif /* !HEIMDAL */
 #endif
 
+#include "openbsd-compat/sys-queue.h"
+
 #include "ssh.h"
 #include "ssh2.h"
 #include "xmalloc.h"
@@ -1206,7 +1211,12 @@ userauth_kerberos(Authctxt *authctxt)
        packet_put_string(ap.data, ap.length);
        packet_send();
 
+#ifdef HEIMDAL
        krb5_data_free(&ap);
+#else
+# warning "XXX - leaks ap data on MIT kerberos"
+#endif
+
        return (1);
 }
 #endif
This page took 0.192228 seconds and 4 git commands to generate.