Skip to content

Commit 87c8505

Browse files
author
Git for Windows Build Agent
committed
Update 5 packages
binutils (2.42-1 -> 2.43-1) mingw-w64-i686-c-ares (1.29.0-1 -> 1.33.0-1) mingw-w64-i686-readline (8.2.010-1 -> 8.2.013-1) mingw-w64-x86_64-c-ares (1.29.0-1 -> 1.33.0-1) mingw-w64-x86_64-readline (8.2.010-1 -> 8.2.013-1) Signed-off-by: Git for Windows Build Agent <[email protected]>
1 parent 74c1c55 commit 87c8505

File tree

182 files changed

+1803
-559
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+1803
-559
lines changed

mingw32/bin/adig.exe

664 Bytes
Binary file not shown.

mingw32/bin/ahost.exe

6 Bytes
Binary file not shown.

mingw32/bin/libcares-2.dll

28.2 KB
Binary file not shown.

mingw32/bin/libhistory8.dll

2.01 KB
Binary file not shown.

mingw32/bin/libreadline8.dll

4.48 KB
Binary file not shown.

mingw32/include/ares.h

Lines changed: 44 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,43 @@
3030

3131
#include "ares_version.h" /* c-ares version defines */
3232
#include "ares_build.h" /* c-ares build definitions */
33-
#include "ares_rules.h" /* c-ares rules enforcement */
3433

35-
/*
36-
* Define WIN32 when build target is Win32 API
37-
*/
34+
#if defined(_WIN32)
35+
# ifndef WIN32_LEAN_AND_MEAN
36+
# define WIN32_LEAN_AND_MEAN
37+
# endif
38+
#endif
39+
40+
#ifdef CARES_HAVE_SYS_TYPES_H
41+
# include <sys/types.h>
42+
#endif
43+
44+
#ifdef CARES_HAVE_SYS_SOCKET_H
45+
# include <sys/socket.h>
46+
#endif
47+
48+
#ifdef CARES_HAVE_SYS_SELECT_H
49+
# include <sys/select.h>
50+
#endif
3851

39-
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) && \
40-
!defined(__SYMBIAN32__)
41-
# define WIN32
52+
#ifdef CARES_HAVE_WINSOCK2_H
53+
# include <winsock2.h>
54+
/* To aid with linking against a static c-ares build, lets tell the microsoft
55+
* compiler to pull in needed dependencies */
56+
# ifdef _MSC_VER
57+
# pragma comment(lib, "ws2_32")
58+
# pragma comment(lib, "advapi32")
59+
# pragma comment(lib, "iphlpapi")
60+
# endif
61+
#endif
62+
63+
#ifdef CARES_HAVE_WS2TCPIP_H
64+
# include <ws2tcpip.h>
4265
#endif
4366

44-
#include <sys/types.h>
67+
#ifdef CARES_HAVE_WINDOWS_H
68+
# include <windows.h>
69+
#endif
4570

4671
/* HP-UX systems version 9, 10 and 11 lack sys/select.h and so does oldish
4772
libc5-based Linux systems. Only include it on system that are known to
@@ -52,43 +77,26 @@
5277
defined(__QNXNTO__) || defined(__MVS__) || defined(__HAIKU__)
5378
# include <sys/select.h>
5479
#endif
80+
5581
#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
5682
# include <sys/bsdskt.h>
5783
#endif
5884

59-
#if defined(WATT32)
85+
#if !defined(_WIN32)
6086
# include <netinet/in.h>
61-
# include <sys/socket.h>
87+
#endif
88+
89+
#ifdef WATT32
6290
# include <tcp.h>
63-
#elif defined(_WIN32_WCE)
64-
# ifndef WIN32_LEAN_AND_MEAN
65-
# define WIN32_LEAN_AND_MEAN
66-
# endif
67-
# include <windows.h>
68-
# include <winsock.h>
69-
#elif defined(WIN32)
70-
# ifndef WIN32_LEAN_AND_MEAN
71-
# define WIN32_LEAN_AND_MEAN
72-
# endif
73-
# include <windows.h>
74-
# include <winsock2.h>
75-
# include <ws2tcpip.h>
76-
/* To aid with linking against a static c-ares build, lets tell the microsoft
77-
* compiler to pull in needed dependencies */
78-
# ifdef _MSC_VER
79-
# pragma comment(lib, "ws2_32")
80-
# pragma comment(lib, "advapi32")
81-
# pragma comment(lib, "iphlpapi")
82-
# endif
83-
#else
84-
# include <sys/socket.h>
85-
# include <netinet/in.h>
8691
#endif
8792

