Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2024-01-04 17:25:37 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2024-01-04 17:25:37 +0300
commit501ebf83509f88ba93aece92ed8d73b13d2c62af (patch)
tree57c0bfcc5d84e88cc2057197d66cb657c54fc8e3 /src/ClassLoader
parent6e716981adeeade0a71414dbc445870614902a91 (diff)
Fix export encryption
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/ClassLoader')
-rw-r--r--src/ClassLoader/DefaultClassLoader.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ClassLoader/DefaultClassLoader.js b/src/ClassLoader/DefaultClassLoader.js
index 16ff9ec..a54e6f5 100644
--- a/src/ClassLoader/DefaultClassLoader.js
+++ b/src/ClassLoader/DefaultClassLoader.js
@@ -67,6 +67,8 @@ import Logger from "../Logger/Logger";
import DefectField from "../Model/CustomField/DefectField";
import PreconditionFailedError from "../Exception/Http/PreconditionFailedError";
import EventEmitter from "../Event/EventEmitter";
+import EncryptionService from "../Services/EncryptionService";
+import InvalidRangeError from "../Exception/Services/InvalidRangeError";
export default class DefaultClassLoader extends BasicClassLoader {
@@ -120,13 +122,14 @@ export default class DefaultClassLoader extends BasicClassLoader {
'encryption.none' : () => { return new NoEncryption(this.getInstance('classes')); },
'encryption.csev1': () => { return new CSEv1Encryption(this.getInstance('classes')); },
- 'encryption.expv1': () => { return new ExportV1Encryption(this.getInstance('classes')); },
+ 'encryption.expv1': () => { return new ExportV1Encryption(this.getInstance('service.encryption')); },
'keychain.csev1': (k, p) => { return new CSEv1Keychain(this.getInstance('classes'), k, p); },
- 'service.hash' : () => { return new HashService(this.getInstance('classes')); },
+ 'service.hash' : () => { return new HashService(this.getInstance('client')); },
'service.model' : () => { return new ModelService(this.getInstance('classes')); },
'service.password': () => { return new PasswordService(this.getInstance('client')); },
+ 'service.encryption': () => { return new EncryptionService(this.getInstance('classes')); },
'logger': Logger,
@@ -160,6 +163,7 @@ export default class DefaultClassLoader extends BasicClassLoader {
'exception.encryption.key.missing': MissingEncryptionKeyError,
'exception.encryption.text.length': InvalidEncryptedTextLength,
'exception.configuration' : ConfigurationError,
+ 'exception.service.range' : InvalidRangeError,
// Old deprecated errors