Skip to content

Commit

Permalink
Use CommonCrypto header instead of openssl for SHA on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzm committed Feb 17, 2017
1 parent c4577aa commit 8fa35c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/XrdSec/XrdSecProtect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
#include <sys/types.h>
#include <sys/uio.h>

#ifdef __APPLE__
#define COMMON_DIGEST_FOR_OPENSSL
#include "CommonCrypto/CommonDigest.h"
#else
#include "openssl/sha.h"
#endif

#include "XrdVersion.hh"

Expand Down

0 comments on commit 8fa35c1

Please sign in to comment.