Index: net/android/network_library.h |
diff --git a/net/android/network_library.h b/net/android/network_library.h |
index c505202d4a0b2dcaee3fa902ed265f230b52ede7..9ef5990a666edb53c42bdf4ae2285ca7fed49d62 100644 |
--- a/net/android/network_library.h |
+++ b/net/android/network_library.h |
@@ -33,6 +33,14 @@ 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 AddLocalRootCertificate(const uint8* cert, size_t len); |
digit1
2012/11/28 10:42:34
I think it'd prefer if we called this AddTestRootC
ppi
2012/11/28 13:37:31
Sure - done in patch set 2 (both in Java as well a
|
+ |
+// Removes all root certificates added by |AddLocalRootCertificate| calls. |
+void ClearLocalRootCertificates(); |
+ |
+ |
// 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() |