From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17852 invoked by alias); 20 Aug 2013 21:51:10 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 17842 invoked by uid 89); 20 Aug 2013 21:51:09 -0000 X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_PASS autolearn=ham version=3.3.2 Received: from mu.redorum.com (HELO mu.redorum.com) (216.105.40.82) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 20 Aug 2013 21:51:09 +0000 Received: from [172.16.4.241] (mail.systech.com [207.212.80.162]) by mu.redorum.com with SMTP (version=Tls cipher=Rc4 bits=128); Tue, 20 Aug 2013 14:50:58 -0700 Message-ID: <5213E4B1.4090803@systech.com> Date: Tue, 20 Aug 2013 21:51:00 -0000 From: Jay Foster Reply-To: jay@systech.com User-Agent: Mozilla/5.0 (Windows NT 5.0; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: vxWorker CC: ecos-discuss@ecos.sourceware.org References: <5213D3AD.60307@systech.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] NTP authentication in eCos X-SW-Source: 2013-08/txt/msg00003.txt.bz2 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 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