mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
Don't use written parameter of macro directly
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
parent
2d64fc45e0
commit
eb807b84d0
1 changed files with 2 additions and 1 deletions
|
|
@ -723,9 +723,10 @@ typedef struct ltc_asn1_list_ {
|
|||
#define LTC_SET_ASN1_CUSTOM_PRIMITIVE(list, index, Class, Tag, Type, Data, Size) \
|
||||
do { \
|
||||
int LTC_TMPVAR(SACP) = (index); \
|
||||
ltc_asn1_list *LTC_TMPVAR(SACP_list) = (list); \
|
||||
LTC_SET_ASN1(list, LTC_TMPVAR(SACP), LTC_ASN1_CUSTOM_TYPE, Data, Size); \
|
||||
LTC_SET_ASN1_IDENTIFIER(list, LTC_TMPVAR(SACP), Class, LTC_ASN1_PC_PRIMITIVE, Tag); \
|
||||
list[LTC_TMPVAR(SACP)].used = (int)(Type); \
|
||||
LTC_TMPVAR(SACP_list)[LTC_TMPVAR(SACP)].used = (int)(Type); \
|
||||
} while (0)
|
||||
|
||||
extern const char* der_asn1_class_to_string_map[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue