Skip to content

Commit 0d45cff

Browse files
committed
Include specific libsodium headers instead of monolith
1 parent f6a8c03 commit 0d45cff

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/common/crypto_25519_libsodium.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
#ifdef STEAMNETWORKINGSOCKETS_CRYPTO_25519_LIBSODIUM
77

8-
#include <sodium.h>
8+
#include <sodium/crypto_scalarmult_curve25519.h>
9+
#include <sodium/crypto_sign_ed25519.h>
10+
#include <sodium/utils.h>
911

1012
CEC25519KeyBase::~CEC25519KeyBase()
1113
{

src/common/crypto_libsodium.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
#include <tier0/dbg.h>
55

66
#include "tier0/memdbgoff.h"
7-
#include <sodium.h>
7+
#include <sodium/core.h>
8+
#include <sodium/crypto_aead_aes256gcm.h>
9+
#include <sodium/crypto_auth_hmacsha256.h>
10+
#include <sodium/crypto_hash_sha256.h>
11+
#include <sodium/randombytes.h>
12+
#include <sodium/utils.h>
813
#include "tier0/memdbgon.h"
914

1015
#ifdef STEAMNETWORKINGSOCKETS_CRYPTO_LIBSODIUM

0 commit comments

Comments
 (0)