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

Side by Side Diff: remoting/protocol/ssl_hmac_channel_authenticator.h

Issue 234023003: Build remoting for PNaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "remoting/protocol/channel_authenticator.h" 14 #include "remoting/protocol/channel_authenticator.h"
15 15
16 namespace net { 16 namespace net {
17 class CertVerifier;
18 class DrainableIOBuffer; 17 class DrainableIOBuffer;
19 class GrowableIOBuffer; 18 class GrowableIOBuffer;
20 class SSLSocket; 19 class SSLSocket;
21 class TransportSecurityState; 20 class TransportSecurityState;
22 } // namespace net 21 } // namespace net
23 22
24 namespace remoting { 23 namespace remoting {
25 24
26 class RsaKeyPair; 25 class RsaKeyPair;
27 26
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 81
83 // The mutual secret used for authentication. 82 // The mutual secret used for authentication.
84 std::string auth_key_; 83 std::string auth_key_;
85 84
86 // Used in the SERVER mode only. 85 // Used in the SERVER mode only.
87 std::string local_cert_; 86 std::string local_cert_;
88 scoped_refptr<RsaKeyPair> local_key_pair_; 87 scoped_refptr<RsaKeyPair> local_key_pair_;
89 88
90 // Used in the CLIENT mode only. 89 // Used in the CLIENT mode only.
91 std::string remote_cert_; 90 std::string remote_cert_;
92 scoped_ptr<net::CertVerifier> cert_verifier_;
Jamie 2014/04/14 22:23:42 Part of this CL, or could it be separate?
Sergey Ulanov 2014/04/14 23:16:51 Can be separate: https://codereview.chromium.org/2
93 scoped_ptr<net::TransportSecurityState> transport_security_state_; 91 scoped_ptr<net::TransportSecurityState> transport_security_state_;
94 92
95 scoped_ptr<net::SSLSocket> socket_; 93 scoped_ptr<net::SSLSocket> socket_;
96 DoneCallback done_callback_; 94 DoneCallback done_callback_;
97 95
98 scoped_refptr<net::DrainableIOBuffer> auth_write_buf_; 96 scoped_refptr<net::DrainableIOBuffer> auth_write_buf_;
99 scoped_refptr<net::GrowableIOBuffer> auth_read_buf_; 97 scoped_refptr<net::GrowableIOBuffer> auth_read_buf_;
100 98
101 DISALLOW_COPY_AND_ASSIGN(SslHmacChannelAuthenticator); 99 DISALLOW_COPY_AND_ASSIGN(SslHmacChannelAuthenticator);
102 }; 100 };
103 101
104 } // namespace protocol 102 } // namespace protocol
105 } // namespace remoting 103 } // namespace remoting
106 104
107 #endif // REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_ 105 #endif // REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698