Skip to content

Commit 257a85d

Browse files
committed
Anjay-zephyr 3.10.0
Improvements: - Updated Anjay version to 3.10.0 and the licenses NOTICE file
1 parent 5e381ae commit 257a85d

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 3.10.0 (May 29th, 2025)
4+
5+
### Improvements
6+
- Updated Anjay version to 3.10.0 and the licenses NOTICE file
7+
8+
### Bugfixes
9+
- Fixed an issue with 32-byte long PSK which could be set, but not read from settings
10+
311
## 3.9.0 (February 28th, 2025)
412

513
### Features

Kconfig.anjay_zephyr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ config ANJAY_ZEPHYR_MODEL_NUMBER
2424

2525
config ANJAY_ZEPHYR_VERSION
2626
string "Client Version"
27-
default "3.9.0"
27+
default "3.10.0"
2828

2929
config ANJAY_ZEPHYR_AUTOGENERATE_ENDPOINT_NAME
3030
bool "Autogenerate endpoint name"

config/avsystem/commons/avs_commons_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ void anjay_zephyr_mbedtls_entropy_init__(struct mbedtls_entropy_context *ctx);
940940
* 64-bit data types such as <c>int64_t</c> and <c>double</c>) before doing so.
941941
*/
942942
/* #undef AVS_COMMONS_UTILS_WITH_ALIGNFIX_ALLOCATOR */
943+
943944
/**@}*/
944945

945946
#endif /* AVS_COMMONS_CONFIG_H */

deps/anjay

Submodule anjay updated 782 files

src/config.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,12 +810,19 @@ int anjay_zephyr_config_get_psk_identity(char *buf, size_t buf_capacity) {
810810
int anjay_zephyr_config_get_psk(char *buf,
811811
size_t buf_capacity,
812812
size_t *psk_len) {
813-
int ret = 0;
813+
if (!buf || !app_config.psk.value || buf_capacity < app_config.psk.length) {
814+
LOG_WRN("Getting configuration from settings failed");
815+
return -1;
816+
}
817+
814818
SYNCHRONIZED(config_mutex) {
815-
ret = get_config(app_config.psk.value, buf, buf_capacity);
819+
// PSK is stored without NULL termination
820+
// (app_config.psk.null_terminated = false), so we can't use
821+
// get_config() as it bases on snprintf()
822+
memcpy(buf, app_config.psk.value, app_config.psk.length);
816823
*psk_len = app_config.psk.length;
817824
}
818-
return ret;
825+
return 0;
819826
}
820827

821828
bool anjay_zephyr_config_is_bootstrap(void) {

0 commit comments

Comments
 (0)