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
8b050e5e
Commit
8b050e5e
authored
8 years ago
by
pedroGitt
Browse files
Options
Downloads
Patches
Plain Diff
Local variable renaming
parent
50bf6049
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_session.cpp
+4
-4
4 additions, 4 deletions
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_session.cpp
with
4 additions
and
4 deletions
java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_session.cpp
+
4
−
4
View file @
8b050e5e
...
...
@@ -571,7 +571,7 @@ JNIEXPORT jint OLM_SESSION_FUNC_DEF(encryptMessageJni)(JNIEnv *env, jobject thiz
JNIEXPORT
jstring
OLM_SESSION_FUNC_DEF
(
decryptMessageJni
)(
JNIEnv
*
env
,
jobject
thiz
,
jobject
aEncryptedMsg
)
{
jstring
decryptedMsgRetValue
=
0
;
jclass
encryptedMsgJ
c
lass
=
0
;
jclass
encryptedMsgJ
C
lass
=
0
;
jstring
encryptedMsgJstring
=
0
;
// <= obtained from encryptedMsgFieldId
// field IDs
jfieldID
encryptedMsgFieldId
;
...
...
@@ -592,15 +592,15 @@ JNIEXPORT jstring OLM_SESSION_FUNC_DEF(decryptMessageJni)(JNIEnv *env, jobject t
{
LOGE
(
"## decryptMessageJni(): failure - invalid encrypted message"
);
}
else
if
(
0
==
(
encryptedMsgJ
c
lass
=
env
->
GetObjectClass
(
aEncryptedMsg
)))
else
if
(
0
==
(
encryptedMsgJ
C
lass
=
env
->
GetObjectClass
(
aEncryptedMsg
)))
{
LOGE
(
"## decryptMessageJni(): failure - unable to get encrypted message class"
);
}
else
if
(
0
==
(
encryptedMsgFieldId
=
env
->
GetFieldID
(
encryptedMsgJ
c
lass
,
"mCipherText"
,
"Ljava/lang/String;"
)))
else
if
(
0
==
(
encryptedMsgFieldId
=
env
->
GetFieldID
(
encryptedMsgJ
C
lass
,
"mCipherText"
,
"Ljava/lang/String;"
)))
{
LOGE
(
"## decryptMessageJni(): failure - unable to get message field"
);
}
else
if
(
0
==
(
typeMsgFieldId
=
env
->
GetFieldID
(
encryptedMsgJ
c
lass
,
"mType"
,
"J"
)))
else
if
(
0
==
(
typeMsgFieldId
=
env
->
GetFieldID
(
encryptedMsgJ
C
lass
,
"mType"
,
"J"
)))
{
LOGE
(
"## decryptMessageJni(): failure - unable to get message type field"
);
}
...
...
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