Add an export for the length of a private key

This commit is contained in:
David Baker 2018-10-02 19:21:05 +01:00
parent 8635d68ba8
commit e521ee84c5

View file

@ -466,6 +466,7 @@ olm_exports["get_library_version"] = restore_stack(function() {
Module['onRuntimeInitialized'] = function() {
OLM_ERROR = Module['_olm_error']();
olm_exports["PRIVATE_KEY_LENGTH"] = Module['_olm_pk_private_key_length']();
if (onInitSuccess) onInitSuccess();
};