summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ssh/include
diff options
context:
space:
mode:
authorErik Trauschke <Erik.Trauschke@Sun.COM>2009-12-04 13:53:45 -0800
committerErik Trauschke <Erik.Trauschke@Sun.COM>2009-12-04 13:53:45 -0800
commitd8a94255794826f3bfbe8bc4d12e3d19e711a0ac (patch)
treef8565b583f7e6ae9715895bcd2be30c9196a709c /usr/src/cmd/ssh/include
parent095007817cff0953c8b7143880f19adf849c5103 (diff)
downloadillumos-joyent-d8a94255794826f3bfbe8bc4d12e3d19e711a0ac.tar.gz
PSARC 2009/449 sshd PreUserAuthHook
6850175 Extension of SSHD to run an executable prior to user authentication
Diffstat (limited to 'usr/src/cmd/ssh/include')
-rw-r--r--usr/src/cmd/ssh/include/auth.h6
-rw-r--r--usr/src/cmd/ssh/include/servconf.h1
-rw-r--r--usr/src/cmd/ssh/include/session.h6
3 files changed, 7 insertions, 6 deletions
diff --git a/usr/src/cmd/ssh/include/auth.h b/usr/src/cmd/ssh/include/auth.h
index d2bd9815b5..c932fafa6d 100644
--- a/usr/src/cmd/ssh/include/auth.h
+++ b/usr/src/cmd/ssh/include/auth.h
@@ -3,8 +3,6 @@
#ifndef _AUTH_H
#define _AUTH_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -35,7 +33,7 @@ extern "C" {
*
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -284,6 +282,8 @@ int skey_respond(void *, u_int, char **);
struct passwd * getpwnamallow(const char *user);
+int run_auth_hook(const char *, const char *, const char *);
+
char *get_challenge(Authctxt *);
int verify_response(Authctxt *, const char *);
diff --git a/usr/src/cmd/ssh/include/servconf.h b/usr/src/cmd/ssh/include/servconf.h
index 1058d00b47..d6458ab619 100644
--- a/usr/src/cmd/ssh/include/servconf.h
+++ b/usr/src/cmd/ssh/include/servconf.h
@@ -163,6 +163,7 @@ typedef struct {
int lookup_client_hostnames;
int use_openssl_engine;
char *chroot_directory;
+ char *pre_userauth_hook;
} ServerOptions;
diff --git a/usr/src/cmd/ssh/include/session.h b/usr/src/cmd/ssh/include/session.h
index c1b5ca8ed5..0d81189842 100644
--- a/usr/src/cmd/ssh/include/session.h
+++ b/usr/src/cmd/ssh/include/session.h
@@ -22,15 +22,13 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SESSION_H
#define _SESSION_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -83,6 +81,8 @@ void session_close(Session *);
void do_setusercontext(struct passwd *);
void child_set_env(char ***envp, u_int *envsizep, const char *name,
const char *value);
+void child_set_env_silent(char ***envp, u_int *envsizep, const char *name,
+ const char *value);
#ifdef __cplusplus