Skip to content

Commit e7e1292

Browse files
committed
Don't attempt to pack structures with pointers - should fix aarch64 issues
* These structures shouldn't be accessed by offsets anywhere in code anyway
1 parent 26b81b2 commit e7e1292

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/atcacert/atcacert_def.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ typedef struct ATCA_PACKED atcacert_cert_element_s
172172
* If any of the standard certificate elements (std_cert_elements) are not a part of the certificate
173173
* definition, set their count to 0 to indicate their absence.
174174
*/
175-
typedef struct ATCA_PACKED atcacert_def_s
175+
typedef struct atcacert_def_s
176176
{
177177
atcacert_cert_type_t type; //!< Certificate type.
178178
uint8_t template_id; //!< ID for the this certificate definition (4-bit value).
@@ -198,7 +198,7 @@ typedef struct ATCA_PACKED atcacert_def_s
198198
* Tracks the state of a certificate as it's being rebuilt from device information.
199199
*/
200200

201-
typedef struct ATCA_PACKED atcacert_build_state_s
201+
typedef struct atcacert_build_state_s
202202
{
203203
const atcacert_def_t* cert_def; //!< Certificate definition for the certificate being rebuilt.
204204
uint8_t* cert; //!< Buffer to contain the rebuilt certificate.

python/cryptoauthlib/atcacert.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ class atcacert_def_t(AtcaStructure):
221221
"""
222222
CTypes mirror of atcacert_def_t from atcacert_def.h
223223
"""
224-
_pack_ = 1
225-
226224
def __init__(self, *args, **kwargs):
227225
if kwargs is not None:
228226
_atcacert_convert_enum(kwargs, 'type', atcacert_cert_type_t)

0 commit comments

Comments
 (0)