@wireapp/core 45.0.10 → 45.0.12
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.
|
@@ -10,8 +10,9 @@ export type DeviceIdentity = Omit<WireIdentity, 'free' | 'status'> & {
|
|
|
10
10
|
deviceId: string;
|
|
11
11
|
};
|
|
12
12
|
type Events = {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
crlChanged: {
|
|
14
|
+
domain: string;
|
|
15
|
+
};
|
|
15
16
|
};
|
|
16
17
|
export declare class E2EIServiceExternal extends TypedEventEmitter<Events> {
|
|
17
18
|
private readonly coreCryptoClient;
|
|
@@ -58,7 +59,6 @@ export declare class E2EIServiceExternal extends TypedEventEmitter<Events> {
|
|
|
58
59
|
private initialiseCrlDistributionTimers;
|
|
59
60
|
private addCrlDistributionTimer;
|
|
60
61
|
private cancelCrlDistributionTimer;
|
|
61
|
-
private validateSelfCrl;
|
|
62
62
|
private validateCrlDistributionPoint;
|
|
63
63
|
private validateCrl;
|
|
64
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,CAAC;AAKrD,OAAO,EAAC,sBAAsB,EAAC,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM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|
|
123
123
|
this._acmeService = new Connection_1.AcmeService(discoveryUrl);
|
|
124
124
|
await this.registerServerCertificates();
|
|
125
|
-
await this.validateSelfCrl();
|
|
126
125
|
await this.initialiseCrlDistributionTimers();
|
|
127
126
|
}
|
|
128
127
|
get acmeService() {
|
|
@@ -191,18 +190,10 @@ class E2EIServiceExternal extends commons_1.TypedEventEmitter {
|
|
|
191
190
|
async cancelCrlDistributionTimer(url) {
|
|
192
191
|
await this.coreDatabase.delete('crls', url);
|
|
193
192
|
}
|
|
194
|
-
async validateSelfCrl() {
|
|
195
|
-
const { crl, url } = await this.acmeService.getSelfCRL();
|
|
196
|
-
await this.validateCrl(url, crl, async () => {
|
|
197
|
-
this.emit('selfCrlChanged');
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
193
|
async validateCrlDistributionPoint(distributionPointUrl) {
|
|
201
194
|
const domain = new URL(distributionPointUrl).hostname;
|
|
202
195
|
const crl = await this.acmeService.getCRLFromDistributionPoint(domain);
|
|
203
|
-
await this.validateCrl(distributionPointUrl, crl,
|
|
204
|
-
this.emit('remoteCrlChanged');
|
|
205
|
-
});
|
|
196
|
+
await this.validateCrl(distributionPointUrl, crl, () => this.emit('crlChanged', { domain }));
|
|
206
197
|
}
|
|
207
198
|
async validateCrl(url, crl, onDirty) {
|
|
208
199
|
const { expiration: expirationTimestampSeconds, dirty } = await this.coreCryptoClient.e2eiRegisterCRL(url, crl);
|
|
@@ -214,7 +205,7 @@ class E2EIServiceExternal extends commons_1.TypedEventEmitter {
|
|
|
214
205
|
}
|
|
215
206
|
//if it was dirty, trigger e2eiconversationstate for every conversation
|
|
216
207
|
if (dirty) {
|
|
217
|
-
|
|
208
|
+
onDirty();
|
|
218
209
|
}
|
|
219
210
|
}
|
|
220
211
|
async handleNewCrlDistributionPoints(distributionPoints) {
|
package/package.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"./lib/cryptography/AssetCryptography/crypto.node": "./lib/cryptography/AssetCryptography/crypto.browser.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@wireapp/api-client": "^26.10.
|
|
15
|
-
"@wireapp/commons": "^5.2.
|
|
14
|
+
"@wireapp/api-client": "^26.10.15",
|
|
15
|
+
"@wireapp/commons": "^5.2.6",
|
|
16
16
|
"@wireapp/core-crypto": "1.0.0-rc.46",
|
|
17
17
|
"@wireapp/cryptobox": "12.8.0",
|
|
18
|
-
"@wireapp/promise-queue": "^2.3.
|
|
18
|
+
"@wireapp/promise-queue": "^2.3.1",
|
|
19
19
|
"@wireapp/protocol-messaging": "1.44.0",
|
|
20
20
|
"@wireapp/store-engine": "5.1.5",
|
|
21
21
|
"axios": "1.6.7",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"test:coverage": "jest --coverage",
|
|
61
61
|
"watch": "tsc --watch"
|
|
62
62
|
},
|
|
63
|
-
"version": "45.0.
|
|
64
|
-
"gitHead": "
|
|
63
|
+
"version": "45.0.12",
|
|
64
|
+
"gitHead": "fd2c0ea27cdd0363d774d63a103a94188873ca96"
|
|
65
65
|
}
|