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

Side by Side Diff: chrome/browser/sync/util/nigori.cc

Issue 3855004: Make USE_OPENSSL and USE_NSS mutually exclusive (Closed)
Patch Set: wtc comments Created 10 years, 2 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/importer/nss_decryptor_null.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/util/nigori.h" 5 #include "chrome/browser/sync/util/nigori.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <winsock2.h> // for htonl 8 #include <winsock2.h> // for htonl
9 #else
10 #include <arpa/inet.h>
9 #endif 11 #endif
10 12
11 #include <sstream> 13 #include <sstream>
12 #include <vector> 14 #include <vector>
13 15
14 #include "base/base64.h" 16 #include "base/base64.h"
15 #include "base/crypto/encryptor.h" 17 #include "base/crypto/encryptor.h"
16 #include "base/hmac.h" 18 #include "base/hmac.h"
17 #include "base/logging.h" 19 #include "base/logging.h"
18 #include "base/rand_util.h" 20 #include "base/rand_util.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 DCHECK(user_key); 250 DCHECK(user_key);
249 DCHECK(encryption_key); 251 DCHECK(encryption_key);
250 DCHECK(mac_key); 252 DCHECK(mac_key);
251 253
252 return user_key_->GetRawKey(user_key) && 254 return user_key_->GetRawKey(user_key) &&
253 encryption_key_->GetRawKey(encryption_key) && 255 encryption_key_->GetRawKey(encryption_key) &&
254 mac_key_->GetRawKey(mac_key); 256 mac_key_->GetRawKey(mac_key);
255 } 257 }
256 258
257 } // namespace browser_sync 259 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/importer/nss_decryptor_null.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698