Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Olm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
Olm
Commits
42c85adb
Commit
42c85adb
authored
8 years ago
by
pedroGitt
Browse files
Options
Downloads
Patches
Plain Diff
Update function API signatures with macros
parent
293a12a1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_account.h
+10
-10
10 additions, 10 deletions
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_account.h
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_session.h
+10
-10
10 additions, 10 deletions
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_session.h
with
20 additions
and
20 deletions
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_account.h
+
10
−
10
View file @
42c85adb
...
...
@@ -10,24 +10,24 @@
extern
"C"
{
#endif
JNIEXPORT
jstring
JNICALL
Java_org_matrix_olm_OlmManager_
getOlmLibVersion
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jstring
OLM_MANAGER_FUNC_DEF
(
getOlmLibVersion
)
(
JNIEnv
*
env
,
jobject
thiz
);
// account creation/destruction
JNIEXPORT
void
JNICALL
Java_org_matrix_olm_OlmAccount_
releaseAccountJni
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jlong
JNICALL
Java_org_matrix_olm_OlmAccount_
initNewAccountJni
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
void
OLM_ACCOUNT_FUNC_DEF
(
releaseAccountJni
)
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jlong
OLM_ACCOUNT_FUNC_DEF
(
initNewAccountJni
)
(
JNIEnv
*
env
,
jobject
thiz
);
// identity keys
JNIEXPORT
jbyteArray
JNICALL
Java_org_matrix_olm_OlmAccount_
identityKeysJni
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jbyteArray
OLM_ACCOUNT_FUNC_DEF
(
identityKeysJni
)
(
JNIEnv
*
env
,
jobject
thiz
);
// one time keys
JNIEXPORT
jbyteArray
JNICALL
Java_org_matrix_olm_OlmAccount_
oneTimeKeysJni
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jlong
JNICALL
Java_org_matrix_olm_OlmAccount_
maxOneTimeKeys
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmAccount_
generateOneTimeKeys
(
JNIEnv
*
env
,
jobject
thiz
,
jint
aNumberOfKeys
);
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmAccount_
removeOneTimeKeysForSession
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
aNativeOlmSessionId
);
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmAccount_
markOneTimeKeysAsPublished
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jbyteArray
OLM_ACCOUNT_FUNC_DEF
(
oneTimeKeysJni
)
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jlong
OLM_ACCOUNT_FUNC_DEF
(
maxOneTimeKeys
)
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jint
OLM_ACCOUNT_FUNC_DEF
(
generateOneTimeKeys
)
(
JNIEnv
*
env
,
jobject
thiz
,
jint
aNumberOfKeys
);
JNIEXPORT
jint
OLM_ACCOUNT_FUNC_DEF
(
removeOneTimeKeysForSession
)
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
aNativeOlmSessionId
);
JNIEXPORT
jint
OLM_ACCOUNT_FUNC_DEF
(
markOneTimeKeysAsPublished
)
(
JNIEnv
*
env
,
jobject
thiz
);
// signing
JNIEXPORT
jstring
JNICALL
Java_org_matrix_olm_OlmAccount_
signMessage
(
JNIEnv
*
env
,
jobject
thiz
,
jstring
aMessage
);
JNIEXPORT
jstring
OLM_ACCOUNT_FUNC_DEF
(
signMessage
)
(
JNIEnv
*
env
,
jobject
thiz
,
jstring
aMessage
);
#ifdef __cplusplus
}
...
...
This diff is collapsed.
Click to expand it.
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_session.h
+
10
−
10
View file @
42c85adb
...
...
@@ -10,25 +10,25 @@ extern "C" {
#endif
// session creation/destruction
JNIEXPORT
void
JNICALL
Java_org_matrix_olm_OlmSession_
releaseSessionJni
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jlong
JNICALL
Java_org_matrix_olm_OlmSession_
initNewSessionJni
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
void
OLM_SESSION_FUNC_DEF
(
releaseSessionJni
)
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jlong
OLM_SESSION_FUNC_DEF
(
initNewSessionJni
)
(
JNIEnv
*
env
,
jobject
thiz
);
// outbound session
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmSession_
initOutboundSessionJni
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
aOlmAccountId
,
jstring
aTheirIdentityKey
,
jstring
aTheirOneTimeKey
);
JNIEXPORT
jint
OLM_SESSION_FUNC_DEF
(
initOutboundSessionJni
)
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
aOlmAccountId
,
jstring
aTheirIdentityKey
,
jstring
aTheirOneTimeKey
);
// inbound sessions: establishment based on PRE KEY message
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmSession_
initInboundSessionJni
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
aOlmAccountId
,
jstring
aOneTimeKeyMsg
);
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmSession_
initInboundSessionFromIdKeyJni
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
aOlmAccountId
,
jstring
aTheirIdentityKey
,
jstring
aOneTimeKeyMsg
);
JNIEXPORT
jint
OLM_SESSION_FUNC_DEF
(
initInboundSessionJni
)
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
aOlmAccountId
,
jstring
aOneTimeKeyMsg
);
JNIEXPORT
jint
OLM_SESSION_FUNC_DEF
(
initInboundSessionFromIdKeyJni
)
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
aOlmAccountId
,
jstring
aTheirIdentityKey
,
jstring
aOneTimeKeyMsg
);
// match inbound sessions: based on PRE KEY message
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmSession_
matchesInboundSessionJni
(
JNIEnv
*
env
,
jobject
thiz
,
jstring
aOneTimeKeyMsg
);
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmSession_
matchesInboundSessionFromIdKeyJni
(
JNIEnv
*
env
,
jobject
thiz
,
jstring
aTheirIdentityKey
,
jstring
aOneTimeKeyMsg
);
JNIEXPORT
jint
OLM_SESSION_FUNC_DEF
(
matchesInboundSessionJni
)
(
JNIEnv
*
env
,
jobject
thiz
,
jstring
aOneTimeKeyMsg
);
JNIEXPORT
jint
OLM_SESSION_FUNC_DEF
(
matchesInboundSessionFromIdKeyJni
)
(
JNIEnv
*
env
,
jobject
thiz
,
jstring
aTheirIdentityKey
,
jstring
aOneTimeKeyMsg
);
// encrypt/decrypt
JNIEXPORT
jint
JNICALL
Java_org_matrix_olm_OlmSession_
encryptMessageJni
(
JNIEnv
*
env
,
jobject
thiz
,
jstring
aClearMsg
,
jobject
aEncryptedMsg
);
JNIEXPORT
jstring
JNICALL
Java_org_matrix_olm_OlmSession_
decryptMessage
(
JNIEnv
*
env
,
jobject
thiz
,
jobject
aEncryptedMsg
);
JNIEXPORT
jint
OLM_SESSION_FUNC_DEF
(
encryptMessageJni
)
(
JNIEnv
*
env
,
jobject
thiz
,
jstring
aClearMsg
,
jobject
aEncryptedMsg
);
JNIEXPORT
jstring
OLM_SESSION_FUNC_DEF
(
decryptMessage
)
(
JNIEnv
*
env
,
jobject
thiz
,
jobject
aEncryptedMsg
);
JNIEXPORT
jstring
JNICALL
Java_org_matrix_olm_OlmSession_
getSessionIdentifierJni
(
JNIEnv
*
env
,
jobject
thiz
);
JNIEXPORT
jstring
OLM_SESSION_FUNC_DEF
(
getSessionIdentifierJni
)
(
JNIEnv
*
env
,
jobject
thiz
);
#ifdef __cplusplus
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment