diff options
Diffstat (limited to 'net/android/network_library.h')
-rw-r--r-- | net/android/network_library.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/android/network_library.h b/net/android/network_library.h index c505202..955603d 100644 --- a/net/android/network_library.h +++ b/net/android/network_library.h @@ -11,6 +11,7 @@ #include <vector> #include "base/basictypes.h" +#include "net/base/mime_util.h" #include "net/base/net_export.h" namespace net { @@ -47,6 +48,12 @@ bool StoreKeyPair(const uint8* public_key, const uint8* private_key, size_t private_len); +// Helper used to pass the DER-encoded bytes of an X.509 certificate or +// a PKCS#12 archive holding a private key to the CertInstaller activity. +void StoreCertificate(net::CertificateMimeType cert_type, + const void* data, + size_t data_len); + // Returns true if it can determine that only loopback addresses are configured. // i.e. if only 127.0.0.1 and ::1 are routable. // Also returns false if it cannot determine this. |