aboutsummaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-10-02 19:21:05 +0100
committerDavid Baker <dave@matrix.org>2018-10-02 19:21:05 +0100
commite521ee84c5a96f478c6d9b10e90edb47549baf5f (patch)
tree3ade66d23f0447c8df83c826cef79d268272312a /javascript
parent8635d68ba8546b333f0c9cdff4f0e6c4b915c159 (diff)
Add an export for the length of a private key
Diffstat (limited to 'javascript')
-rw-r--r--javascript/olm_post.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript/olm_post.js b/javascript/olm_post.js
index 9e0294a..fffffad 100644
--- a/javascript/olm_post.js
+++ b/javascript/olm_post.js
@@ -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();
};