Bugzilla – Attachment 1696 Details for
Bug 1650
GSSAPI code can only accept connections for the gethostbyname() name.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to allow a GSS_HOSTNAME environment variable to override gethostname()
gss-serv.patch (text/plain), 572 bytes, created by
Marc Mengel
on 2009-09-17 01:45:37 AEST
(
hide
)
Description:
Patch to allow a GSS_HOSTNAME environment variable to override gethostname()
Filename:
MIME Type:
Creator:
Marc Mengel
Created:
2009-09-17 01:45:37 AEST
Size:
572 bytes
patch
obsolete
>*** gss-serv.orig 2009-09-16 10:38:37.000000000 -0500 >--- gss-serv.c 2009-09-16 10:40:46.000000000 -0500 >*************** >*** 76,85 **** >--- 76,89 ---- > OM_uint32 status; > char lname[MAXHOSTNAMELEN]; > gss_OID_set oidset; >+ char *p; > > gss_create_empty_oid_set(&status, &oidset); > gss_add_oid_set_member(&status, ctx->oid, &oidset); > >+ if (0 != (p = getenv("GSS_HOSTNAME"))) { >+ strncpy(lname,p,MAXHOSTNAMELEN); >+ } else > if (gethostname(lname, MAXHOSTNAMELEN)) { > gss_release_oid_set(&status, &oidset); > return (-1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1650
: 1696