mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
- GSSAPI patch improved for kerbers5 and hemidal
Submitted by: bg@sics.se
This commit is contained in:
parent
cb92a933d0
commit
709dd56c79
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=90731
@ -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:
|
||||
|
18
security/hpn-ssh/files/gss-serv.c.patch
Normal file
18
security/hpn-ssh/files/gss-serv.c.patch
Normal file
@ -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;
|
||||
|
||||
/*
|
@ -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:
|
||||
|
18
security/openssh-portable/files/gss-serv.c.patch
Normal file
18
security/openssh-portable/files/gss-serv.c.patch
Normal file
@ -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;
|
||||
|
||||
/*
|
Loading…
Reference in New Issue
Block a user