1. 27 Nov, 2018 3 commits
  2. 26 Nov, 2018 6 commits
  3. 21 Nov, 2018 1 commit
  4. 07 Nov, 2018 8 commits
  5. 06 Nov, 2018 6 commits
  6. 05 Nov, 2018 1 commit
  7. 24 Sep, 2018 2 commits
  8. 14 Sep, 2018 4 commits
  9. 13 Sep, 2018 3 commits
  10. 14 Aug, 2018 1 commit
  11. 13 Aug, 2018 4 commits
  12. 09 Aug, 2018 1 commit
    • George Nash's avatar
      Add Unit tests, fixes, and doc for oc_base64 · 956d56a8
      George Nash authored
      This change adds unit test code for oc_base64 code.
      This uses some test vectors (input/output) obtained from RFC-4648
      While testing error conditions I found two errors that were not
      properly handled in the oc_base64_decode.
      - The input is not long enough to be a base64 encoded string.
      - The padding character `=` in not at the end of the encoded string
      Also changes inputs that represent the size of the array to size_t
      instead of int.  Since the return value is also used to detect errors
      I left it as int.
      Doxygen style documentation was added to the encode/decode functions.
      Small modification to the Makefile. It now places the object files
      before the library files. If the Linker scans the library files first
      it may not grab a dependency need for the object files. This does not
      happen if the object files are first. This modification was made
      due to an `undefined reference` error when the base64test code was
      added. This fix also made it possible to remove part of the build
      comand that was repeated. When building the apitest program.
      Change-Id: I15bda772d2a64b48e28f259059b73e4d310f419f
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      Reviewed-on: https://gerrit.iotivity.org/gerrit/26605Tested-by: default avatarIoTivity Jenkins <jenkins-daemon@iotivity.org>
      Reviewed-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>