Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
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
Stunserver
Commits
49a891fe
Commit
49a891fe
authored
Jan 16, 2016
by
jselbie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another CommonCrypto update
parent
2bdc528f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
common.inc
common.inc
+1
-1
server/server.cpp
server/server.cpp
+0
-1
stuncore/stunreader.cpp
stuncore/stunreader.cpp
+2
-6
No files found.
common.inc
View file @
49a891fe
#
BOOST_INCLUDE := -I/Users/jselbie/boost_1_52_0
BOOST_INCLUDE
:=
-
I
/
Users
/
jselbie
/
boost_1_52_0
#OPENSSL_INCLUDE := -I/Users/jselbie/openssl/include
#OPENSSL_INCLUDE := -I/Users/jselbie/openssl/include
DEFINES
:=
-
DNDEBUG
DEFINES
:=
-
DNDEBUG
...
...
server/server.cpp
View file @
49a891fe
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
#include "commonincludes.hpp"
#include "commonincludes.hpp"
//#include <openssl/hmac.h>
#include "stuncore.h"
#include "stuncore.h"
#include "stunsocket.h"
#include "stunsocket.h"
#include "stunsocketthread.h"
#include "stunsocketthread.h"
...
...
stuncore/stunreader.cpp
View file @
49a891fe
...
@@ -156,6 +156,7 @@ HRESULT CStunMessageReader::ValidateMessageIntegrity(uint8_t* key, size_t keylen
...
@@ -156,6 +156,7 @@ HRESULT CStunMessageReader::ValidateMessageIntegrity(uint8_t* key, size_t keylen
HMAC_CTX
ctx
=
{};
HMAC_CTX
ctx
=
{};
#else
#else
CCHmacContext
ctx
=
{};
CCHmacContext
ctx
=
{};
UNREFERENCED_VARIABLE
(
hmaclength
);
#endif
#endif
uint32_t
chunk32
;
uint32_t
chunk32
;
uint16_t
chunk16
;
uint16_t
chunk16
;
...
@@ -329,12 +330,7 @@ HRESULT CStunMessageReader::ValidateMessageIntegrityLong(const char* pszUser, co
...
@@ -329,12 +330,7 @@ HRESULT CStunMessageReader::ValidateMessageIntegrityLong(const char* pszUser, co
#ifndef __APPLE__
#ifndef __APPLE__
ChkIfA
(
NULL
==
MD5
(
key
,
totallength
,
hash
),
E_FAIL
);
ChkIfA
(
NULL
==
MD5
(
key
,
totallength
,
hash
),
E_FAIL
);
#else
#else
{
CC_MD5
(
key
,
totallength
,
hash
);
CC_MD5_CTX
context
=
{};
CC_MD5_Init
(
&
context
);
CC_MD5_Update
(
&
context
,
key
,
totallength
);
CC_MD5_Final
(
hash
,
&
context
);
}
#endif
#endif
...
...
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