summaryrefslogtreecommitdiff
path: root/security/openssh-portable/files/extra-patch-hpn-gss-glue
blob: 57b47e8b023ad10355f42d125dff803e053db714 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--- sshconnect2.c.orig	2019-07-19 11:53:14.918867000 -0700
+++ sshconnect2.c	2019-07-19 11:53:16.911086000 -0700
@@ -159,11 +159,6 @@ ssh_kex2(struct ssh *ssh, char *host, struct sockaddr 
 	char *s, *all_key;
 	int r;
 
-#if defined(GSSAPI) && defined(WITH_OPENSSL)
-	char *orig = NULL, *gss = NULL;
-	char *gss_host = NULL;
-#endif
-
 	xxx_host = host;
 	xxx_hostaddr = hostaddr;
 
@@ -197,6 +192,9 @@ ssh_kex2(struct ssh *ssh, char *host, struct sockaddr 
 	}
 
 #if defined(GSSAPI) && defined(WITH_OPENSSL)
+	char *orig = NULL, *gss = NULL;
+	char *gss_host = NULL;
+
 	if (options.gss_keyex) {
 		/* Add the GSSAPI mechanisms currently supported on this
 		 * client to the key exchange algorithm proposal */
--- readconf.c.orig	2019-07-19 12:13:18.000312000 -0700
+++ readconf.c	2019-07-19 12:13:29.614552000 -0700
@@ -63,11 +63,11 @@
 #include "readconf.h"
 #include "match.h"
 #include "kex.h"
+#include "ssh-gss.h"
 #include "mac.h"
 #include "uidswap.h"
 #include "myproposal.h"
 #include "digest.h"
-#include "ssh-gss.h"
 
 /* Format of the configuration file:
 
--- servconf.c.orig	2019-07-19 12:14:42.078398000 -0700
+++ servconf.c	2019-07-19 12:14:43.543687000 -0700
@@ -54,6 +54,7 @@
 #include "sshkey.h"
 #include "kex.h"
 #include "mac.h"
+#include "ssh-gss.h"
 #include "match.h"
 #include "channels.h"
 #include "groupaccess.h"
@@ -64,7 +65,6 @@
 #include "auth.h"
 #include "myproposal.h"
 #include "digest.h"
-#include "ssh-gss.h"
 
 static void add_listen_addr(ServerOptions *, const char *,
     const char *, int);