| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 158 |
| 159 // The NSS SSL state machine | 159 // The NSS SSL state machine |
| 160 PRFileDesc* nss_fd_; | 160 PRFileDesc* nss_fd_; |
| 161 | 161 |
| 162 // Buffers for the network end of the SSL state machine | 162 // Buffers for the network end of the SSL state machine |
| 163 memio_Private* nss_bufs_; | 163 memio_Private* nss_bufs_; |
| 164 | 164 |
| 165 BoundNetLog net_log_; | 165 BoundNetLog net_log_; |
| 166 | 166 |
| 167 #if defined(OS_WIN) | 167 #if defined(OS_WIN) |
| 168 // A CryptoAPI in-memory certificate store. We use it for two purposes: | 168 // A CryptoAPI in-memory certificate store. We use it for one purpose: |
| 169 // 1. Import server certificates into this store so that we can verify and | 169 // 1. Copy client certificates from the "MY" system certificate store into |
| 170 // display the certificates using CryptoAPI. | |
| 171 // 2. Copy client certificates from the "MY" system certificate store into | |
| 172 // this store so that we can close the system store when we finish | 170 // this store so that we can close the system store when we finish |
| 173 // searching for client certificates. | 171 // searching for client certificates. |
| 174 static HCERTSTORE cert_store_; | 172 static HCERTSTORE cert_store_; |
| 175 #endif | 173 #endif |
| 176 }; | 174 }; |
| 177 | 175 |
| 178 } // namespace net | 176 } // namespace net |
| 179 | 177 |
| 180 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 178 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |