mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Fix test/asn1_encode_test.c to not use ASN1_FBOOLEAN
ASN1_FBOOLEAN is designed to use as a default for optional ASN1 items. This test program used it for non-optional items, which doesn't encode well. Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16036)
This commit is contained in:
parent
4cd4735187
commit
f0f4de4e50
@ -190,7 +190,7 @@ typedef struct {
|
||||
} ASN1_LONG_DATA;
|
||||
|
||||
ASN1_SEQUENCE(ASN1_LONG_DATA) = {
|
||||
ASN1_SIMPLE(ASN1_LONG_DATA, success, ASN1_FBOOLEAN),
|
||||
ASN1_SIMPLE(ASN1_LONG_DATA, success, ASN1_BOOLEAN),
|
||||
ASN1_SIMPLE(ASN1_LONG_DATA, test_long, LONG),
|
||||
ASN1_EXP_OPT(ASN1_LONG_DATA, test_zlong, ZLONG, 0)
|
||||
} static_ASN1_SEQUENCE_END(ASN1_LONG_DATA)
|
||||
@ -280,7 +280,7 @@ typedef struct {
|
||||
} ASN1_INT32_DATA;
|
||||
|
||||
ASN1_SEQUENCE(ASN1_INT32_DATA) = {
|
||||
ASN1_SIMPLE(ASN1_INT32_DATA, success, ASN1_FBOOLEAN),
|
||||
ASN1_SIMPLE(ASN1_INT32_DATA, success, ASN1_BOOLEAN),
|
||||
ASN1_EMBED(ASN1_INT32_DATA, test_int32, INT32),
|
||||
ASN1_EXP_OPT_EMBED(ASN1_INT32_DATA, test_zint32, ZINT32, 0)
|
||||
} static_ASN1_SEQUENCE_END(ASN1_INT32_DATA)
|
||||
@ -328,7 +328,7 @@ typedef struct {
|
||||
} ASN1_UINT32_DATA;
|
||||
|
||||
ASN1_SEQUENCE(ASN1_UINT32_DATA) = {
|
||||
ASN1_SIMPLE(ASN1_UINT32_DATA, success, ASN1_FBOOLEAN),
|
||||
ASN1_SIMPLE(ASN1_UINT32_DATA, success, ASN1_BOOLEAN),
|
||||
ASN1_EMBED(ASN1_UINT32_DATA, test_uint32, UINT32),
|
||||
ASN1_EXP_OPT_EMBED(ASN1_UINT32_DATA, test_zuint32, ZUINT32, 0)
|
||||
} static_ASN1_SEQUENCE_END(ASN1_UINT32_DATA)
|
||||
@ -376,7 +376,7 @@ typedef struct {
|
||||
} ASN1_INT64_DATA;
|
||||
|
||||
ASN1_SEQUENCE(ASN1_INT64_DATA) = {
|
||||
ASN1_SIMPLE(ASN1_INT64_DATA, success, ASN1_FBOOLEAN),
|
||||
ASN1_SIMPLE(ASN1_INT64_DATA, success, ASN1_BOOLEAN),
|
||||
ASN1_EMBED(ASN1_INT64_DATA, test_int64, INT64),
|
||||
ASN1_EXP_OPT_EMBED(ASN1_INT64_DATA, test_zint64, ZINT64, 0)
|
||||
} static_ASN1_SEQUENCE_END(ASN1_INT64_DATA)
|
||||
@ -425,7 +425,7 @@ typedef struct {
|
||||
} ASN1_UINT64_DATA;
|
||||
|
||||
ASN1_SEQUENCE(ASN1_UINT64_DATA) = {
|
||||
ASN1_SIMPLE(ASN1_UINT64_DATA, success, ASN1_FBOOLEAN),
|
||||
ASN1_SIMPLE(ASN1_UINT64_DATA, success, ASN1_BOOLEAN),
|
||||
ASN1_EMBED(ASN1_UINT64_DATA, test_uint64, UINT64),
|
||||
ASN1_EXP_OPT_EMBED(ASN1_UINT64_DATA, test_zuint64, ZUINT64, 0)
|
||||
} static_ASN1_SEQUENCE_END(ASN1_UINT64_DATA)
|
||||
|
Loading…
Reference in New Issue
Block a user