| Index: chrome/common/extensions/api/platform_keys_internal.idl
|
| diff --git a/chrome/common/extensions/api/platform_keys_internal.idl b/chrome/common/extensions/api/platform_keys_internal.idl
|
| index 0e2d827c125a628748b6d01557ea71738d12c25d..f328784547caadf5b3594f39576adef31f796081 100644
|
| --- a/chrome/common/extensions/api/platform_keys_internal.idl
|
| +++ b/chrome/common/extensions/api/platform_keys_internal.idl
|
| @@ -12,6 +12,14 @@ namespace platformKeysInternal {
|
| // |signature| The signature, a octet string.
|
| callback SignCallback = void(ArrayBuffer signature);
|
|
|
| + // Called back by <code>getPublicKey</code>.
|
| + // |publicKey| The Subject Public Key Info (see X.509) of the requested
|
| + // certificate.
|
| + // |algorithm| A partial WebCrypto KeyAlgorithm containing all information
|
| + // that is available from the Subject Public Key Info. It does not contain
|
| + // signature/hash parameters.
|
| + callback GetPublicKeyCallback = void(ArrayBuffer publicKey, object algorithm);
|
| +
|
| interface Functions {
|
| // See documentation in platformKeys.
|
| static void selectClientCertificates(
|
| @@ -37,5 +45,10 @@ namespace platformKeysInternal {
|
| DOMString hashAlgorithmName,
|
| ArrayBuffer data,
|
| SignCallback callback);
|
| +
|
| + // Calls back <code>callback</code> with details about the key certified by
|
| + // <code>certificate</code>.
|
| + static void getPublicKey(ArrayBuffer certificate,
|
| + GetPublicKeyCallback callback);
|
| };
|
| };
|
|
|