Displaying 1 result from an estimated 1 matches for "bsdauth_child_set_env".
2006 Sep 18
1
BSD Auth: set child environment variables requested by login script [PATCH]
...API
#include "ssh-gss.h"
#endif
#include "monitor_wrap.h"
+
+/*
+ * Set child environment variables 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;
+...