Skip to content

Commit

Permalink
Assume that NSS headers are under nss/.
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrop72 committed Dec 30, 2018
1 parent 2738222 commit 7c63ea1
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion client/PasswordListener.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include <prerror.h>

#include <ssl.h>
#include <nss/ssl.h>

#include <misc/offset.h>
#include <misc/byteorder.h>
Expand Down
4 changes: 2 additions & 2 deletions client/PasswordListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

#include <prio.h>

#include <cert.h>
#include <keyhi.h>
#include <nss/cert.h>
#include <nss/keyhi.h>

#include <misc/debug.h>
#include <misc/sslsocket.h>
Expand Down
4 changes: 2 additions & 2 deletions client/PeerChat.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

#include <string.h>

#include <ssl.h>
#include <sslerr.h>
#include <nss/ssl.h>
#include <nss/sslerr.h>

#include <misc/byteorder.h>
#include <security/BRandom.h>
Expand Down
4 changes: 2 additions & 2 deletions client/PeerChat.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#ifndef BADVPN_PEERCHAT_H
#define BADVPN_PEERCHAT_H

#include <cert.h>
#include <keyhi.h>
#include <nss/cert.h>
#include <nss/keyhi.h>

#include <protocol/packetproto.h>
#include <protocol/scproto.h>
Expand Down
4 changes: 2 additions & 2 deletions client/StreamPeerIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

#include <stdlib.h>

#include <ssl.h>
#include <sslerr.h>
#include <nss/ssl.h>
#include <nss/sslerr.h>

#include <misc/offset.h>
#include <misc/byteorder.h>
Expand Down
4 changes: 2 additions & 2 deletions client/StreamPeerIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

#include <stdint.h>

#include <cert.h>
#include <keyhi.h>
#include <nss/cert.h>
#include <nss/keyhi.h>

#include <misc/debug.h>
#include <base/DebugObject.h>
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/FindNSS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif ()
set(NSS_FOUND FALSE)

if (WIN32)
find_path(NSS_FIND_INCLUDE_DIR nss.h)
find_path(NSS_FIND_INCLUDE_DIR nss/nss.h)

FIND_LIBRARY_WITH_DEBUG(NSS_FIND_LIBRARIES_SSL WIN32_DEBUG_POSTFIX d NAMES ssl3)
FIND_LIBRARY_WITH_DEBUG(NSS_FIND_LIBRARIES_SMIME WIN32_DEBUG_POSTFIX d NAMES smime3)
Expand Down
6 changes: 3 additions & 3 deletions misc/nsskey.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
#include <stdlib.h>

#include <prerror.h>
#include <cert.h>
#include <keyhi.h>
#include <pk11func.h>
#include <nss/cert.h>
#include <nss/keyhi.h>
#include <nss/pk11func.h>

#include <base/BLog.h>

Expand Down
2 changes: 1 addition & 1 deletion nspr_support/BSSLConnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/

#include <prerror.h>
#include <ssl.h>
#include <nss/ssl.h>

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion nspr_support/BSSLConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define BADVPN_BSSLCONNECTION_H

#include <prio.h>
#include <ssl.h>
#include <nss/ssl.h>

#include <misc/debug.h>
#include <misc/debugerror.h>
Expand Down
10 changes: 5 additions & 5 deletions server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
#include <prio.h>
#include <prerror.h>
#include <prtypes.h>
#include <nss.h>
#include <ssl.h>
#include <cert.h>
#include <keyhi.h>
#include <secasn1.h>
#include <nss/nss.h>
#include <nss/ssl.h>
#include <nss/cert.h>
#include <nss/keyhi.h>
#include <nss/secasn1.h>

// BadVPN
#include <misc/version.h>
Expand Down
10 changes: 5 additions & 5 deletions server_connection/ServerConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
#include <prio.h>
#include <prerror.h>
#include <prtypes.h>
#include <nss.h>
#include <ssl.h>
#include <pk11func.h>
#include <cert.h>
#include <keyhi.h>
#include <nss/nss.h>
#include <nss/ssl.h>
#include <nss/pk11func.h>
#include <nss/cert.h>
#include <nss/keyhi.h>

#include <misc/debug.h>
#include <misc/debugerror.h>
Expand Down

0 comments on commit 7c63ea1

Please sign in to comment.