Telnetd initialization changes

Chris Johns chrisj at rtems.org
Fri Feb 27 19:42:09 UTC 2009


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!
> 



More information about the users mailing list