- includes and have_ssl fixes for nss.

git-svn-id: file:///svn/unbound/trunk@2830 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2013-01-30 13:15:03 +00:00
parent 9d423e7024
commit ffab065d1e
11 changed files with 36 additions and 18 deletions

5
configure vendored
View file

@ -16009,8 +16009,8 @@ if test "${with_nss+set}" = set; then :
$as_echo "#define HAVE_NSS 1" >>confdefs.h
if test "$withval" != "/usr" -a "$withval" != "" -a "$withval" != "yes"; then
CPPFLAGS="$CPPFLAGS -I$withval/include"
if test "$withval" != "" -a "$withval" != "yes"; then
CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
LDFLAGS="$LDFLAGS -L$withval/lib"
if test "x$enable_rpath" = xyes; then
@ -16021,6 +16021,7 @@ $as_echo "#define HAVE_NSS 1" >>confdefs.h
CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
else
CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
fi
LIBS="$LIBS -lnss3 -lnspr4"

View file

@ -525,12 +525,13 @@ AC_ARG_WITH([nss], AC_HELP_STRING([--with-nss=path],
[
USE_NSS="yes"
AC_DEFINE(HAVE_NSS, 1, [Use libnss for crypto])
if test "$withval" != "/usr" -a "$withval" != "" -a "$withval" != "yes"; then
CPPFLAGS="$CPPFLAGS -I$withval/include"
if test "$withval" != "" -a "$withval" != "yes"; then
CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
LDFLAGS="$LDFLAGS -L$withval/lib"
ACX_RUNTIME_PATH_ADD([$withval/lib])
CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
else
CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
fi
LIBS="$LIBS -lnss3 -lnspr4"

View file

@ -57,7 +57,8 @@
#endif
#ifdef HAVE_NSS
#include <nss3/nss.h>
/* nss3 */
#include "nss.h"
#endif
#include <ldns/ldns.h>

View file

@ -88,7 +88,8 @@
#endif
#ifdef HAVE_NSS
# include <nss3/nss.h>
/* nss3 */
# include "nss.h"
#endif
/** global debug value to keep track of heap memory allocation */

View file

@ -1,3 +1,6 @@
30 January 2013: Wouter
- includes and have_ssl fixes for nss.
29 January 2013: Wouter
- printout name of zone with duplicate fwd and hint errors.

View file

@ -44,7 +44,9 @@
#include "config.h"
#include <ldns/dname.h>
#include <ldns/wire2host.h>
#ifdef HAVE_SSL
#include <openssl/ssl.h>
#endif
#include "libunbound/libworker.h"
#include "libunbound/context.h"
#include "libunbound/unbound.h"
@ -88,7 +90,9 @@ libworker_delete(struct libworker* w)
ub_randfree(w->env->rnd);
free(w->env);
}
#ifdef HAVE_SSL
SSL_CTX_free(w->sslctx);
#endif
outside_network_delete(w->back);
comm_base_delete(w->base);
free(w);

View file

@ -62,7 +62,8 @@
#include "libunbound/unbound.h"
#include <ldns/ldns.h>
#ifdef HAVE_NSS
#include <nss3/nss.h>
/* nss3 */
#include "nss.h"
#endif
/** verbosity for unbound-host app */

View file

@ -57,7 +57,8 @@
#endif
#ifdef HAVE_NSS
#include "nss3/nss.h"
/* nss3 */
#include "nss.h"
#endif
#include <ldns/ldns.h>

View file

@ -65,9 +65,11 @@
#include <openssl/rc4.h>
#include <openssl/err.h>
#elif defined(HAVE_NSS)
#include <nspr4/prerror.h>
#include <nss3/secport.h>
#include <nss3/pk11pub.h>
/* nspr4 */
#include "prerror.h"
/* nss3 */
#include "secport.h"
#include "pk11pub.h"
#endif
/**

View file

@ -46,7 +46,8 @@
#include "openssl/ssl.h"
#endif
#ifdef HAVE_NSS
#include <nss3/sechash.h>
/* nss3 */
#include "sechash.h"
#endif
#include "validator/val_nsec3.h"
#include "validator/validator.h"

View file

@ -553,12 +553,14 @@ verify_canonrrset(ldns_buffer* buf, int algo, unsigned char* sigblock,
/**************************************************/
#elif defined(HAVE_NSS)
/* libnss implementation */
#include <nss3/sechash.h>
#include <nss3/pk11pub.h>
#include <nss3/keyhi.h>
#include <nss3/secerr.h>
#include <nss3/cryptohi.h>
#include <nspr4/prerror.h>
/* nss3 */
#include "sechash.h"
#include "pk11pub.h"
#include "keyhi.h"
#include "secerr.h"
#include "cryptohi.h"
/* nspr4 */
#include "prerror.h"
size_t
ds_digest_size_supported(int algo)