Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(xmlsec-core) Remove 'const struct' to avoid problems with some compilers #807

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/xmlsec/keysdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ extern "C" {
* Forward declarations
*
****************************************************************************/
typedef const struct _xmlSecKeyDataKlass xmlSecKeyDataKlass,
typedef struct _xmlSecKeyDataKlass xmlSecKeyDataKlass,
*xmlSecKeyDataId;
typedef const struct _xmlSecKeyDataStoreKlass xmlSecKeyDataStoreKlass,
typedef struct _xmlSecKeyDataStoreKlass xmlSecKeyDataStoreKlass,
*xmlSecKeyDataStoreId;
typedef struct _xmlSecKeyDataList xmlSecKeyDataList,
*xmlSecKeyDataListPtr;
Expand Down
4 changes: 2 additions & 2 deletions include/xmlsec/keysmngr.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
extern "C" {
#endif /* __cplusplus */

typedef const struct _xmlSecKeyKlass xmlSecKeyKlass,
typedef struct _xmlSecKeyKlass xmlSecKeyKlass,
*xmlSecKeyId;
typedef const struct _xmlSecKeyStoreKlass xmlSecKeyStoreKlass,
typedef struct _xmlSecKeyStoreKlass xmlSecKeyStoreKlass,
*xmlSecKeyStoreId;

typedef struct _xmlSecKeyX509DataValue xmlSecKeyX509DataValue,
Expand Down
2 changes: 1 addition & 1 deletion include/xmlsec/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
extern "C" {
#endif /* __cplusplus */

typedef const struct _xmlSecPtrListKlass xmlSecPtrListKlass,
typedef struct _xmlSecPtrListKlass xmlSecPtrListKlass,
*xmlSecPtrListId;
typedef struct _xmlSecPtrList xmlSecPtrList,
*xmlSecPtrListPtr;
Expand Down
2 changes: 1 addition & 1 deletion include/xmlsec/transforms.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
extern "C" {
#endif /* __cplusplus */

typedef const struct _xmlSecTransformKlass xmlSecTransformKlass,
typedef struct _xmlSecTransformKlass xmlSecTransformKlass,
*xmlSecTransformId;

/**********************************************************************
Expand Down
4 changes: 2 additions & 2 deletions src/kw_aes_des.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct _xmlSecKWDes3Klass {
void* reserved0;
void* reserved1;
};
typedef const struct _xmlSecKWDes3Klass xmlSecKWDes3Klass,
typedef struct _xmlSecKWDes3Klass xmlSecKWDes3Klass,
*xmlSecKWDes3Id;

#define xmlSecKWDes3CheckId(id) \
Expand Down Expand Up @@ -156,7 +156,7 @@ struct _xmlSecKWAesKlass {
void* reserved0;
void* reserved1;
};
typedef const struct _xmlSecKWAesKlass xmlSecKWAesKlass,
typedef struct _xmlSecKWAesKlass xmlSecKWAesKlass,
*xmlSecKWAesId;

/*********************************************************************
Expand Down
Loading