@microsoft/ccf-app 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/global.d.ts +10 -0
- package/package.json +1 -1
- package/polyfill.js +3 -0
package/global.d.ts
CHANGED
|
@@ -521,6 +521,16 @@ export interface CCF {
|
|
|
521
521
|
*/
|
|
522
522
|
historicalState?: HistoricalState;
|
|
523
523
|
historical: CCFHistorical;
|
|
524
|
+
/**
|
|
525
|
+
* Toggles implementation of Date global API between using untrusted host time
|
|
526
|
+
* and returning 0 (default).
|
|
527
|
+
*
|
|
528
|
+
* Returns previous value, allowing a global default to be maintained.
|
|
529
|
+
*
|
|
530
|
+
* @param enable If true, then subsequent calls to Date.now() will return untrusted
|
|
531
|
+
* host time
|
|
532
|
+
*/
|
|
533
|
+
enableUntrustedDateTime(enable: boolean): boolean;
|
|
524
534
|
}
|
|
525
535
|
export declare const openenclave: OpenEnclave;
|
|
526
536
|
export interface EvidenceClaims {
|
package/package.json
CHANGED
package/polyfill.js
CHANGED
|
@@ -447,6 +447,9 @@ class CCFPolyfill {
|
|
|
447
447
|
isValidX509CertChain(chain, trusted) {
|
|
448
448
|
return this.crypto.isValidX509CertChain(chain, trusted);
|
|
449
449
|
}
|
|
450
|
+
enableUntrustedDateTime(enable) {
|
|
451
|
+
throw new Error("Not implemented");
|
|
452
|
+
}
|
|
450
453
|
}
|
|
451
454
|
globalThis.ccf = new CCFPolyfill();
|
|
452
455
|
class OpenEnclavePolyfill {
|