*Change ssl set and SslData to allow Uint8Arrays

This commit is contained in:
Derrick Hammer 2022-09-09 03:56:33 -04:00
parent 3bf6ccb1f0
commit 24aa7201e2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 3 deletions

View File

@ -38,7 +38,10 @@ export interface PluginAPI {
setContext: (context: tls.SecureContext) => void;
getContext: () => tls.SecureContext;
getSaved: (retry: boolean) => Promise<boolean | SslData>;
set: (cert: IndependentFileSmall, key: IndependentFileSmall) => void;
set: (
cert: IndependentFileSmall | Uint8Array,
key: IndependentFileSmall | Uint8Array
) => void;
get: () => SslData;
save: () => Promise<void>;
};
@ -105,6 +108,6 @@ export interface IndependentFileSmall {
}
export interface SslData {
cert?: IndependentFileSmall;
key?: IndependentFileSmall;
cert?: IndependentFileSmall | Uint8Array;
key?: IndependentFileSmall | Uint8Array;
}