*Change ssl set and SslData to allow Uint8Arrays
This commit is contained in:
parent
3bf6ccb1f0
commit
24aa7201e2
|
@ -38,7 +38,10 @@ export interface PluginAPI {
|
||||||
setContext: (context: tls.SecureContext) => void;
|
setContext: (context: tls.SecureContext) => void;
|
||||||
getContext: () => tls.SecureContext;
|
getContext: () => tls.SecureContext;
|
||||||
getSaved: (retry: boolean) => Promise<boolean | SslData>;
|
getSaved: (retry: boolean) => Promise<boolean | SslData>;
|
||||||
set: (cert: IndependentFileSmall, key: IndependentFileSmall) => void;
|
set: (
|
||||||
|
cert: IndependentFileSmall | Uint8Array,
|
||||||
|
key: IndependentFileSmall | Uint8Array
|
||||||
|
) => void;
|
||||||
get: () => SslData;
|
get: () => SslData;
|
||||||
save: () => Promise<void>;
|
save: () => Promise<void>;
|
||||||
};
|
};
|
||||||
|
@ -105,6 +108,6 @@ export interface IndependentFileSmall {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SslData {
|
export interface SslData {
|
||||||
cert?: IndependentFileSmall;
|
cert?: IndependentFileSmall | Uint8Array;
|
||||||
key?: IndependentFileSmall;
|
key?: IndependentFileSmall | Uint8Array;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue