00001
00002
00003
00004
00005 #define HAVE_ATTR_FORMAT 1
00006
00007
00008 #define HAVE_ATTR_UNUSED 1
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #define HAVE_CTIME_R 1
00024
00025
00026 #define HAVE_DLFCN_H 1
00027
00028
00029 #define HAVE_GETADDRINFO 1
00030
00031
00032 #define HAVE_GETOPT_H 1
00033
00034
00035 #define HAVE_GMTIME_R 1
00036
00037
00038 #define HAVE_INET_ATON 1
00039
00040
00041 #define HAVE_INET_NTOP 1
00042
00043
00044 #define HAVE_INET_PTON 1
00045
00046
00047 #define HAVE_INTTYPES_H 1
00048
00049
00050 #define HAVE_ISBLANK 1
00051
00052
00053 #define HAVE_LIBCRYPTO 1
00054
00055
00056 #define HAVE_LIBNSL 1
00057
00058
00059
00060
00061
00062
00063 #define HAVE_MALLOC 1
00064
00065
00066 #define HAVE_MEMMOVE 1
00067
00068
00069 #define HAVE_MEMORY_H 1
00070
00071
00072 #define HAVE_NETINET_IN_H 1
00073
00074
00075 #define HAVE_OPENSSL_SSL_H 1
00076
00077
00078
00079 #define HAVE_REALLOC 1
00080
00081
00082 #define HAVE_SNPRINTF 1
00083
00084
00085 #define HAVE_SSL
00086
00087
00088 #define HAVE_STDARG_H 1
00089
00090
00091 #define HAVE_STDBOOL_H 1
00092
00093
00094 #define HAVE_STDINT_H 1
00095
00096
00097 #define HAVE_STDLIB_H 1
00098
00099
00100 #define HAVE_STRINGS_H 1
00101
00102
00103 #define HAVE_STRING_H 1
00104
00105
00106 #define HAVE_STRLCPY 1
00107
00108
00109 #define HAVE_SYS_MOUNT_H 1
00110
00111
00112 #define HAVE_SYS_PARAM_H 1
00113
00114
00115 #define HAVE_SYS_SOCKET_H 1
00116
00117
00118 #define HAVE_SYS_STAT_H 1
00119
00120
00121 #define HAVE_SYS_TYPES_H 1
00122
00123
00124 #define HAVE_TIMEGM 1
00125
00126
00127 #define HAVE_TIME_H 1
00128
00129
00130 #define HAVE_UNISTD_H 1
00131
00132
00133 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
00134
00135
00136 #define PACKAGE_NAME "libdns"
00137
00138
00139 #define PACKAGE_STRING "libdns 1.3.0"
00140
00141
00142 #define PACKAGE_TARNAME "libdns"
00143
00144
00145 #define PACKAGE_VERSION "1.3.0"
00146
00147
00148 #define STDC_HEADERS 1
00149
00150
00151 #define SYSCONFDIR sysconfdir
00152
00153
00154
00155
00156 #ifndef _ALL_SOURCE
00157
00158 #endif
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171 #ifndef __cplusplus
00172
00173 #endif
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212 #include <stdio.h>
00213 #include <string.h>
00214 #include <unistd.h>
00215 #include <assert.h>
00216
00217 #if STDC_HEADERS
00218 #include <stdlib.h>
00219 #include <stddef.h>
00220 #endif
00221
00222 #ifdef HAVE_STDINT_H
00223 #include <stdint.h>
00224 #endif
00225
00226 #ifdef HAVE_SYS_SOCKET_H
00227 #include <sys/socket.h>
00228 #endif
00229
00230 #ifdef HAVE_NETINET_IN_H
00231 #include <netinet/in.h>
00232 #endif
00233
00234 #ifdef HAVE_ARPA_INET_H
00235 #include <arpa/inet.h>
00236 #endif
00237
00238
00239
00240 #ifndef B64_PTON
00241 int b64_ntop(uint8_t const *src, size_t srclength,
00242 char *target, size_t targsize);
00246
00247 static inline size_t b64_ntop_calculate_size(size_t srcsize)
00248 {
00249 return ((((srcsize + 2) / 3) * 4) + 1);
00250 }
00251 #endif
00252 #ifndef B64_NTOP
00253 int b64_pton(char const *src, uint8_t *target, size_t targsize);
00257
00258 static inline size_t b64_pton_calculate_size(size_t srcsize)
00259 {
00260 return ((((srcsize / 4) * 3) - 2) + 2);
00261 }
00262 #endif
00263
00264 #ifndef B32_NTOP
00265 int b32_ntop(uint8_t const *src, size_t srclength,
00266 char *target, size_t targsize);
00267 int b32_ntop_extended_hex(uint8_t const *src, size_t srclength,
00268 char *target, size_t targsize);
00272
00273 static inline size_t b32_ntop_calculate_size(size_t srcsize)
00274 {
00275 size_t result = ((((srcsize / 5) * 8) - 2) + 2);
00276 return result;
00277 }
00278 #endif
00279 #ifndef B32_PTON
00280 int b32_pton(char const *src, size_t hashed_owner_str_len, uint8_t *target, size_t targsize);
00281 int b32_pton_extended_hex(char const *src, size_t hashed_owner_str_len, uint8_t *target, size_t targsize);
00285
00286 static inline size_t b32_pton_calculate_size(size_t srcsize)
00287 {
00288 size_t result = ((((srcsize) / 8) * 5));
00289 return result;
00290 }
00291 #endif
00292
00293
00294 #ifndef TIMEGM
00295 #include <time.h>
00296 time_t timegm (struct tm *tm);
00297 #endif
00298 #ifndef HAVE_ISBLANK
00299 int isblank(int c);
00300 #endif
00301 #ifndef HAVE_SNPRINTF
00302 #include <stdarg.h>
00303 int snprintf (char *str, size_t count, const char *fmt, ...);
00304 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
00305 #endif
00306 #ifndef HAVE_INET_PTON
00307 int inet_pton(int af, const char* src, void* dst);
00308 #endif
00309 #ifndef HAVE_INET_NTOP
00310 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
00311 #endif
00312 #ifndef HAVE_INET_ATON
00313 int inet_aton(const char *cp, struct in_addr *addr);
00314 #endif
00315 #ifndef HAVE_MEMMOVE
00316 void *memmove(void *dest, const void *src, size_t n);
00317 #endif
00318 #ifndef HAVE_STRLCPY
00319 size_t strlcpy(char *dst, const char *src, size_t siz);
00320 #endif
00321 #ifndef HAVE_GETADDRINFO
00322 #include "compat/fake-rfc2553.h"
00323 #endif
00324