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

Side by Side Diff: remoting/base/rsa_key_pair.cc

Issue 18052008: Use a direct include of time headers in ppapi/, printing/, remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « remoting/base/rate_counter.h ('k') | remoting/base/util.cc » ('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) 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 #include "remoting/base/rsa_key_pair.h" 5 #include "remoting/base/rsa_key_pair.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/rand_util.h" 13 #include "base/rand_util.h"
14 #include "base/time.h" 14 #include "base/time/time.h"
15 #include "crypto/rsa_private_key.h" 15 #include "crypto/rsa_private_key.h"
16 #include "crypto/signature_creator.h" 16 #include "crypto/signature_creator.h"
17 #include "net/cert/x509_util.h" 17 #include "net/cert/x509_util.h"
18 18
19 namespace remoting { 19 namespace remoting {
20 20
21 RsaKeyPair::RsaKeyPair(scoped_ptr<crypto::RSAPrivateKey> key) 21 RsaKeyPair::RsaKeyPair(scoped_ptr<crypto::RSAPrivateKey> key)
22 : key_(key.Pass()){ 22 : key_(key.Pass()){
23 DCHECK(key_); 23 DCHECK(key_);
24 } 24 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 key_.get(), 97 key_.get(),
98 "CN=chromoting", 98 "CN=chromoting",
99 base::RandInt(1, std::numeric_limits<int>::max()), 99 base::RandInt(1, std::numeric_limits<int>::max()),
100 base::Time::Now(), 100 base::Time::Now(),
101 base::Time::Now() + base::TimeDelta::FromDays(1), 101 base::Time::Now() + base::TimeDelta::FromDays(1),
102 &der_cert); 102 &der_cert);
103 return der_cert; 103 return der_cert;
104 } 104 }
105 105
106 } // namespace remoting 106 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/rate_counter.h ('k') | remoting/base/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698