diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-03-13 22:43:56 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2019-03-20 10:32:53 -0400 |
commit | 2f2a19f2e7f3522cdb80031f980f8b4c1356b2f1 (patch) | |
tree | c2245b9c121f68b19f601263147ba2b1446af243 /android/olm-sdk/src/main/jni/olm_jni_helper.cpp | |
parent | 0348f06a5692f168f2d0d8b77aac81ebb31e2df6 (diff) |
add Android bindings for PK signing
Diffstat (limited to 'android/olm-sdk/src/main/jni/olm_jni_helper.cpp')
-rw-r--r-- | android/olm-sdk/src/main/jni/olm_jni_helper.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/android/olm-sdk/src/main/jni/olm_jni_helper.cpp b/android/olm-sdk/src/main/jni/olm_jni_helper.cpp index 1997334..f13c5e1 100644 --- a/android/olm-sdk/src/main/jni/olm_jni_helper.cpp +++ b/android/olm-sdk/src/main/jni/olm_jni_helper.cpp @@ -1,6 +1,6 @@ /* * Copyright 2016 OpenMarket Ltd - * Copyright 2016 Vector Creations Ltd + * Copyright 2016,2018,2019 Vector Creations Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -222,3 +222,8 @@ struct OlmPkEncryption* getPkEncryptionInstanceId(JNIEnv* aJniEnv, jobject aJava { return (struct OlmPkEncryption*)getInstanceId(aJniEnv, aJavaObject, CLASS_OLM_PK_ENCRYPTION); } + +struct OlmPkSigning* getPkSigningInstanceId(JNIEnv* aJniEnv, jobject aJavaObject) +{ + return (struct OlmPkSigning*)getInstanceId(aJniEnv, aJavaObject, CLASS_OLM_PK_SIGNING); +} |