Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: net/http/des.cc

Issue 558008: Use the USE_NSS macro to help porting to FreeBSD, OpenBSD, etc.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/build_config.h ('k') | net/socket/ssl_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/des.cc
===================================================================
--- net/http/des.cc (revision 37224)
+++ net/http/des.cc (working copy)
@@ -4,7 +4,7 @@
#include "net/http/des.h"
-#if defined(OS_LINUX)
+#if defined(USE_NSS)
#include <nss.h>
#include <pk11pub.h>
#elif defined(OS_MACOSX)
@@ -15,7 +15,7 @@
#endif
#include "base/logging.h"
-#if defined(OS_LINUX)
+#if defined(USE_NSS)
#include "base/nss_util.h"
#endif
@@ -85,7 +85,7 @@
key[7] = DESSetKeyParity((raw[6] << 1));
}
-#if defined(OS_LINUX)
+#if defined(USE_NSS)
void DESEncrypt(const uint8* key, const uint8* src, uint8* hash) {
CK_MECHANISM_TYPE cipher_mech = CKM_DES_ECB;
« no previous file with comments | « build/build_config.h ('k') | net/socket/ssl_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698