| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Use this API to expose certificates to the platform which can use these | 5 // Use this API to expose certificates to the platform which can use these |
| 6 // certificates for TLS authentications. | 6 // certificates for TLS authentications. |
| 7 namespace certificateProvider { | 7 [use_movable_types=true]namespace certificateProvider { |
| 8 enum Hash { | 8 enum Hash { |
| 9 MD5_SHA1, | 9 MD5_SHA1, |
| 10 SHA1, | 10 SHA1, |
| 11 SHA256, | 11 SHA256, |
| 12 SHA384, | 12 SHA384, |
| 13 SHA512 | 13 SHA512 |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 [noinline_doc] dictionary CertificateInfo { | 16 [noinline_doc] dictionary CertificateInfo { |
| 17 // Must be the DER encoding of a X.509 certificate. Currently, only | 17 // Must be the DER encoding of a X.509 certificate. Currently, only |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // $(ref:onCertificatesRequested) event. | 70 // $(ref:onCertificatesRequested) event. |
| 71 // The extension must sign the data in <code>request</code> using the | 71 // The extension must sign the data in <code>request</code> using the |
| 72 // appropriate algorithm and private key and return it by calling | 72 // appropriate algorithm and private key and return it by calling |
| 73 // <code>reportCallback</code>. <code>reportCallback</code> must be called | 73 // <code>reportCallback</code>. <code>reportCallback</code> must be called |
| 74 // exactly once. | 74 // exactly once. |
| 75 // |request|: Contains the details about the sign request. | 75 // |request|: Contains the details about the sign request. |
| 76 static void onSignDigestRequested(SignRequest request, | 76 static void onSignDigestRequested(SignRequest request, |
| 77 SignCallback reportCallback); | 77 SignCallback reportCallback); |
| 78 }; | 78 }; |
| 79 }; | 79 }; |
| OLD | NEW |