Building OpenSSH with Heimdal/Kerberos on OpenBSD

Markus Schmidt markus at blueflash.cc
Sat Mar 16 05:04:54 AEDT 2019


On 03.15.19 16:58 , Markus Schmidt wrote:
> Also, judging from the compile errors in sshd, once -DGSSAPI is enabled, 
> I guess these are real errors.

Attached is a diff of the changes I had to make to get ssh and sshd 
compile with -DGSSAPI (and gssapi.h from heimdal), regardless of the 
other problems (like missing lib folders, etc.).

This is for the BSD version of OpenSSH.



Markus
-------------- next part --------------
diff -u ssh/auth-krb5.c ssh2/auth-krb5.c
--- ssh/auth-krb5.c	Mon Jul  9 23:35:50 2018
+++ ssh2/auth-krb5.c	Fri Mar 15 16:30:57 2019
@@ -36,6 +36,7 @@
 #include "ssh.h"
 #include "packet.h"
 #include "log.h"
+#include "misc.h"
 #include "sshbuf.h"
 #include "sshkey.h"
 #include "servconf.h"
diff -u ssh/auth2-gss.c ssh2/auth2-gss.c
--- ssh/auth2-gss.c	Tue Jul 31 05:10:27 2018
+++ ssh2/auth2-gss.c	Fri Mar 15 16:31:31 2019
@@ -34,6 +34,7 @@
 #include "auth.h"
 #include "ssh2.h"
 #include "log.h"
+#include "misc.h"
 #include "dispatch.h"
 #include "sshbuf.h"
 #include "ssherr.h"
diff -u ssh/gss-serv.c ssh2/gss-serv.c
--- ssh/gss-serv.c	Mon Jul  9 23:37:55 2018
+++ ssh2/gss-serv.c	Fri Mar 15 18:35:12 2019
@@ -26,6 +26,8 @@
 
 #include <sys/types.h>
 #include <sys/queue.h>
+#include <sys/param.h>
+#include <netdb.h>
 
 #ifdef GSSAPI
 


More information about the openssh-unix-dev mailing list