Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: net/android/network_library.h

Issue 2536993002: Remove support for the keygen tag (Closed)
Patch Set: Rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/BUILD.gn ('k') | net/base/keygen_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ANDROID_NETWORK_LIBRARY_H_ 5 #ifndef NET_ANDROID_NETWORK_LIBRARY_H_
6 #define NET_ANDROID_NETWORK_LIBRARY_H_ 6 #define NET_ANDROID_NETWORK_LIBRARY_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 18 matching lines...) Expand all
29 bool* is_issued_by_known_root, 29 bool* is_issued_by_known_root,
30 std::vector<std::string>* verified_chain); 30 std::vector<std::string>* verified_chain);
31 31
32 // Adds a certificate as a root trust certificate to the trust manager. 32 // Adds a certificate as a root trust certificate to the trust manager.
33 // |cert| is DER encoded certificate, |len| is its length in bytes. 33 // |cert| is DER encoded certificate, |len| is its length in bytes.
34 void AddTestRootCertificate(const uint8_t* cert, size_t len); 34 void AddTestRootCertificate(const uint8_t* cert, size_t len);
35 35
36 // Removes all root certificates added by |AddTestRootCertificate| calls. 36 // Removes all root certificates added by |AddTestRootCertificate| calls.
37 void ClearTestRootCertificates(); 37 void ClearTestRootCertificates();
38 38
39 // Helper for the <keygen> handler. Passes the DER-encoded key pair via JNI to
40 // the Credentials store. The public key should be a DER-encoded
41 // SubjectPublicKeyInfo (X.509) and the private key a DER-encode PrivateKeyInfo
42 // (PKCS#8).
43 bool StoreKeyPair(const uint8_t* public_key,
44 size_t public_len,
45 const uint8_t* private_key,
46 size_t private_len);
47
48 // Returns true if cleartext traffic to |host| is allowed by the app. Always 39 // Returns true if cleartext traffic to |host| is allowed by the app. Always
49 // true on L and older. 40 // true on L and older.
50 bool IsCleartextPermitted(const std::string& host); 41 bool IsCleartextPermitted(const std::string& host);
51 42
52 // Returns true if it can determine that only loopback addresses are configured. 43 // Returns true if it can determine that only loopback addresses are configured.
53 // i.e. if only 127.0.0.1 and ::1 are routable. 44 // i.e. if only 127.0.0.1 and ::1 are routable.
54 // Also returns false if it cannot determine this. 45 // Also returns false if it cannot determine this.
55 bool HaveOnlyLoopbackAddresses(); 46 bool HaveOnlyLoopbackAddresses();
56 47
57 // Get the mime type (if any) that is associated with the file extension. 48 // Get the mime type (if any) that is associated with the file extension.
(...skipping 26 matching lines...) Expand all
84 NET_EXPORT bool GetIsCaptivePortal(); 75 NET_EXPORT bool GetIsCaptivePortal();
85 76
86 // Gets the SSID of the currently associated WiFi access point if there is one. 77 // Gets the SSID of the currently associated WiFi access point if there is one.
87 // Otherwise, returns empty string. 78 // Otherwise, returns empty string.
88 NET_EXPORT_PRIVATE std::string GetWifiSSID(); 79 NET_EXPORT_PRIVATE std::string GetWifiSSID();
89 80
90 } // namespace android 81 } // namespace android
91 } // namespace net 82 } // namespace net
92 83
93 #endif // NET_ANDROID_NETWORK_LIBRARY_H_ 84 #endif // NET_ANDROID_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/base/keygen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698