Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
063efb33
Commit
063efb33
authored
Jun 17, 2014
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build config: add -DNO_GMP for use with nettle/mini-gmp
parent
70772c90
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
Makefile
Makefile
+1
-1
bld/pkg-wrapper
bld/pkg-wrapper
+7
-2
src/config.h
src/config.h
+7
-0
src/dnssec.c
src/dnssec.c
+2
-1
No files found.
Makefile
View file @
063efb33
...
...
@@ -61,7 +61,7 @@ lua_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LUASCRIPT $(PKG_CON
lua_libs
=
`
echo
$(COPTS)
|
$(top)
/bld/pkg-wrapper HAVE_LUASCRIPT
$(PKG_CONFIG)
--libs
lua5.1
`
nettle_cflags
=
`
echo
$(COPTS)
|
$(top)
/bld/pkg-wrapper HAVE_DNSSEC
$(PKG_CONFIG)
--cflags
nettle hogweed
`
nettle_libs
=
`
echo
$(COPTS)
|
$(top)
/bld/pkg-wrapper HAVE_DNSSEC
$(PKG_CONFIG)
--libs
nettle hogweed
`
gmp_libs
=
`
echo
$(COPTS)
|
$(top)
/bld/pkg-wrapper HAVE_DNSSEC
$(PKG_CONFIG)
--copy
-lgmp
`
gmp_libs
=
`
echo
$(COPTS)
|
$(top)
/bld/pkg-wrapper HAVE_DNSSEC
NO_GMP
--copy
-lgmp
`
sunos_libs
=
`
if
uname
|
grep
SunOS
>
/dev/null 2>&1
;
then
echo
-lsocket
-lnsl
-lposix4
;
fi
`
version
=
-DVERSION
=
'\"`
$(top)
/bld/get-version
$(top)
`\"'
...
...
bld/pkg-wrapper
View file @
063efb33
...
...
@@ -11,9 +11,14 @@ in=`cat`
if
grep
"^
\#
[[:space:]]*define[[:space:]]*
$search
"
config.h
>
/dev/null 2>&1
||
\
echo
$in
|
grep
$search
>
/dev/null 2>&1
;
then
# Nasty, nasty, in --copy, arg 2 is another config to search for, use with NO_GMP
if
[
$op
=
"--copy"
]
;
then
pkg
=
"
$*
"
if
grep
"^
\#
[[:space:]]*define[[:space:]]*
$pkg
"
config.h
>
/dev/null 2>&1
||
\
echo
$in
|
grep
$pkg
>
/dev/null 2>&1
;
then
pkg
=
""
else
pkg
=
"
$*
"
fi
elif
grep
"^
\#
[[:space:]]*define[[:space:]]*
${
search
}
_STATIC"
config.h
>
/dev/null 2>&1
||
\
echo
$in
|
grep
${
search
}
_STATIC
>
/dev/null 2>&1
;
then
pkg
=
`
$pkg
--static
$op
$*
`
...
...
src/config.h
View file @
063efb33
...
...
@@ -105,6 +105,8 @@ HAVE_AUTH
define this to include the facility to act as an authoritative DNS
server for one or more zones.
HAVE_DNSSEC
include DNSSEC validator.
NO_IPV6
NO_TFTP
...
...
@@ -118,6 +120,11 @@ NO_AUTH
which are enabled by default in the distributed source tree. Building dnsmasq
with something like "make COPTS=-DNO_SCRIPT" will do the trick.
NO_NETTLE_ECC
Don't include the ECDSA cypher in DNSSEC validation. Needed for older Nettle versions.
NO_GMP
Don't use and link against libgmp, Useful if nettle is built with --enable-mini-gmp.
LEASEFILE
CONFFILE
RESOLVFILE
...
...
src/dnssec.c
View file @
063efb33
...
...
@@ -26,7 +26,8 @@
# include <nettle/ecc-curve.h>
#endif
#include <nettle/nettle-meta.h>
#include <gmp.h>
#include <nettle/bignum.h>
#define SERIAL_UNDEF -100
#define SERIAL_EQ 0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment