1. 09 Oct, 2019 1 commit
    • George Nash's avatar
      Add OCEndpointParseException · 66a2d087
      George Nash authored
      This adds OCEndpointParseException that will be thrown
      if stringToEndpoint fails to parse the passed in string.
      Initially I would have liked to use the java.text.ParseException
      but it expects the errorOffset value which is the position where
      the parse error occured in the source string. We don't have a
      mechanism for discovering the errorOffset so a regular exception
      with a error message has been used instead.
      Additionally updated the NullPointerException code for setDi
      to use the C/C++ abstraction macros for Java method calls.
      Change-Id: I76442508c0b5b6c84d8c5ba303f0d982d550e5b6
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
  2. 08 Oct, 2019 3 commits
  3. 07 Oct, 2019 3 commits
  4. 04 Oct, 2019 3 commits
  5. 02 Oct, 2019 2 commits
  6. 26 Sep, 2019 1 commit
  7. 18 Sep, 2019 1 commit
  8. 13 Sep, 2019 1 commit
  9. 05 Sep, 2019 1 commit
  10. 03 Sep, 2019 1 commit
  11. 29 Aug, 2019 1 commit
    • George Nash's avatar
      Connect new/finalize to new/free for endpoints · 1ead4d2a
      George Nash authored
      This extends the endpoint struct for swig so the generated
      code will call oc_new_endpoint and oc_free_endpoint when
      new and finalize are called.
      Endpoint(s) are set to NULL after calling oc_free_endpoint or
      oc_free_server_endpoints is called from Java. This will prevent
      double freeing memory which would result in a segfault.
      code that returns or accept multiple endpoints in a list now
      indicate that fact because the variable name is plural
      Change-Id: Id11a1c98e724bf44b7ab82e92a529f3859f6e936
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
  12. 23 Aug, 2019 1 commit
  13. 21 Aug, 2019 1 commit
  14. 19 Aug, 2019 2 commits
  15. 15 Aug, 2019 1 commit
  16. 14 Aug, 2019 2 commits
  17. 13 Aug, 2019 1 commit
  18. 07 Aug, 2019 3 commits
    • Larry Sachs's avatar
      Updates for CborEncoder Exception · e7874057
      Larry Sachs authored
      Adds a base OcException class from which other OcExceptions
      can be derived.
      Adds OcCborException for OcRepresention errors.
      Updates the Onboarding Tools examples to use OcRepresentation
      with try/catch for OcCborExceptions.
      Change-Id: I35943e73e8d68ab0be715922da450431ea2b3673
      Signed-off-by: Larry Sachs's avatarLarry Sachs <larry.j.sachs@intel.com>
    • George Nash's avatar
      Expand and improve documentation · 9e2b7673
      George Nash authored
      This expands the documentation to generate documentation
      for the OCRep class when swig is run.
      This also cleans up the some of documentation for the OCMain
      class as well. Mostly whitespace cleanup.
      In The process of developing the documentation the clearCborErrno
      was added since the documentation process exposed the fact that
      there was no way to clear the CborErrno from Java.
      The Java function getRepError was removed it was returning the
      same information as getCborErrno.
      Change-Id: Iee237168c122f3d851b19c1cf967de304ab26147
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
    • Larry Sachs's avatar
      Proper Android Logging · ebfb314b
      Larry Sachs authored
      Change-Id: If99e299b1c4e9ba9332f163873803995e3a70151
      Signed-off-by: Larry Sachs's avatarLarry Sachs <larry.j.sachs@intel.com>
  19. 06 Aug, 2019 2 commits
  20. 02 Aug, 2019 1 commit
  21. 01 Aug, 2019 3 commits
  22. 31 Jul, 2019 1 commit
  23. 30 Jul, 2019 3 commits
    • George Nash's avatar
      Add security stubs for OCObt jni code · b498eb0b
      George Nash authored
      This change allows us to have a consistant Java JAR
      API regardless of the SECURE build options.
      Change-Id: I70061fa2bf9d06dc59f16c764d652919095f6b91
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
    • George Nash's avatar
      Update the lifetime of callbacks · 8e61e012
      George Nash authored
      Add code to release the global ref after a callback will no
      longer be called.
      Change-Id: I1da2c96f0a672d7897473ef7391c99732c6b1e66
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
    • George Nash's avatar
      Fix UnsatisfiedLinkError when SECURE=0 · f892c882
      George Nash authored
      When built with SECURE=0 the following functions
      implementation is ifdef'ed out and will cause an
      UnsatisfiedLinkError when the functions are called
      from a Java progeam.
       - oc_reset
       - oc_core_regen_unique_ids
       - oc_auto_assert_roles
       - oc_assert_all_roles
      We call a dummy function that will just call the C function
      if SECURED=0 it will do nothing and return.
      When building SECURE=0 all of the methods from oc_obt.h
      are excluded from the build. To make this possible some
      more selective logic was added to the swig Makefile
      to not process oc_obt.i and not copy files from the
      oc folder that reference generated code from oc_obt.i.
      Change-Id: I82eddbc894df67a51127929eecf650c98b115b4f
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
  24. 29 Jul, 2019 1 commit
    • George Nash's avatar
      Generate documentation for Java output · bbe93d0e
      George Nash authored
      SWIG currently does not have generic way to generate
      documentation in the output so this use hacks to generate
      the required documentation.
      This copies over the documentation from oc_api.h to the
      Java output.
      Change-Id: Id80acf08a0035517b57a83ca322645ea98914046
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>