Index: extensions/common/api/networking_onc.idl |
diff --git a/extensions/common/api/networking_onc.idl b/extensions/common/api/networking_onc.idl |
index 04c9865ddddcf82c5eed2cfecd378fe70392ab6b..b3daf0bf26edfbaeb0e28c2d7874000d0f767e7b 100644 |
--- a/extensions/common/api/networking_onc.idl |
+++ b/extensions/common/api/networking_onc.idl |
@@ -259,6 +259,7 @@ namespace networking.onc { |
dictionary EAPProperties { |
DOMString? AnonymousIdentity; |
CertificatePattern? ClientCertPattern; |
+ DOMString? ClientCertPKCS11Id; |
DOMString? ClientCertRef; |
ClientCertificateType ClientCertType; |
DOMString? Identity; |
@@ -853,6 +854,34 @@ namespace networking.onc { |
boolean? AllowOnlyPolicyNetworksToConnect; |
}; |
+ dictionary Certificate { |
+ // Unique hash for the certificate. |
+ DOMString hash; |
+ |
+ // Certificate issuer common name. |
+ DOMString issuedBy; |
+ |
+ // Certificate name or nickname. |
+ DOMString issuedTo; |
+ |
+ // PEM for server ca certificatess. |
+ DOMString? pem; |
+ |
+ // PKCS#11 id for user certificates. |
+ DOMString? PKCS11Id; |
+ |
+ // Whether or not the certificate is hardware backed. |
+ boolean hardwareBacked; |
+ }; |
+ |
+ dictionary CertificateLists { |
+ // Certificates available for the ServerCA property. |
+ Certificate[] server_ca_certificates; |
+ |
+ // Certificates available for the UserCert property. |
+ Certificate[] user_certificates; |
+ }; |
+ |
callback VoidCallback = void(); |
callback BooleanCallback = void(boolean result); |
callback StringCallback = void(DOMString result); |
@@ -864,6 +893,7 @@ namespace networking.onc { |
callback GetEnabledNetworkTypesCallback = void(NetworkType[] result); |
callback CaptivePortalStatusCallback = void(CaptivePortalStatus result); |
callback GetGlobalPolicyCallback = void(GlobalPolicy result); |
+ callback GetCertificateListsCallback = void(CertificateLists result); |
interface Functions { |
// Gets all the properties of the network with id networkGuid. Includes all |
@@ -995,6 +1025,9 @@ namespace networking.onc { |
// Gets the global policy properties. These properties are not expected to |
// change during a session. |
static void getGlobalPolicy(GetGlobalPolicyCallback callback); |
+ |
+ // Gets the lists of certificates available for network configuration. |
+ static void getCertificateLists(GetCertificateListsCallback callback); |
}; |
interface Events { |
@@ -1014,5 +1047,8 @@ namespace networking.onc { |
// the network and the corresponding captive portal status. |
static void onPortalDetectionCompleted(DOMString networkGuid, |
CaptivePortalStatus status); |
+ |
+ // Fired when any certificate list has changed. |
+ static void onCertificateListsChanged(); |
}; |
}; |