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

Side by Side Diff: crypto/encryptor.h

Issue 206453002: Introduce USE_OPENSSL_CERTS for certificate handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CRYPTO_ENCRYPTOR_H_ 5 #ifndef CRYPTO_ENCRYPTOR_H_
6 #define CRYPTO_ENCRYPTOR_H_ 6 #define CRYPTO_ENCRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "crypto/crypto_export.h" 14 #include "crypto/crypto_export.h"
15 15
16 #if defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX) 16 #if !defined(USE_OPENSSL) && \
17 (defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX))
wtc 2014/03/20 21:14:56 This should be written like this: #if defined(USE
haavardm 2014/03/21 13:08:21 That's what I had first actually, but I found it a
Ryan Sleevi 2014/03/21 19:47:51 I think I agree with Wan-Teh, in that I found myse
haavardm 2014/03/24 18:48:52 Hmm.. Looking at it again, I agree. Although it is
haavardm 2014/03/24 18:48:52 Done.
17 #include "crypto/scoped_nss_types.h" 18 #include "crypto/scoped_nss_types.h"
18 #endif 19 #endif
19 20
20 namespace crypto { 21 namespace crypto {
21 22
22 class SymmetricKey; 23 class SymmetricKey;
23 24
24 class CRYPTO_EXPORT Encryptor { 25 class CRYPTO_EXPORT Encryptor {
25 public: 26 public:
26 enum Mode { 27 enum Mode {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool CryptCTR(PK11Context* context, 129 bool CryptCTR(PK11Context* context,
129 const base::StringPiece& input, 130 const base::StringPiece& input,
130 std::string* output); 131 std::string* output);
131 ScopedSECItem param_; 132 ScopedSECItem param_;
132 #endif 133 #endif
133 }; 134 };
134 135
135 } // namespace crypto 136 } // namespace crypto
136 137
137 #endif // CRYPTO_ENCRYPTOR_H_ 138 #endif // CRYPTO_ENCRYPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698