Chromium Code Reviews| Index: net/android/network_library.h |
| diff --git a/net/android/network_library.h b/net/android/network_library.h |
| index 955603d412cf30c731eca7de0d9d6b42ed32cafc..9db3e0e7ef88decc4e6699e5abc8e0e7b0dac8a6 100644 |
| --- a/net/android/network_library.h |
| +++ b/net/android/network_library.h |
| @@ -34,6 +34,13 @@ enum VerifyResult { |
| VerifyResult VerifyX509CertChain(const std::vector<std::string>& cert_chain, |
| const std::string& auth_type); |
| +// Adds a certificate as a root trust certificate to the trust manager. |
| +// |cert| is DER encoded certificate, |len| is its length in bytes. |
| +void AddTestRootCertificate(const uint8* cert, size_t len); |
|
Ryan Sleevi
2012/12/11 20:18:38
I never understood why Android doesn't make more u
|
| + |
| +// Removes all root certificates added by |AddTestRootCertificate| calls. |
| +void ClearTestRootCertificates(); |
| + |
| // Helper for the <keygen> handler. Passes the DER-encoded key pair via |
| // JNI to the Credentials store. Note that the public key must be a DER |
| // encoded SubjectPublicKeyInfo (X.509), as returned by i2d_PUBKEY() |