Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_BASE_X509_CERTIFICATE_H_ | 5 #ifndef NET_BASE_X509_CERTIFICATE_H_ |
| 6 #define NET_BASE_X509_CERTIFICATE_H_ | 6 #define NET_BASE_X509_CERTIFICATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 549 | 549 |
| 550 #if defined(OS_MACOSX) | 550 #if defined(OS_MACOSX) |
| 551 // Blocks multiple threads from verifying the cert simultaneously. | 551 // Blocks multiple threads from verifying the cert simultaneously. |
| 552 // (Marked mutable because it's used in a const method.) | 552 // (Marked mutable because it's used in a const method.) |
| 553 mutable base::Lock verification_lock_; | 553 mutable base::Lock verification_lock_; |
| 554 #endif | 554 #endif |
| 555 | 555 |
| 556 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 556 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
| 557 }; | 557 }; |
| 558 | 558 |
| 559 struct DERCache { | |
| 560 unsigned char* data; | |
| 561 int data_length; | |
| 562 }; | |
| 563 | |
| 564 bool GetDERAndCacheIfNeeded(X509Certificate::OSCertHandle cert, | |
| 565 DERCache* der_cache); | |
|
joth
2011/11/02 18:57:05
this doesn't belong here, as it's only needed on t
Jing Zhao
2011/11/03 17:49:08
Thanks. Merged as you suggested.
| |
| 566 | |
| 559 } // namespace net | 567 } // namespace net |
| 560 | 568 |
| 561 #endif // NET_BASE_X509_CERTIFICATE_H_ | 569 #endif // NET_BASE_X509_CERTIFICATE_H_ |
| OLD | NEW |