[ History ]
+ 2004/01/23
+ ----------
+ Action: Merge
+ - occurred on: GPT branch
+ - orig base: OPENSSH_3_7_1P2_GSSAPI_20040119
+ - new base: OPENSSH_3_7_1P2_GSSAPI_20040123
+ Conflicts: 0
+
2004/01/19
----------
Action: Merge
#include "packet.h"
#include "log.h"
#include "servconf.h"
-#include "compat.h"
#include "auth.h"
#include "dispatch.h"
#include "pathnames.h"
gssbuf.length = sizeof("host@") + strlen(xhost);
gssbuf.value = xmalloc(gssbuf.length);
- snprintf(gssbuf.value, gssbuf.length, "host@%s", host);
+ snprintf(gssbuf.value, gssbuf.length, "host@%s", xhost);
if ((ctx->major = gss_import_name(&ctx->minor,
&gssbuf, GSS_C_NT_HOSTBASED_SERVICE, &ctx->name)))
#ifdef GSSAPI
if (options.gss_keyex) {
- char *canonhost;
/* Add the GSSAPI mechanisms currently supported on this client to
* the key exchange algorithm proposal */
orig = myproposal[PROPOSAL_KEX_ALGS];
- canonhost = xstrdup(get_canonical_hostname(1));
- resolve_localhost(&canonhost);
- gss = ssh_gssapi_client_mechanisms(canonhost);
- xfree(canonhost);
- canonhost=NULL;
+ gss = ssh_gssapi_client_mechanisms((char *)get_canonical_hostname(1));
if (gss) {
len = strlen(orig)+strlen(gss)+2;
myproposal[PROPOSAL_KEX_ALGS]=xmalloc(len);