summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-10-10 03:52:03 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-10-10 03:52:03 +0000
commit709dd56c79c70e800f9c71b919b8c0cf7c6c50ce (patch)
tree4bd2355a959c2e812ad310f1258a38df6b64fb91 /security
parentUpdate port to version 1.7 and fix the URL since they switch to viewcvs. (diff)
- GSSAPI patch improved for kerbers5 and hemidal
Submitted by: bg@sics.se
Notes
Notes: svn path=/head/; revision=90731
Diffstat (limited to 'security')
-rw-r--r--security/hpn-ssh/Makefile5
-rw-r--r--security/hpn-ssh/files/gss-serv.c.patch18
-rw-r--r--security/openssh-portable/Makefile5
-rw-r--r--security/openssh-portable/files/gss-serv.c.patch18
4 files changed, 46 insertions, 0 deletions
diff --git a/security/hpn-ssh/Makefile b/security/hpn-ssh/Makefile
index 083c28144606..7e4e5650af63 100644
--- a/security/hpn-ssh/Makefile
+++ b/security/hpn-ssh/Makefile
@@ -88,6 +88,11 @@ pre-configure:
@${ECHO_MSG} !!!! Warning this option uses autoreconf !!!
(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOCONF_ENV} ${AUTORECONF} \
${AUTOCONF_ARGS})
+.else
+.if exists(/usr/include/krb5.h)
+CONFIGURE_ARGS+= --with-kerberos5
+EXTRA_PATCHES+= ${FILESDIR}/gss-serv.c.patch
+.endif
.endif
post-configure:
diff --git a/security/hpn-ssh/files/gss-serv.c.patch b/security/hpn-ssh/files/gss-serv.c.patch
new file mode 100644
index 000000000000..434f71e6d057
--- /dev/null
+++ b/security/hpn-ssh/files/gss-serv.c.patch
@@ -0,0 +1,18 @@
+--- gss-serv.c.DIST Tue Sep 2 14:56:42 2003
++++ gss-serv.c Mon Oct 6 17:56:23 2003
+@@ -138,6 +138,15 @@
+ OM_uint32 offset;
+ OM_uint32 oidl;
+
++#if defined(HEIMDAL)
++ if (strcmp(heimdal_version, "Heimdal 0.6") < 0) {
++ name->length = ename->length;
++ name->value = xmalloc(name->length+1);
++ memcpy(name->value,ename->value,name->length);
++ ((char *)name->value)[name->length] = 0;
++ return GSS_S_COMPLETE;
++ }
++#endif
+ tok=ename->value;
+
+ /*
diff --git a/security/openssh-portable/Makefile b/security/openssh-portable/Makefile
index 083c28144606..7e4e5650af63 100644
--- a/security/openssh-portable/Makefile
+++ b/security/openssh-portable/Makefile
@@ -88,6 +88,11 @@ pre-configure:
@${ECHO_MSG} !!!! Warning this option uses autoreconf !!!
(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOCONF_ENV} ${AUTORECONF} \
${AUTOCONF_ARGS})
+.else
+.if exists(/usr/include/krb5.h)
+CONFIGURE_ARGS+= --with-kerberos5
+EXTRA_PATCHES+= ${FILESDIR}/gss-serv.c.patch
+.endif
.endif
post-configure:
diff --git a/security/openssh-portable/files/gss-serv.c.patch b/security/openssh-portable/files/gss-serv.c.patch
new file mode 100644
index 000000000000..434f71e6d057
--- /dev/null
+++ b/security/openssh-portable/files/gss-serv.c.patch
@@ -0,0 +1,18 @@
+--- gss-serv.c.DIST Tue Sep 2 14:56:42 2003
++++ gss-serv.c Mon Oct 6 17:56:23 2003
+@@ -138,6 +138,15 @@
+ OM_uint32 offset;
+ OM_uint32 oidl;
+
++#if defined(HEIMDAL)
++ if (strcmp(heimdal_version, "Heimdal 0.6") < 0) {
++ name->length = ename->length;
++ name->value = xmalloc(name->length+1);
++ memcpy(name->value,ename->value,name->length);
++ ((char *)name->value)[name->length] = 0;
++ return GSS_S_COMPLETE;
++ }
++#endif
+ tok=ename->value;
+
+ /*