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

« back to all changes in this revision

Viewing changes to include/isc/netaddr.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
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
2
3
 * Copyright (C) 1998-2002  Internet Software Consortium.
3
4
 *
4
5
 * Permission to use, copy, modify, and distribute this software for any
5
6
 * purpose with or without fee is hereby granted, provided that the above
6
7
 * copyright notice and this permission notice appear in all copies.
7
8
 *
8
 
 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
9
 
 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
10
 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
11
 
 * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
12
 
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
13
 
 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
14
 
 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
15
 
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
9
 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
 
10
 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 
11
 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
 
12
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 
13
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 
14
 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: netaddr.h,v 1.21 2002/04/03 06:38:35 marka Exp $ */
 
18
/* $Id: netaddr.h,v 1.18.12.7 2004/03/08 09:04:52 marka Exp $ */
19
19
 
20
20
#ifndef ISC_NETADDR_H
21
21
#define ISC_NETADDR_H 1
23
23
#include <isc/lang.h>
24
24
#include <isc/net.h>
25
25
#include <isc/types.h>
26
 
#include "ntp_rfc2553.h"
27
 
 
28
 
 
29
26
 
30
27
ISC_LANG_BEGINDECLS
31
28
 
35
32
                struct in_addr in;
36
33
                struct in6_addr in6;
37
34
        } type;
 
35
        isc_uint32_t zone;
38
36
};
39
37
 
40
38
isc_boolean_t
98
96
isc_netaddr_fromin6(isc_netaddr_t *netaddr, const struct in6_addr *ina6);
99
97
 
100
98
void
 
99
isc_netaddr_setzone(isc_netaddr_t *netaddr, isc_uint32_t zone);
 
100
 
 
101
isc_uint32_t
 
102
isc_netaddr_getzone(const isc_netaddr_t *netaddr);
 
103
 
 
104
void
101
105
isc_netaddr_any(isc_netaddr_t *netaddr);
102
106
/*
103
107
 * Return the IPv4 wildcard address.
116
120
 */
117
121
 
118
122
isc_boolean_t
 
123
isc_netaddr_isexperimental(isc_netaddr_t *na);
 
124
/*
 
125
 * Returns ISC_TRUE if the address is a experimental (CLASS E) address.
 
126
 */
 
127
 
 
128
isc_boolean_t
119
129
isc_netaddr_islinklocal(isc_netaddr_t *na);
120
130
/*
121
131
 * Returns ISC_TRUE if the address is a link local address.