Skip to content

Commit

Permalink
set memory alignment of shm cache structs to 64 bytes
Browse files Browse the repository at this point in the history
see #1067; should fix running on Raspberry PI / ARMv7 32 bits (arm32v7);
bump to 2.4.15rc13

Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Dec 28, 2023
1 parent 3f53468 commit c97f306
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
12/28/2023
- set memory alignment of shm cache structs to 64 bytes; see #1067
should fix running on Raspberry PI / ARMv7 32 bits (arm32v7)
- bump to 2.4.15rc13

12/22/2023
- generate 20-byte lowercase hexadecimal session identifiers

Expand Down
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([mod_auth_openidc],[2.4.15rc12],[[email protected]])
AC_INIT([mod_auth_openidc],[2.4.15rc13],[[email protected]])

AC_SUBST(NAMEVER, AC_PACKAGE_TARNAME()-AC_PACKAGE_VERSION())

Expand Down Expand Up @@ -154,6 +154,11 @@ AM_CONDITIONAL(HAVE_LIBHIREDIS, [test x"$HAVE_LIBHIREDIS" = "x1"])
AC_SUBST(HIREDIS_CFLAGS)
AC_SUBST(HIREDIS_LIBS)

PKG_CHECK_MODULES([HIREDIS_SSL], [hiredis_ssl], [HAVE_LIBHIREDIS_SSL=1], [HAVE_LIBHIREDIS_SSL=0])
AM_CONDITIONAL(HAVE_LIBHIREDIS_SSL, [test x"$HAVE_LIBHIREDIS_SSL" = "x1"])
AC_SUBST(HIREDIS_SSL_CFLAGS)
AC_SUBST(HIREDIS_SSL_LIBS)

# JQ
HAVE_LIBJQ=0

Expand Down
3 changes: 2 additions & 1 deletion src/cache/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ typedef struct oidc_cache_cfg_shm_t {
#define OIDC_CACHE_SHM_KEY_MAX 512

/* represents one (fixed size) cache entry, cq. name/value string pair */
typedef struct oidc_cache_shm_entry_t {
typedef __attribute__((aligned(64))) struct oidc_cache_shm_entry_t {

/* name of the cache entry */
char section_key[OIDC_CACHE_SHM_KEY_MAX];
/* last (read) access timestamp */
Expand Down

0 comments on commit c97f306

Please sign in to comment.