public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] NTP authentication in eCos
@ 2013-08-20 18:22 vx worker
  2013-08-20 20:38 ` Jay Foster
  0 siblings, 1 reply; 4+ messages in thread
From: vx worker @ 2013-08-20 18:22 UTC (permalink / raw)
  To: ecos-discuss

Hello everybody! Now I need to make NTP authentication work in eCos.
Does anybody have similar experience on this? or any information?
Thanks, Yan!

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] NTP authentication in eCos
  2013-08-20 18:22 [ECOS] NTP authentication in eCos vx worker
@ 2013-08-20 20:38 ` Jay Foster
  2013-08-20 21:34   ` vxWorker
  0 siblings, 1 reply; 4+ messages in thread
From: Jay Foster @ 2013-08-20 20:38 UTC (permalink / raw)
  To: vx worker; +Cc: ecos-discuss

I have used the sntp eCos.  I don't use authentication, but did have a 
problem a while back with the sntp code not working with ntp servers 
that were configured to do NTP auth.  The eCos sntp code includes the 
KeyIdentifier and MessageDigest fields in it's NTP packets to the NTP 
server, but it never fills them in with anything useful.  As long as the 
NTP server isn't configured for NTP auth, it ignores this and all worked 
fine.  I encountered an NTP server that was configured for auth, and 
would not respond to the eCos NTP packets because the auth failed.  I 
removed the two fields from the NTP_PACKET structure and it then worked 
fine.  So, if you add auth support, you should change the code to send 
the KeyIdentifier and MessageDigest fields only when they have been 
actually filled in with something (ie, doing auth).

Jay

On 8/20/2013 11:22 AM, vx worker wrote:
> Hello everybody! Now I need to make NTP authentication work in eCos.
> Does anybody have similar experience on this? or any information?
> Thanks, Yan!
>


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] NTP authentication in eCos
  2013-08-20 20:38 ` Jay Foster
@ 2013-08-20 21:34   ` vxWorker
  2013-08-20 21:51     ` Jay Foster
  0 siblings, 1 reply; 4+ messages in thread
From: vxWorker @ 2013-08-20 21:34 UTC (permalink / raw)
  To: jay; +Cc: ecos-discuss

Hi Jay, thanks for your response, I 'll keep that in mind. Were you
using SNTP included in eCos? My plan is to port latest NTP source code
package
(4.2.6p5) to eCos. NTPv4 implemented Autokey protocol, I'am worrying
about uncertainties ahead of me in this porting. Does eCos support
that? How
about openSSL, freeBSD ... ? Does NTP/v4 has any version requirement
for those parts?
Yan

On Tue, Aug 20, 2013 at 1:38 PM, Jay Foster <jay@systech.com> wrote:
> I have used the sntp eCos.  I don't use authentication, but did have a
> problem a while back with the sntp code not working with ntp servers that
> were configured to do NTP auth.  The eCos sntp code includes the
> KeyIdentifier and MessageDigest fields in it's NTP packets to the NTP
> server, but it never fills them in with anything useful.  As long as the NTP
> server isn't configured for NTP auth, it ignores this and all worked fine.
> I encountered an NTP server that was configured for auth, and would not
> respond to the eCos NTP packets because the auth failed.  I removed the two
> fields from the NTP_PACKET structure and it then worked fine.  So, if you
> add auth support, you should change the code to send the KeyIdentifier and
> MessageDigest fields only when they have been actually filled in with
> something (ie, doing auth).
>
> Jay
>
> On 8/20/2013 11:22 AM, vx worker wrote:
>>
>> Hello everybody! Now I need to make NTP authentication work in eCos.
>> Does anybody have similar experience on this? or any information?
>> Thanks, Yan!
>>
>



-- 
Yan Xiu

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] NTP authentication in eCos
  2013-08-20 21:34   ` vxWorker
@ 2013-08-20 21:51     ` Jay Foster
  0 siblings, 0 replies; 4+ messages in thread
From: Jay Foster @ 2013-08-20 21:51 UTC (permalink / raw)
  To: vxWorker; +Cc: ecos-discuss

I used the eCos SNTP code.  The code I used is about 8 years old, so 
maybe things have changed some.  I don't know anything about NTP/v4 or 
Autokey protocol.

On 8/20/2013 2:34 PM, vxWorker wrote:
> Hi Jay, thanks for your response, I 'll keep that in mind. Were you
> using SNTP included in eCos? My plan is to port latest NTP source code
> package
> (4.2.6p5) to eCos. NTPv4 implemented Autokey protocol, I'am worrying
> about uncertainties ahead of me in this porting. Does eCos support
> that? How
> about openSSL, freeBSD ... ? Does NTP/v4 has any version requirement
> for those parts?
> Yan
>
> On Tue, Aug 20, 2013 at 1:38 PM, Jay Foster<jay@systech.com>  wrote:
>> I have used the sntp eCos.  I don't use authentication, but did have a
>> problem a while back with the sntp code not working with ntp servers that
>> were configured to do NTP auth.  The eCos sntp code includes the
>> KeyIdentifier and MessageDigest fields in it's NTP packets to the NTP
>> server, but it never fills them in with anything useful.  As long as the NTP
>> server isn't configured for NTP auth, it ignores this and all worked fine.
>> I encountered an NTP server that was configured for auth, and would not
>> respond to the eCos NTP packets because the auth failed.  I removed the two
>> fields from the NTP_PACKET structure and it then worked fine.  So, if you
>> add auth support, you should change the code to send the KeyIdentifier and
>> MessageDigest fields only when they have been actually filled in with
>> something (ie, doing auth).
>>
>> Jay
>>
>> On 8/20/2013 11:22 AM, vx worker wrote:
>>> Hello everybody! Now I need to make NTP authentication work in eCos.
>>> Does anybody have similar experience on this? or any information?
>>> Thanks, Yan!
>>>
>
>


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-20 21:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-20 18:22 [ECOS] NTP authentication in eCos vx worker
2013-08-20 20:38 ` Jay Foster
2013-08-20 21:34   ` vxWorker
2013-08-20 21:51     ` Jay Foster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).