8893
#if defined(ANDROID) || defined(__ANDROID__)
8994
# include <jni.h>
9095
#endif
9196

97+
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
98+
typedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t;
99+
92100
#ifdef __cplusplus
93101
extern "C" {
94102
#endif
@@ -230,6 +238,7 @@ typedef enum {
230238
#define ARES_FLAG_NOCHECKRESP (1 << 7)
231239
#define ARES_FLAG_EDNS (1 << 8)
232240
#define ARES_FLAG_NO_DFLT_SVR (1 << 9)
241+
#define ARES_FLAG_DNS0x20 (1 << 10)
233242

234243
/* Option mask values */
235244
#define ARES_OPT_FLAGS (1 << 0)
@@ -315,7 +324,7 @@ typedef enum {
315324
*/
316325

317326
#ifndef ares_socket_typedef
318-
# ifdef WIN32
327+
# if defined(_WIN32) && !defined(WATT32)
319328
typedef SOCKET ares_socket_t;
320329
# define ARES_SOCKET_BAD INVALID_SOCKET
321330
# else
@@ -883,7 +892,7 @@ CARES_EXTERN CARES_DEPRECATED_FOR(ares_get_servers_csv) int ares_get_servers(
883892
const ares_channel_t *channel, struct ares_addr_node **servers);
884893

885894
CARES_EXTERN
886-
CARES_DEPRECATED_FOR(ares_get_servers_ports_csv)
895+
CARES_DEPRECATED_FOR(ares_get_servers_csv)
887896
int ares_get_servers_ports(const ares_channel_t *channel,
888897
struct ares_addr_port_node **servers);
889898

mingw32/include/ares_build.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
* for C-Ares */
1414
#define CARES_HAVE_SYS_TYPES_H
1515
/* #undef CARES_HAVE_SYS_SOCKET_H */
16+
/* #undef CARES_HAVE_SYS_SELECT_H */
1617
#define CARES_HAVE_WINDOWS_H
1718
#define CARES_HAVE_WS2TCPIP_H
1819
#define CARES_HAVE_WINSOCK2_H
19-
#define CARES_HAVE_WINDOWS_H
2020
/* #undef CARES_HAVE_ARPA_NAMESER_H */
2121
/* #undef CARES_HAVE_ARPA_NAMESER_COMPAT_H */
2222

@@ -28,6 +28,10 @@
2828
# include <sys/socket.h>
2929
#endif
3030

31+
#ifdef CARES_HAVE_SYS_SELECT_H
32+
# include <sys/select.h>
33+
#endif
34+
3135
#ifdef CARES_HAVE_WINSOCK2_H
3236
# include <winsock2.h>
3337
#endif
@@ -40,8 +44,4 @@
4044
# include <windows.h>
4145
#endif
4246

43-
44-
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
45-
typedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t;
46-
4747
#endif /* __CARES_BUILD_H */

mingw32/include/ares_dns_record.h

Lines changed: 106 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ typedef enum {
5151
ARES_REC_TYPE_HINFO = 13, /*!< Host information. */
5252
ARES_REC_TYPE_MX = 15, /*!< Mail routing information. */
5353
ARES_REC_TYPE_TXT = 16, /*!< Text strings. */
54+
ARES_REC_TYPE_SIG = 24, /*!< RFC 2535 / RFC 2931. SIG Record */
5455
ARES_REC_TYPE_AAAA = 28, /*!< RFC 3596. Ip6 Address. */
5556
ARES_REC_TYPE_SRV = 33, /*!< RFC 2782. Server Selection. */
5657
ARES_REC_TYPE_NAPTR = 35, /*!< RFC 3403. Naming Authority Pointer */
@@ -93,7 +94,7 @@ typedef enum {
9394
ARES_OPCODE_IQUERY = 1, /*!< Inverse query. Obsolete. */
9495
ARES_OPCODE_STATUS = 2, /*!< Name server status query */
9596
ARES_OPCODE_NOTIFY = 4, /*!< Zone change notification (RFC 1996) */
96-
ARES_OPCODE_UPDATE = 5, /*!< Zone update message (RFC2136) */
97+
ARES_OPCODE_UPDATE = 5 /*!< Zone update message (RFC2136) */
9798
} ares_dns_opcode_t;
9899

99100
/*! DNS Header flags */
@@ -107,7 +108,7 @@ typedef enum {
107108
ARES_FLAG_AD = 1 << 5, /*!< RFC 2065. Authentic Data bit indicates in a
108109
* response that the data included has been verified by
109110
* the server providing it */
110-
ARES_FLAG_CD = 1 << 6, /*!< RFC 2065. Checking Disabled bit indicates in a
111+
ARES_FLAG_CD = 1 << 6 /*!< RFC 2065. Checking Disabled bit indicates in a
111112
* query that non-verified data is acceptable to the
112113
* resolver sending the query. */
113114
} ares_dns_flags_t;
@@ -151,7 +152,7 @@ typedef enum {
151152
ARES_RCODE_BADNAME = 20, /*!< RFC 2930. Duplicate Key Name */
152153
ARES_RCODE_BADALG = 21, /*!< RFC 2930. Algorithm not supported */
153154
ARES_RCODE_BADTRUNC = 22, /*!< RFC 8945. Bad Truncation */
154-
ARES_RCODE_BADCOOKIE = 23, /*!< RVC 7973. Bad/missing Server Cookie */
155+
ARES_RCODE_BADCOOKIE = 23 /*!< RFC 7873. Bad/missing Server Cookie */
155156
} ares_dns_rcode_t;
156157

157158
/*! Data types used */
@@ -170,6 +171,9 @@ typedef enum {
170171
* length) */
171172
ARES_DATATYPE_OPT = 10, /*!< Array of options. 16bit identifier, BIN
172173
* data. */
174+
ARES_DATATYPE_ABINP = 11 /*!< Array of binary data, likely printable.
175+
* Guaranteed to have a NULL terminator for
176+
* convenience (not included in length) */
173177
} ares_dns_datatype_t;
174178

175179
/*! Keys used for all RR Types. We take the record type and multiply by 100
@@ -206,8 +210,26 @@ typedef enum {
206210
ARES_RR_MX_PREFERENCE = (ARES_REC_TYPE_MX * 100) + 1,
207211
/*! MX Record. Exchange, domain. Datatype: NAME */
208212
ARES_RR_MX_EXCHANGE = (ARES_REC_TYPE_MX * 100) + 2,
209-
/*! TXT Record. Data. Datatype: BINP */
213+
/*! TXT Record. Data. Datatype: ABINP */
210214
ARES_RR_TXT_DATA = (ARES_REC_TYPE_TXT * 100) + 1,
215+
/*! SIG Record. Type Covered. Datatype: U16 */
216+
ARES_RR_SIG_TYPE_COVERED = (ARES_REC_TYPE_SIG * 100) + 1,
217+
/*! SIG Record. Algorithm. Datatype: U8 */
218+
ARES_RR_SIG_ALGORITHM = (ARES_REC_TYPE_SIG * 100) + 2,
219+
/*! SIG Record. Labels. Datatype: U8 */
220+
ARES_RR_SIG_LABELS = (ARES_REC_TYPE_SIG * 100) + 3,
221+
/*! SIG Record. Original TTL. Datatype: U32 */
222+
ARES_RR_SIG_ORIGINAL_TTL = (ARES_REC_TYPE_SIG * 100) + 4,
223+
/*! SIG Record. Signature Expiration. Datatype: U32 */
224+
ARES_RR_SIG_EXPIRATION = (ARES_REC_TYPE_SIG * 100) + 5,
225+
/*! SIG Record. Signature Inception. Datatype: U32 */
226+
ARES_RR_SIG_INCEPTION = (ARES_REC_TYPE_SIG * 100) + 6,
227+
/*! SIG Record. Key Tag. Datatype: U16 */
228+
ARES_RR_SIG_KEY_TAG = (ARES_REC_TYPE_SIG * 100) + 7,
229+
/*! SIG Record. Signers Name. Datatype: NAME */
230+
ARES_RR_SIG_SIGNERS_NAME = (ARES_REC_TYPE_SIG * 100) + 8,
231+
/*! SIG Record. Signature. Datatype: BIN */
232+
ARES_RR_SIG_SIGNATURE = (ARES_REC_TYPE_SIG * 100) + 9,
211233
/*! AAAA Record. Address. Datatype: INADDR6 */
212234
ARES_RR_AAAA_ADDR = (ARES_REC_TYPE_AAAA * 100) + 1,
213235
/*! SRV Record. Priority. Datatype: U16 */
@@ -273,7 +295,7 @@ typedef enum {
273295
/*! RAW Record. RR Type. Datatype: U16 */
274296
ARES_RR_RAW_RR_TYPE = (ARES_REC_TYPE_RAW_RR * 100) + 1,
275297
/*! RAW Record. RR Data. Datatype: BIN */
276-
ARES_RR_RAW_RR_DATA = (ARES_REC_TYPE_RAW_RR * 100) + 2,
298+
ARES_RR_RAW_RR_DATA = (ARES_REC_TYPE_RAW_RR * 100) + 2
277299
} ares_dns_rr_key_t;
278300

279301
/*! TLSA Record ARES_RR_TLSA_CERT_USAGE known values */
@@ -353,7 +375,7 @@ typedef enum {
353375
/*! RFC 8145. Signaling Trust Anchor Knowledge in DNSSEC */
354376
ARES_OPT_PARAM_EDNS_KEY_TAG = 14,
355377
/*! RFC 8914. Extended ERROR code and message */
356-
ARES_OPT_PARAM_EXTENDED_DNS_ERROR = 15,
378+
ARES_OPT_PARAM_EXTENDED_DNS_ERROR = 15
357379
} ares_opt_param_t;
358380

359381
/*! Data type for option records for keys like ARES_RR_OPT_OPTIONS and
@@ -581,6 +603,15 @@ CARES_EXTERN void ares_dns_record_destroy(ares_dns_record_t *dnsrec);
581603
CARES_EXTERN unsigned short
582604
ares_dns_record_get_id(const ares_dns_record_t *dnsrec);
583605

606+
/*! Overwrite the DNS query id
607+
*
608+
* \param[in] dnsrec Initialized record object
609+
* \param[in] id DNS query id
610+
* \return ARES_TRUE on success, ARES_FALSE on usage error
611+
*/
612+
CARES_EXTERN ares_bool_t ares_dns_record_set_id(ares_dns_record_t *dnsrec,
613+
unsigned short id);
614+
584615
/*! Get the DNS Record Flags
585616
*
586617
* \param[in] dnsrec Initialized record object
@@ -844,6 +875,34 @@ CARES_EXTERN ares_status_t ares_dns_rr_set_bin(ares_dns_rr_t *dns_rr,
844875
const unsigned char *val,
845876
size_t len);
846877

878+
/*! Add binary array value (ABINP) data for specified resource record and key.
879+
* Can only be used on keys with datatype ARES_DATATYPE_ABINP. The value will
880+
* Be added as the last element in the array.
881+
*
882+
* \param[in] dns_rr Pointer to resource record
883+
* \param[in] key DNS Resource Record Key
884+
* \param[in] val Pointer to binary data.
885+
* \param[in] len Length of binary data
886+
* \return ARES_SUCCESS on success
887+
*/
888+
CARES_EXTERN ares_status_t ares_dns_rr_add_abin(ares_dns_rr_t *dns_rr,
889+
ares_dns_rr_key_t key,
890+
const unsigned char *val,
891+
size_t len);
892+
893+
/*! Delete binary array value (ABINP) data for specified resource record and
894+
* key by specified index. Can only be used on keys with datatype
895+
* ARES_DATATYPE_ABINP. The value at the index will be deleted.
896+
*
897+
* \param[in] dns_rr Pointer to resource record
898+
* \param[in] key DNS Resource Record Key
899+
* \param[in] idx Index to delete
900+
* \return ARES_SUCCESS on success
901+
*/
902+
CARES_EXTERN ares_status_t ares_dns_rr_del_abin(ares_dns_rr_t *dns_rr,
903+
ares_dns_rr_key_t key,
904+
size_t idx);
905+
847906
/*! Set the option for the RR
848907
*
849908
* \param[in] dns_rr Pointer to resource record
@@ -859,6 +918,17 @@ CARES_EXTERN ares_status_t ares_dns_rr_set_opt(ares_dns_rr_t *dns_rr,
859918
const unsigned char *val,
860919
size_t val_len);
861920

921+
/*! Delete the option for the RR by id
922+
*
923+
* \param[in] dns_rr Pointer to resource record
924+
* \param[in] key DNS Resource Record Key
925+
* \param[in] opt Option record key id.
926+
* \return ARES_SUCCESS if removed, ARES_ENOTFOUND if not found
927+
*/
928+
CARES_EXTERN ares_status_t ares_dns_rr_del_opt_byid(ares_dns_rr_t *dns_rr,
929+
ares_dns_rr_key_t key,
930+
unsigned short opt);
931+
862932
/*! Retrieve a pointer to the ipv4 address. Can only be used on keys with
863933
* datatype ARES_DATATYPE_INADDR.
864934
*
@@ -920,8 +990,9 @@ CARES_EXTERN unsigned int ares_dns_rr_get_u32(const ares_dns_rr_t *dns_rr,
920990
ares_dns_rr_key_t key);
921991

922992
/*! Retrieve a pointer to the binary data. Can only be used on keys with
923-
* datatype ARES_DATATYPE_BIN or ARES_DATATYPE_BINP. If BINP, the data is
924-
* guaranteed to have a NULL terminator which is NOT included in the length.
993+
* datatype ARES_DATATYPE_BIN, ARES_DATATYPE_BINP, or ARES_DATATYPE_ABINP.
994+
* If BINP or ABINP, the data is guaranteed to have a NULL terminator which
995+
* is NOT included in the length.
925996
*
926997
* \param[in] dns_rr Pointer to resource record
927998
* \param[in] key DNS Resource Record Key
@@ -932,6 +1003,33 @@ CARES_EXTERN const unsigned char *
9321003
ares_dns_rr_get_bin(const ares_dns_rr_t *dns_rr, ares_dns_rr_key_t key,
9331004
size_t *len);
9341005

1006+
/*! Retrieve the count of the array of stored binary values. Can only be used on
1007+
* keys with datatype ARES_DATATYPE_ABINP.
1008+
*
1009+
* \param[in] dns_rr Pointer to resource record
1010+
* \param[in] key DNS Resource Record Key
1011+
* \return count of values
1012+
*/
1013+
CARES_EXTERN size_t ares_dns_rr_get_abin_cnt(const ares_dns_rr_t *dns_rr,
1014+
ares_dns_rr_key_t key);
1015+
1016+
/*! Retrieve a pointer to the binary array data from the specified index. Can
1017+
* only be used on keys with datatype ARES_DATATYPE_ABINP. If ABINP, the data
1018+
* is guaranteed to have a NULL terminator which is NOT included in the length.
1019+
* If want all array membersconcatenated, may use ares_dns_rr_get_bin()
1020+
* instead.
1021+
*
1022+
* \param[in] dns_rr Pointer to resource record
1023+
* \param[in] key DNS Resource Record Key
1024+
* \param[in] idx Index of value to retrieve
1025+
* \param[out] len Length of binary data returned
1026+
* \return pointer binary data or NULL on error
1027+
*/
1028+
CARES_EXTERN const unsigned char *
1029+
ares_dns_rr_get_abin(const ares_dns_rr_t *dns_rr, ares_dns_rr_key_t key,
1030+
size_t idx, size_t *len);
1031+
1032+
9351033
/*! Retrieve the number of options stored for the RR.
9361034
*
9371035
* \param[in] dns_rr Pointer to resource record

0 commit comments

Comments
 (0)