4.104.115
Last change
on this file since 2649eef was
2649eef,
checked in by Joel Sherrill <joel.sherrill@…>, on 03/27/09 at 15:31:52
|
2009-03-27 Sebastian Huber <sebastian.huber@…>
- Makefile.am, preinstall.am, libmisc/Makefile.am,
libmisc/shell/shell.c, libmisc/shell/shell.h, telnetd/check_passwd.c,
telnetd/telnetd.c, telnetd/telnetd.h:
Generalized login check.
- libmisc/shell/login.h, libmisc/shell/login_check.c,
libmisc/shell/login_prompt.c: New files.
- libmisc/stackchk/check.c: Changed format for blown stack message.
- libcsupport/src/libio_sockets.c: Removed superfluous cast.
- libnetworking/rtems/ftpfs.h: Documentation.
|
-
Property mode set to
100644
|
File size:
995 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @author Sebastian Huber <sebastian.huber@embedded-brains.de> |
---|
5 | * |
---|
6 | * @brief Login types and functions. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2009 |
---|
11 | * embedded brains GmbH |
---|
12 | * Obere Lagerstr. 30 |
---|
13 | * D-82178 Puchheim |
---|
14 | * Germany |
---|
15 | * <rtems@embedded-brains.de> |
---|
16 | * |
---|
17 | * Based on work from Chris Johns, Fernando Ruiz and Till Straumann. |
---|
18 | * |
---|
19 | * The license and distribution terms for this file may be |
---|
20 | * found in the file LICENSE in this distribution or at |
---|
21 | * http://www.rtems.com/license/LICENSE. |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef RTEMS_LOGIN_H |
---|
25 | #define RTEMS_LOGIN_H |
---|
26 | |
---|
27 | #include <stdio.h> |
---|
28 | |
---|
29 | #include <rtems.h> |
---|
30 | |
---|
31 | #ifdef __cplusplus |
---|
32 | extern "C" { |
---|
33 | #endif /* __cplusplus */ |
---|
34 | |
---|
35 | typedef bool (*rtems_login_check)( |
---|
36 | const char * /* user */, |
---|
37 | const char * /* passphrase */ |
---|
38 | ); |
---|
39 | |
---|
40 | bool rtems_shell_login_prompt( |
---|
41 | FILE *in, |
---|
42 | FILE *out, |
---|
43 | const char *device, |
---|
44 | rtems_login_check check |
---|
45 | ); |
---|
46 | |
---|
47 | bool rtems_shell_login_check( |
---|
48 | const char *user, |
---|
49 | const char *passphrase |
---|
50 | ); |
---|
51 | |
---|
52 | #ifdef __cplusplus |
---|
53 | } |
---|
54 | #endif /* __cplusplus */ |
---|
55 | |
---|
56 | #endif /* RTEMS_LOGIN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.