Permalink
Browse files

Anjay 1.6.0

Breaking changes:
- Replaced time_t with int32_t for period Attributes; fixes compatibility with
  platforms that have unsigned time_t

Improvements:
- Removed useless symlinks that caused problems on Windows
- Fixed usage of errno constants that are defined by avs_commons compatibility
  layer; fixes compatibility with platforms that don't declare sane errno
  constants
- Improved compatibility with CMake 2.8 and CentOS

Other:
- anjay_persistence_time() is now deprecated
  • Loading branch information...
kFYatek committed Jan 8, 2018
1 parent 442106e commit 3d67aab1452f76c3e3e0d274748dea68d81369af
Showing 385 changed files with 630 additions and 506 deletions.
View
@@ -1,4 +1,4 @@
# Copyright 2017 AVSystem <avsystem@avsystem.com>
# Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -1,4 +1,4 @@
# Copyright 2017 AVSystem <avsystem@avsystem.com>
# Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ if(WITH_FUZZ_TESTS)
endif()
project(anjay C)
set(ANJAY_VERSION "1.5.2" CACHE STRING "Anjay library version")
set(ANJAY_VERSION "1.6.0" CACHE STRING "Anjay library version")
set(ANJAY_BINARY_VERSION 1.0.0)
set(ANJAY_BUILD_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/output")
View
@@ -1,5 +1,5 @@
..
Copyright 2017 AVSystem <avsystem@avsystem.com>
Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
View
2 NOTICE
@@ -1,5 +1,5 @@
Anjay
Copyright 2017 AVSystem
Copyright 2017-2018 AVSystem
This product includes software developed at AVSystem (www.avsystem.com).
View
@@ -19,6 +19,9 @@ The project has been created and is actively maintained by [AVSystem](https://ww
* [About OMA LwM2M](#about-oma-lwm2m)
* [Quickstart guide](#quickstart-guide)
* [Dependencies](#dependencies)
* [Ubuntu 16.04 LTS](#ubuntu-1604-lts)
* [CentOS 7](#centos-7)
* [macOS Sierra with [Homebrew](https://brew.sh/)](#macos-sierra-with-homebrewhttpsbrewsh)
* [Running the demo client](#running-the-demo-client)
* [Detailed compilation guide](#detailed-compilation-guide)
* [License](#license)
@@ -104,15 +107,31 @@ More details about OMA LwM2M: [Brief introduction to LwM2M](https://AVSystem.git
- [pybind11](https://github.com/pybind/pybind11) - included in the repository as a subproject,
- [scan-build](https://clang-analyzer.llvm.org/scan-build.html) - for static analysis.
To install everything on Ubuntu 16.04 LTS:
#### Ubuntu 16.04 LTS
``` sh
sudo apt-get install git build-essential cmake libmbedtls-dev
# Optionally for tests:
sudo apt-get install libpython3-dev libssl-dev python3 python3-cryptography python3-sphinx clang
sudo apt-get install libpython3-dev libssl-dev python3 python3-cryptography python3-jinja2 python3-sphinx clang
```
Or on macOS Sierra with [Homebrew](https://brew.sh/):
#### CentOS 7
``` sh
# Required for mbedtls-devel and python3.5
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm
sudo yum install -y which git make cmake mbedtls-devel gcc gcc-c++
# Optionally for tests:
sudo yum install -y valgrind valgrind-devel openssl openssl-devel python35u python35u-devel python35u-pip python-sphinx python-sphinx_rtd_theme clang-analyzer
# Some test scripts expect Python >=3.5 to be available via `python3` command
# Use update-alternatives to create a /usr/bin/python3 symlink with priority 0
# (lowest possible)
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 0
sudo python3 -m pip install cryptography jinja2
```
#### macOS Sierra with [Homebrew](https://brew.sh/)
``` sh
brew install cmake mbedtls
@@ -172,11 +191,18 @@ To start the demo client:
**NOTE**: When establishing a DTLS connection, the URI MUST use "coaps://". In NoSec mode (default), the URI MUST use "<coap://>".
Running tests on Linux:
Running tests on Ubuntu 16.04:
``` sh
./devconfig && make check
```
Running tests on CentOS 7:
``` sh
# NOTE: clang-3.4 static analyzer (default version for CentOS) gives false
# positives. --without-analysis flag disables static analysis.
./devconfig --without-analysis -DPython_ADDITIONAL_VERSIONS=3.5 && make check
```
Running tests on macOS Sierra:
``` sh
# If the scan-build script is located somewhere else, then you need to
@@ -1,4 +1,4 @@
# Copyright 2017 AVSystem <avsystem@avsystem.com>
# Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
# Copyright 2017 AVSystem <avsystem@avsystem.com>
# Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
# Copyright 2017 AVSystem <avsystem@avsystem.com>
# Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -1,4 +1,4 @@
# Copyright 2017 AVSystem <avsystem@avsystem.com>
# Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
1 compat

This file was deleted.

Oops, something went wrong.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright 2017 AVSystem <avsystem@avsystem.com>
# Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -1,4 +1,4 @@
# Copyright 2017 AVSystem <avsystem@avsystem.com>
# Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
#include <ctype.h>
#include <string.h>
#include <inttypes.h>
#include <anjay/attr_storage.h>
#include <anjay/security.h>
@@ -314,10 +315,10 @@ static void cmd_set_attrs(anjay_demo_t *demo, const char *args_string) {
const char *gt = strstr(args, "gt=");
const char *st = strstr(args, "st=");
if (pmin) {
(void) sscanf(pmin, "pmin=%ld", &attrs.common.min_period);
(void) sscanf(pmin, "pmin=%" PRId32, &attrs.common.min_period);
}
if (pmax) {
(void) sscanf(pmax, "pmax=%ld", &attrs.common.max_period);
(void) sscanf(pmax, "pmax=%" PRId32, &attrs.common.max_period);
}
if (lt) {
(void) sscanf(lt, "lt=%lf", &attrs.less_than);
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
* Copyright 2017-2018 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Oops, something went wrong.

0 comments on commit 3d67aab

Please sign in to comment.