heck
4bdfb836a0
change var name accordingly
4 years ago
Hussein Kasem
ba4c0456f7
JNI-146 Reference AbstracEngine instead of Engine
To call java private methods from C/JNI side on an Android 7 device
seem to require to use the MethodId of the real class not from its
decendants
4 years ago
Hussein Kasem
5263aec68e
JNI-130 Generate JNI headers with lib-java
4 years ago
heck
4fdcb1e1ac
JNI-129 - JNI-129 - Message.getSent calls getSent() instead of _getSent()
4 years ago
heck
31ddafa3e5
codegen : message.cc fix datetime type
4 years ago
heck
87fc20082b
Fix: JNI-129 - Message.getSent calls getSent() instead of _getSent()
4 years ago
heck
72e65bebe1
fix merge conflicts
4 years ago
heck
8b17579b69
fix merge conflicts
4 years ago
heck
ac91696b0a
And suddenly my linux box javac needs "-encoding UTF-8", well, cant hurtbeing explicit about that in general.
(cherry picked from commit 242bdb073c
)
5 years ago
heck
a12f0504a8
JNI-101 - "Use pEpEngine logging API / runtime switchable / thread-safe"
JNI-116 - "pEpLog does not print on Android."
4 years ago
heck
0ef2601fd9
JNI-125 - "EncFormat missing values"
(cherry picked from commit bcb119060b
)
5 years ago
heck
866dc60439
C++ impl of export_key()
5 years ago
heck
46ba24e930
codegen add support for "basic methods" returning bytearray
5 years ago
heck
5e999db69f
add export_key as "basic" method (gen on java handwritten in c++)
5 years ago
heck
45ec5a9701
Wow, somehow the first make target is not the default make target. (workaround)
5 years ago
heck
bcb119060b
JNI-125 - "EncFormat missing values"
5 years ago
heck
a255490628
formatting and code style only
5 years ago
heck
3e71c76515
JNI-123 - "get rid of c-style casts"
5 years ago
heck
9eb92f27b6
no explicit toString() values for enum Rating
5 years ago
heck
3f57838c73
and replace the hardcoded prototype with the appropriate vars
5 years ago
heck
59cc0b4596
fix javah (still works on debian jdk8u265-b01 at least)
5 years ago
heck
6d43f1745f
added build option: USE_JAVAH - explicitly enable/disable use of javah over javac -h (if autodetect doesnt work correctly)
5 years ago
heck
9586c9d0dc
javah, fix build using java 8 (javah instead of javac -h)
5 years ago
heck
5070920c81
Add enter_device_group()
5 years ago
heck
41eb100c96
.toStrin() for the 2 independent Pair classes (PityTest framework should not depend on jniAdapter)
5 years ago
heck
3334007c6f
Add "public String Identity.toXKeyList(List<Identity> ids)" for creating OptField X-KeyList
5 years ago
heck
29705b4756
Add the Enum default method getInternalStringValue() when "has_int_str_val" is set (TODO: Query this using XPath, fdik how do i do this? in ysl2?)
5 years ago
heck
c0e2a91578
CodeGen: New enhanced enums, now all enums got .toString(), all enums can have .getInternalStringValue() (This was needed to avoid mapping table in the app, for "casting" Ratings to Engine internal string values for X-Opts .e.g)
5 years ago
heck
242bdb073c
And suddenly my linux box javac needs "-encoding UTF-8", well, cant hurtbeing explicit about that in general.
5 years ago
heck
9a2c6d9bd2
move AutoCloseable to top level interface AbstractEngineInterface
5 years ago
heck
1f95274051
remove stale file from merge
5 years ago
heck
476011d774
use passphraseWrap() in CodeGen template too.
5 years ago
heck
5f85c064a1
just cosmetics
5 years ago
Hussein Kasem
5fe48c91f5
JNI-114 Add PassphraseType to the passphraseCallback
5 years ago
heck
1db1aead61
move the new .hh files to new src/cxx/
5 years ago
heck
de22d6aad3
Generate all Exceptions fixed
5 years ago
heck
8fe50aeb6d
unsigned int is typedef'd as uint in "most" compilers, but not all
5 years ago
heck
532e283b17
thats for sure ;)
5 years ago
Hussein Kasem
9c93feeed3
JNI-114 Make basic_api methods use passphrase cache
5 years ago
Hussein Kasem
ff5e01680c
JNI-114 Make generated methods cached
5 years ago
heck
b8b52978f0
add new public method to AbstractEngineInterface "public void setPassphraseRequiredCallback(Sync.PassphraseRequiredCallback passphraseRequiredCallback);"
5 years ago
heck
7b5b55b27b
nothing for default branch...
5 years ago
heck
fc06f8257b
delete DeleteLocalRef()
5 years ago
heck
0240fafedb
Avoid retry if callback not set is still ...dirty. the commit comment goes on, REMEMBER TO USE hg log -v now and then again :)
// if this happens (no callback registered
// we simply return ""
// it will fail
// this repeats MaxRetries times (currentluy hardcoded to 3)
// Then the orig call will return with the PEP_STATUS (most likely PEP_PASSPHRASE_REQUIRED)
5 years ago
heck
64e12d7774
Java register callback method "Engine.setPassphraseRequired()" done and tested.
5 years ago
heck
095eb8075b
JNI code done, now passphrase comes from java level throug callback
5 years ago
heck
7c7a8f4121
Improved retry code / now passphrase from AbstractEngine level.
5 years ago
heck
12fa07bc4a
Passphrase retry after application callback (callback still dummy, but works). For ALL "cached" methods :)
5 years ago
heck
3b5366b7ed
_if_ we should throw here, we need to do it differently...
5 years ago
heck
96f1e9eb88
Backed out changeset 0efc85ba691e
that was the wrong file to commit
5 years ago