@wireapp/core 44.0.9 → 44.0.10
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.
|
@@ -33,10 +33,9 @@ export declare class E2EIServiceExternal extends TypedEventEmitter<Events> {
|
|
|
33
33
|
private registerLocalCertificateRoot;
|
|
34
34
|
/**
|
|
35
35
|
* will initialize the E2EIServiceExternal with the given discoveryUrl and userId.
|
|
36
|
-
* It will also register the server certificates in CoreCrypto
|
|
36
|
+
* It will also register the server certificates in CoreCrypto and start the CRL background check process
|
|
37
37
|
*
|
|
38
38
|
* @param discoveryUrl the discovery url of the acme server
|
|
39
|
-
* @param userId the user that is concerned by the enrollment
|
|
40
39
|
*/
|
|
41
40
|
initialize(discoveryUrl: string): Promise<void>;
|
|
42
41
|
private get acmeService();
|
|
@@ -59,7 +58,7 @@ export declare class E2EIServiceExternal extends TypedEventEmitter<Events> {
|
|
|
59
58
|
private initialiseCrlDistributionTimers;
|
|
60
59
|
private addCrlDistributionTimer;
|
|
61
60
|
private cancelCrlDistributionTimer;
|
|
62
|
-
validateSelfCrl
|
|
61
|
+
private validateSelfCrl;
|
|
63
62
|
private validateCrlDistributionPoint;
|
|
64
63
|
private validateCrl;
|
|
65
64
|
private handleNewCrlDistributionPoints;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"E2EIServiceExternal.d.ts","sourceRoot":"","sources":["../../../../src/messagingProtocols/mls/E2EIdentityService/E2EIServiceExternal.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAIzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAE,qBAAqB,EAAE,YAAY,EAAE,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAMnG,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB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GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;IAgDnG,oBAAoB,CAC/B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAC1C,OAAO,CAAC,cAAc,EAAE,CAAC;IAef,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC;YAQvC,4BAA4B;IAO1C;;;;;OAKG;IACU,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAW5D,OAAO,KAAK,WAAW,GAKtB;YAEa,+BAA+B;IAK7C;;;;;;;;;;;;OAYG;YACW,0BAA0B;IA6BxC,OAAO,CAAC,4BAA4B;YAStB,+BAA+B;YAQ/B,uBAAuB;YAKvB,0BAA0B;YAI1B,eAAe;YAQf,4BAA4B;YAS5B,WAAW;YAkBX,8BAA8B;CAK7C"}
|
|
@@ -38,7 +38,6 @@ class E2EIServiceExternal extends commons_1.TypedEventEmitter {
|
|
|
38
38
|
this.recurringTaskScheduler = recurringTaskScheduler;
|
|
39
39
|
this.clientService = clientService;
|
|
40
40
|
this.mlsService = mlsService;
|
|
41
|
-
void this.initialiseCrlDistributionTimers();
|
|
42
41
|
this.enrollmentStorage = (0, E2EIStorage_1.createE2EIEnrollmentStorage)(coreDatabase);
|
|
43
42
|
mlsService.on('newCrlDistributionPoints', distributionPoints => this.handleNewCrlDistributionPoints(distributionPoints));
|
|
44
43
|
}
|
|
@@ -108,14 +107,20 @@ class E2EIServiceExternal extends commons_1.TypedEventEmitter {
|
|
|
108
107
|
}
|
|
109
108
|
/**
|
|
110
109
|
* will initialize the E2EIServiceExternal with the given discoveryUrl and userId.
|
|
111
|
-
* It will also register the server certificates in CoreCrypto
|
|
110
|
+
* It will also register the server certificates in CoreCrypto and start the CRL background check process
|
|
112
111
|
*
|
|
113
112
|
* @param discoveryUrl the discovery url of the acme server
|
|
114
|
-
* @param userId the user that is concerned by the enrollment
|
|
115
113
|
*/
|
|
116
114
|
async initialize(discoveryUrl) {
|
|
117
115
|
this._acmeService = new Connection_1.AcmeService(discoveryUrl);
|
|
118
116
|
await this.registerServerCertificates();
|
|
117
|
+
await this.initialiseCrlDistributionTimers();
|
|
118
|
+
try {
|
|
119
|
+
await this.validateSelfCrl();
|
|
120
|
+
}
|
|
121
|
+
catch (error) {
|
|
122
|
+
console.warn('Error validating self CRL', error);
|
|
123
|
+
}
|
|
119
124
|
}
|
|
120
125
|
get acmeService() {
|
|
121
126
|
if (!this._acmeService) {
|
package/package.json
CHANGED