~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to include/mbg_gps166.h

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-01-05 21:10:03 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090105211003-mh6zc3um4k1uhsj7
Tags: 1:4.2.4p4+dfsg-8
It did not properly check the return value of EVP_VerifyFinal
which results in an malformed DSA signature being treated as
a good signature rather than as an error.  (CVE-2009-0021)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * /src/NTP/ntp-4/include/mbg_gps166.h,v 4.1 1998/06/12 15:07:30 kardel RELEASE_19990228_A
 
2
 * /src/NTP/REPOSITORY/ntp4-dev/include/mbg_gps166.h,v 4.7 2006/06/22 18:41:43 kardel RELEASE_20060622_A
 
3
 *
 
4
 * mbg_gps166.h,v 4.7 2006/06/22 18:41:43 kardel RELEASE_20060622_A
3
5
 *
4
6
 * $Created: Sun Jul 20 09:20:50 1997 $
5
7
 *
6
 
 * Copyright (C) 1997, 1998 by Frank Kardel
 
8
 * File GPSSERIO.H Copyright (c) by Meinberg Funkuhren (www.meinberg.de)
 
9
 *
 
10
 * Linkage to PARSE:
 
11
 * Copyright (c) 1997-2005 by Frank Kardel <kardel <AT> ntp.org>
 
12
 *
 
13
 * Redistribution and use in source and binary forms, with or without
 
14
 * modification, are permitted provided that the following conditions
 
15
 * are met:
 
16
 * 1. Redistributions of source code must retain the above copyright
 
17
 *    notice, this list of conditions and the following disclaimer.
 
18
 * 2. Redistributions in binary form must reproduce the above copyright
 
19
 *    notice, this list of conditions and the following disclaimer in the
 
20
 *    documentation and/or other materials provided with the distribution.
 
21
 * 3. Neither the name of the author nor the names of its contributors
 
22
 *    may be used to endorse or promote products derived from this software
 
23
 *    without specific prior written permission.
 
24
 *
 
25
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 
26
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
27
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
28
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 
29
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
30
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 
31
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
32
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
33
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 
34
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 
35
 * SUCH DAMAGE.
 
36
 *
7
37
 */
8
38
#ifndef MBG_GPS166_H
9
39
#define MBG_GPS166_H
11
41
 
12
42
/***************************************************************************/
13
43
/*                                                                         */
14
 
/*   File:         GPSSERIO.H                    4.1          */
 
44
/*   File:         GPSSERIO.H                    4.1                       */
15
45
/*                                                                         */
16
46
/*   Project:      Common C Library                                        */
17
47
/*                                                                         */
494
524
 
495
525
} IONO;
496
526
 
497
 
void mbg_tm_str P((unsigned char **, TM *));
498
 
void mbg_tgps_str P((unsigned char **, T_GPS *));
 
527
void mbg_tm_str P((char **, TM *, int));
 
528
void mbg_tgps_str P((char **, T_GPS *, int));
499
529
void get_mbg_header P((unsigned char **, GPS_MSG_HDR *));
500
530
void put_mbg_header P((unsigned char **, GPS_MSG_HDR *));
501
531
void get_mbg_sw_rev P((unsigned char **, SW_REV *));
522
552
 
523
553
#endif
524
554
/*
 
555
 * History:
 
556
 *
525
557
 * mbg_gps166.h,v
 
558
 * Revision 4.7  2006/06/22 18:41:43  kardel
 
559
 * clean up signedness (gcc 4)
 
560
 *
 
561
 * Revision 4.6  2005/10/07 22:11:56  kardel
 
562
 * bounded buffer implementation
 
563
 *
 
564
 * Revision 4.5.2.1  2005/09/25 10:23:48  kardel
 
565
 * support bounded buffers
 
566
 *
 
567
 * Revision 4.5  2005/06/25 10:58:45  kardel
 
568
 * add missing log keywords
 
569
 *
526
570
 * Revision 4.1  1998/06/12 15:07:30  kardel
527
571
 * fixed prototyping
528
572
 *