Displaying 7 results from an estimated 7 matches for "auth_session_t".
2006 Sep 18
1
BSD Auth: set child environment variables requested by login script [PATCH]
...s starting with "X_BSD_AUTH".
+ * After the call to auth_close(), these variables are in the
+ * current environment if the login script has requested them.
+ */
+void
+bsdauth_child_set_env(char ***envp, u_int *envsizep)
+{
+ extern char **environ;
+ char name[8*1024]; /* MAXSPOOLSIZE in auth_session_t */
+ char *value;
+ u_int i, namelen;
+
+ for (i = 0; environ[i] != NULL; i++) {
+ namelen = strcspn(environ[i], "=");
+ if (namelen + 1 > sizeof(name))
+ continue;
+ snprintf(name, namelen + 1, "%s", environ[i]);
+ value = environ[i] + namelen + 1;
+ if (strncmp(name,...
2001 Jun 03
1
OPIE support patch
...Mar 5 06:56:41 2001
+++ openssh-2.5.2p2/auth.h Sun Jun 3 18:27:18 2001
@@ -35,6 +35,10 @@
#include <bsd_auth.h>
#endif
+#ifdef OPIE
+#include <opie.h>
+#endif
+
typedef struct Authctxt Authctxt;
struct Authctxt {
int success;
@@ -48,6 +52,9 @@
char *style;
#ifdef BSD_AUTH
auth_session_t *as;
+#endif
+#ifdef OPIE
+ struct opie opiedata;
#endif
};
diff -wur org/openssh-2.5.2p2/configure.in openssh-2.5.2p2/configure.in
--- org/openssh-2.5.2p2/configure.in Mon Mar 19 00:09:28 2001
+++ openssh-2.5.2p2/configure.in Sun Jun 3 18:36:22 2001
@@ -473,6 +473,31 @@
)
LIBS="$LIBS $...
2022 Nov 05
1
[PATCH] Class-imposed login restrictions
...)
diff --git a/auth.c b/auth.c
index 13e8d7998..da0af66d4 100644
--- a/auth.c
+++ b/auth.c
@@ -465,6 +465,9 @@ getpwnamallow(struct ssh *ssh, const char *user)
{
#ifdef HAVE_LOGIN_CAP
extern login_cap_t *lc;
+#ifdef HAVE_AUTH_HOSTOK
+ const char *from_host, *from_ip;
+#endif
#ifdef BSD_AUTH
auth_session_t *as;
#endif
@@ -510,6 +513,21 @@ getpwnamallow(struct ssh *ssh, const char *user)
debug("unable to get login class: %s", user);
return (NULL);
}
+#ifdef HAVE_AUTH_HOSTOK
+ from_host = auth_get_canonical_hostname(ssh, options.use_dns);
+ from_ip = ssh_remote_ipaddr(ssh);
+ if (!au...
2004 Dec 13
5
[Bug 963] Problem compiling openssh 3.9p1
...pointer-arith -Wno-uninitialized -I. -I.. -I.
-I./.. -I/usr/local/include -I/usr/local/include -DHAVE_CONFIG_H -c
port-aix.cIn file included from port-aix.c:27:
../auth.h:39:22: bsd_auth.h: No such file or directory
In file included from port-aix.c:27:
../auth.h:62: error: parse error before "auth_session_t"
../auth.h:62: warning: no semicolon at end of struct or union
../auth.h:72: error: parse error before '}' token
make[1]: *** [port-aix.o] Error 1
make[1]: Leaving directory `/tmp/openssh-3.9p1/openbsd-compat'
make: *** [openbsd-compat/libopenbsd-compat.a] Error 2
------- You ar...
2007 Nov 05
5
[Bug 1389] New: Problem compiling openssh 4.7p1
...ized
-Wsign-compare -std=gnu99 -I. -I.. -I. -I./.. -I/usr/local/include
-I/usr/local/include -DHAVE_CONFIG_H -c port-aix.c
In file included from port-aix.c:33:
../auth.h:39:22: bsd_auth.h: No such file or directory
In file included from port-aix.c:33:
../auth.h:63: error: parse error before "auth_session_t"
../auth.h:63: warning: no semicolon at end of struct or union
../auth.h:74: error: parse error before '}' token
make[1]: *** [port-aix.o] Error 1
make[1]: Leaving directory `/tmp/openssh-4.7p1/openbsd-compat'
make: *** [openbsd-compat/libopenbsd-compat.a] Error 2
--
Configure bu...
2001 Mar 13
0
[PATCH] openssh 2.5.1p2 TIS authserv support
...return res && authctxt->valid;
+}
+
+#elif SKEY
#include <skey.h>
char *
diff -urN openssh-2.5.1p2/auth.h openssh-2.5.1p2-tis/auth.h
--- openssh-2.5.1p2/auth.h Sun Feb 18 07:01:00 2001
+++ openssh-2.5.1p2-tis/auth.h Fri Mar 9 10:23:09 2001
@@ -49,6 +49,9 @@
#ifdef BSD_AUTH
auth_session_t *as;
#endif
+#ifdef TIS_AUTH
+ struct tis_context *tis;
+#endif
};
/*
diff -urN openssh-2.5.1p2/config.h.in openssh-2.5.1p2-tis/config.h.in
--- openssh-2.5.1p2/config.h.in Thu Mar 1 01:11:34 2001
+++ openssh-2.5.1p2-tis/config.h.in Fri Mar 9 11:01:48 2001
@@ -299,6 +299,8 @@
/* Needed for S...
2004 Sep 07
0
Please review openssh patch for selinux
.../auth.h 2004-05-24 02:36:23.000000000 +0200
+++ openssh-3.9p1_selinux/auth.h 2004-09-07 18:03:09.000000000 +0200
@@ -57,6 +57,9 @@
char *service;
struct passwd *pw; /* set if 'valid' */
char *style;
+#ifdef WITH_SELINUX
+ char *role;
+#endif
void *kbdintctxt;
#ifdef BSD_AUTH
auth_session_t *as;
diff -u --new-file --recursive openssh-3.9p1_vanilla/auth1.c openssh-3.9p1_selinux/auth1.c
--- openssh-3.9p1_vanilla/auth1.c 2004-08-12 14:40:25.000000000 +0200
+++ openssh-3.9p1_selinux/auth1.c 2004-09-07 18:04:03.000000000 +0200
@@ -284,6 +284,9 @@
{
u_int ulen;
char *user, *style = NUL...