This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: any existing code about a prompt password for entering redboot ?


Hi Thierry

I'm starting to work on the same feature. I suggest the following:

Define a new CDL option. Make the new code dependent on the CDL option.
The right point to start is main.c from redboot package. Define a new
redboot command (see RedBoot_cmd macro) which should handle the password
verification and set a flag if the right password is found.

Then look at the code after the parse() function call. Allow command handler
calls (cmd->func)() only if the password flag was set valid from the
passwort command or if the current cmd even is the password command
(cmd->str).

You can use a fixed password defined in a CDL option or use redboot config
entries to store individual passwords.

This is a simple solution, but it fulfill my requirements.
Any comments from the specialists?

Rainer


----- Original Message ----- 
From: "thierry langlais" <thierry.langlais@efixo.com>
To: "eCos Disuss" <ecos-discuss@ecos.sourceware.org>
Sent: Friday, March 31, 2006 12:18 PM
Subject: [ECOS] any existing code about a prompt password for entering
redboot ?


> Hi all,
>
> 1)Does someone already wrote code about a kind of prompt password before
> entering RedBoot, in the case the user press CTRL+C at the "+" prompt ?
>
> 2)Does someone could advices me about where to start or give me some
> tips.
>
> Thanks,
>
> Thierry L.
>
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]