[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Telnetd initialization changes
- Date: Sat, 28 Feb 2009 06:42:09 +1100
- From: chrisj at rtems.org (Chris Johns)
- Subject: Telnetd initialization changes
Sebastian Huber wrote:
>
> I would like to change the telnetd initialization routine to avoid dependencies
> with the DES code for password checks. The password check and DES code use in
> total 70464 bytes of global data (a bit to much if you only have 128kB RAM).
>
> typedef bool (*rtems_telnetd_password_check)(const char *);
>
> rtems_status_code rtems_telnetd_initialize(
> void (*cmd)(char *, void *),
> void *arg,
> bool remainOnCallerSTDIO,
> size_t stack,
> rtems_task_priority priority,
> rtems_telnetd_password_check check
> );
>
> check == NULL => no password check
>
Does this mean check is a pointer to a pass word check routine ?
Could the 'cmd' become a type ?
> I would also like to change the return value from 'int' to 'rtems_status_code'.
>
This is a good idea.
Regards
Chris
> Have a nice day!
>