| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| 7 | 7 |
| 8 #include <certt.h> | 8 #include <certt.h> |
| 9 #include <keyt.h> | 9 #include <keyt.h> |
| 10 #include <nspr.h> | 10 #include <nspr.h> |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 // The NSS SSL state machine | 151 // The NSS SSL state machine |
| 152 PRFileDesc* nss_fd_; | 152 PRFileDesc* nss_fd_; |
| 153 | 153 |
| 154 // Buffers for the network end of the SSL state machine | 154 // Buffers for the network end of the SSL state machine |
| 155 memio_Private* nss_bufs_; | 155 memio_Private* nss_bufs_; |
| 156 | 156 |
| 157 scoped_refptr<LoadLog> load_log_; | 157 scoped_refptr<LoadLog> load_log_; |
| 158 | 158 |
| 159 #if defined(OS_WIN) | 159 #if defined(OS_WIN) |
| 160 // A CryptoAPI in-memory certificate store that we import server | 160 // A CryptoAPI in-memory certificate store. We use it for two purposes: |
| 161 // certificates into so that we can verify and display the certificates | 161 // 1. Import server certificates into this store so that we can verify and |
| 162 // using CryptoAPI. | 162 // display the certificates using CryptoAPI. |
| 163 // 2. Copy client certificates from the "MY" system certificate store into |
| 164 // this store so that we can close the system store when we finish |
| 165 // searching for client certificates. |
| 163 static HCERTSTORE cert_store_; | 166 static HCERTSTORE cert_store_; |
| 164 #endif | 167 #endif |
| 165 }; | 168 }; |
| 166 | 169 |
| 167 } // namespace net | 170 } // namespace net |
| 168 | 171 |
| 169 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 172 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |