Chromium Code Reviews| Index: net/test/cert_test_util.h |
| diff --git a/net/test/cert_test_util.h b/net/test/cert_test_util.h |
| index 8ad566451dc945e45488db0a08a79fbed669c23b..219ccd872572dc3af65daac31edecebdd54f3f09 100644 |
| --- a/net/test/cert_test_util.h |
| +++ b/net/test/cert_test_util.h |
| @@ -12,8 +12,6 @@ |
| #include "net/cert/x509_certificate.h" |
| #if defined(USE_NSS_CERTS) |
| -#include "base/memory/scoped_ptr.h" |
| - |
| // From <pk11pub.h> |
| typedef struct PK11SlotInfoStr PK11SlotInfo; |
| #endif |
| @@ -31,13 +29,12 @@ namespace net { |
| class EVRootCAMetadata; |
| #if defined(USE_NSS_CERTS) |
| -// Imports a private key from file |key_filename| in |dir|. The file must |
| -// contain a PKCS#8 PrivateKeyInfo in DER encoding. The key is imported to |
| -// |slot|. |
| -scoped_ptr<crypto::RSAPrivateKey> ImportSensitiveKeyFromFile( |
| - const base::FilePath& dir, |
| - const std::string& key_filename, |
| - PK11SlotInfo* slot); |
| +// Imports a private key from file |key_filename| in |dir| into |slot|. The file |
| +// must contain a PKCS#8 PrivateKeyInfo in DER encoding. Returns true on success |
| +// and false on failure. |
| +bool ImportSensitiveKeyFromFile(const base::FilePath& dir, |
|
davidben
2015/04/27 18:07:22
Nothing ever uses this output except as a boolean.
Ryan Sleevi
2015/04/27 19:11:27
I don't follow this.
davidben
2015/04/27 19:53:44
The only caller of this function just casts the ou
|
| + const std::string& key_filename, |
| + PK11SlotInfo* slot); |
| bool ImportClientCertToSlot(const scoped_refptr<X509Certificate>& cert, |
| PK11SlotInfo* slot); |