net-misc/openssh: fix implicit prototype warning w/USE=kerberos #590382
authorMike Frysinger <vapier@gentoo.org>
Sat, 6 Aug 2016 08:58:15 +0000 (16:58 +0800)
committerMike Frysinger <vapier@gentoo.org>
Sat, 6 Aug 2016 08:58:31 +0000 (16:58 +0800)
net-misc/openssh/files/openssh-7.3_p1-GSSAPI-dns.patch

index d6798e2a861557598b7aaa752d295068959f2a8b..806b36d0ca940178e801c706cbb1928fe49d8526 100644 (file)
@@ -82,15 +82,16 @@ https://bugzilla.mindrot.org/show_bug.cgi?id=1008
  .Xr ssh 1
 --- a/sshconnect2.c
 +++ b/sshconnect2.c
-@@ -656,6 +656,12 @@
+@@ -656,6 +656,13 @@
        static u_int mech = 0;
        OM_uint32 min;
        int ok = 0;
 +      const char *gss_host;
 +
-+      if (options.gss_trust_dns)
++      if (options.gss_trust_dns) {
++              extern const char *auth_get_canonical_hostname(struct ssh *ssh, int use_dns);
 +              gss_host = auth_get_canonical_hostname(active_state, 1);
-+      else
++      } else
 +              gss_host = authctxt->host;
  
        /* Try one GSSAPI method at a time, rather than sending them all at