diff options
Diffstat (limited to 'test/cmp_protect_test.c')
| -rw-r--r-- | test/cmp_protect_test.c | 219 |
1 files changed, 106 insertions, 113 deletions
diff --git a/test/cmp_protect_test.c b/test/cmp_protect_test.c index 09bf2ec17faf..510ca9648c66 100644 --- a/test/cmp_protect_test.c +++ b/test/cmp_protect_test.c @@ -71,12 +71,11 @@ static X509 *cert = NULL; static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; static OSSL_CMP_MSG *ir_unprotected, *ir_protected; static X509 *endentity1 = NULL, *endentity2 = NULL, - *root = NULL, *intermediate = NULL; + *root = NULL, *intermediate = NULL; static int execute_calc_protection_fails_test(CMP_PROTECT_TEST_FIXTURE *fixture) { - ASN1_BIT_STRING *protection = - ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); + ASN1_BIT_STRING *protection = ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); int res = TEST_ptr_null(protection); ASN1_BIT_STRING_free(protection); @@ -85,11 +84,11 @@ static int execute_calc_protection_fails_test(CMP_PROTECT_TEST_FIXTURE *fixture) static int execute_calc_protection_pbmac_test(CMP_PROTECT_TEST_FIXTURE *fixture) { - ASN1_BIT_STRING *protection = - ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); + ASN1_BIT_STRING *protection = ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); int res = TEST_ptr(protection) - && TEST_true(ASN1_STRING_cmp(protection, - fixture->msg->protection) == 0); + && TEST_true(ASN1_STRING_cmp(protection, + fixture->msg->protection) + == 0); ASN1_BIT_STRING_free(protection); return res; @@ -100,8 +99,8 @@ static int execute_calc_protection_pbmac_test(CMP_PROTECT_TEST_FIXTURE *fixture) * but without the need for a OSSL_CMP_CTX or a X509 certificate */ static int verify_signature(OSSL_CMP_MSG *msg, - ASN1_BIT_STRING *protection, - EVP_PKEY *pkey, EVP_MD *digest) + ASN1_BIT_STRING *protection, + EVP_PKEY *pkey, EVP_MD *digest) { OSSL_CMP_PROTECTEDPART prot_part; unsigned char *prot_part_der = NULL; @@ -112,13 +111,13 @@ static int verify_signature(OSSL_CMP_MSG *msg, prot_part.header = OSSL_CMP_MSG_get0_header(msg); prot_part.body = msg->body; len = i2d_OSSL_CMP_PROTECTEDPART(&prot_part, &prot_part_der); - res = - TEST_int_ge(len, 0) + res = TEST_int_ge(len, 0) && TEST_ptr(ctx = EVP_MD_CTX_new()) && TEST_true(EVP_DigestVerifyInit(ctx, NULL, digest, NULL, pkey)) && TEST_int_eq(EVP_DigestVerify(ctx, protection->data, - protection->length, - prot_part_der, len), 1); + protection->length, + prot_part_der, len), + 1); /* cleanup */ EVP_MD_CTX_free(ctx); OPENSSL_free(prot_part_der); @@ -127,16 +126,16 @@ static int verify_signature(OSSL_CMP_MSG *msg, /* Calls OSSL_CMP_calc_protection and compares and verifies signature */ static int execute_calc_protection_signature_test(CMP_PROTECT_TEST_FIXTURE * - fixture) + fixture) { - ASN1_BIT_STRING *protection = - ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); + ASN1_BIT_STRING *protection = ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); int ret = (TEST_ptr(protection) - && TEST_true(ASN1_STRING_cmp(protection, - fixture->msg->protection) == 0) - && TEST_true(verify_signature(fixture->msg, protection, - fixture->pubkey, - fixture->cmp_ctx->digest))); + && TEST_true(ASN1_STRING_cmp(protection, + fixture->msg->protection) + == 0) + && TEST_true(verify_signature(fixture->msg, protection, + fixture->pubkey, + fixture->cmp_ctx->digest))); ASN1_BIT_STRING_free(protection); return ret; @@ -146,8 +145,7 @@ static int test_cmp_calc_protection_no_key_no_secret(void) { SETUP_TEST_FIXTURE(CMP_PROTECT_TEST_FIXTURE, set_up); if (!TEST_ptr(fixture->msg = load_pkimsg(ir_unprotected_f, libctx)) - || !TEST_ptr(fixture->msg->header->protectionAlg = - X509_ALGOR_new() /* no specific alg needed here */)) { + || !TEST_ptr(fixture->msg->header->protectionAlg = X509_ALGOR_new() /* no specific alg needed here */)) { tear_down(fixture); fixture = NULL; } @@ -161,7 +159,7 @@ static int test_cmp_calc_protection_pkey(void) SETUP_TEST_FIXTURE(CMP_PROTECT_TEST_FIXTURE, set_up); fixture->pubkey = loadedpubkey; if (!TEST_true(OSSL_CMP_CTX_set1_pkey(fixture->cmp_ctx, loadedprivkey)) - || !TEST_ptr(fixture->msg = load_pkimsg(ir_protected_f, libctx))) { + || !TEST_ptr(fixture->msg = load_pkimsg(ir_protected_f, libctx))) { tear_down(fixture); fixture = NULL; } @@ -175,8 +173,8 @@ static int test_cmp_calc_protection_pbmac(void) SETUP_TEST_FIXTURE(CMP_PROTECT_TEST_FIXTURE, set_up); if (!TEST_true(OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, - sec_insta, sizeof(sec_insta))) - || !TEST_ptr(fixture->msg = load_pkimsg(ip_PBM_f, libctx))) { + sec_insta, sizeof(sec_insta))) + || !TEST_ptr(fixture->msg = load_pkimsg(ip_PBM_f, libctx))) { tear_down(fixture); fixture = NULL; } @@ -186,7 +184,7 @@ static int test_cmp_calc_protection_pbmac(void) static int execute_MSG_protect_test(CMP_PROTECT_TEST_FIXTURE *fixture) { return TEST_int_eq(fixture->expected, - ossl_cmp_msg_protect(fixture->cmp_ctx, fixture->msg)); + ossl_cmp_msg_protect(fixture->cmp_ctx, fixture->msg)); } #define SET_OPT_UNPROTECTED_SEND(ctx, val) \ @@ -197,7 +195,7 @@ static int test_MSG_protect_unprotected_request(void) fixture->expected = 1; if (!TEST_ptr(fixture->msg = OSSL_CMP_MSG_dup(ir_unprotected)) - || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 1))) { + || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 1))) { tear_down(fixture); fixture = NULL; } @@ -213,16 +211,16 @@ static int test_MSG_protect_with_msg_sig_alg_protection_plus_rsa_key(void) fixture->expected = 1; if (!TEST_ptr(fixture->msg = OSSL_CMP_MSG_dup(ir_unprotected)) - || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0)) - /* - * Use half of the 16 bytes of random input - * for each reference and secret value - */ - || !TEST_true(OSSL_CMP_CTX_set1_referenceValue(fixture->cmp_ctx, - rand_data, size)) - || !TEST_true(OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, - rand_data + size, - size))) { + || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0)) + /* + * Use half of the 16 bytes of random input + * for each reference and secret value + */ + || !TEST_true(OSSL_CMP_CTX_set1_referenceValue(fixture->cmp_ctx, + rand_data, size)) + || !TEST_true(OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, + rand_data + size, + size))) { tear_down(fixture); fixture = NULL; } @@ -235,11 +233,10 @@ static int test_MSG_protect_with_certificate_and_key(void) SETUP_TEST_FIXTURE(CMP_PROTECT_TEST_FIXTURE, set_up); fixture->expected = 1; - if (!TEST_ptr(fixture->msg = - OSSL_CMP_MSG_dup(ir_unprotected)) - || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0)) - || !TEST_true(OSSL_CMP_CTX_set1_pkey(fixture->cmp_ctx, loadedkey)) - || !TEST_true(OSSL_CMP_CTX_set1_cert(fixture->cmp_ctx, cert))) { + if (!TEST_ptr(fixture->msg = OSSL_CMP_MSG_dup(ir_unprotected)) + || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0)) + || !TEST_true(OSSL_CMP_CTX_set1_pkey(fixture->cmp_ctx, loadedkey)) + || !TEST_true(OSSL_CMP_CTX_set1_cert(fixture->cmp_ctx, cert))) { tear_down(fixture); fixture = NULL; } @@ -254,10 +251,9 @@ static int test_MSG_protect_certificate_based_without_cert(void) SETUP_TEST_FIXTURE(CMP_PROTECT_TEST_FIXTURE, set_up); ctx = fixture->cmp_ctx; fixture->expected = 0; - if (!TEST_ptr(fixture->msg = - OSSL_CMP_MSG_dup(ir_unprotected)) - || !TEST_true(SET_OPT_UNPROTECTED_SEND(ctx, 0)) - || !TEST_true(OSSL_CMP_CTX_set0_newPkey(ctx, 1, loadedkey))) { + if (!TEST_ptr(fixture->msg = OSSL_CMP_MSG_dup(ir_unprotected)) + || !TEST_true(SET_OPT_UNPROTECTED_SEND(ctx, 0)) + || !TEST_true(OSSL_CMP_CTX_set0_newPkey(ctx, 1, loadedkey))) { tear_down(fixture); fixture = NULL; } @@ -271,7 +267,7 @@ static int test_MSG_protect_no_key_no_secret(void) SETUP_TEST_FIXTURE(CMP_PROTECT_TEST_FIXTURE, set_up); fixture->expected = 0; if (!TEST_ptr(fixture->msg = OSSL_CMP_MSG_dup(ir_unprotected)) - || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0))) { + || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0))) { tear_down(fixture); fixture = NULL; } @@ -287,13 +283,13 @@ static int test_MSG_protect_pbmac_no_sender(int with_ref) SETUP_TEST_FIXTURE(CMP_PROTECT_TEST_FIXTURE, set_up); fixture->expected = with_ref; if (!TEST_ptr(fixture->msg = OSSL_CMP_MSG_dup(ir_unprotected)) - || !SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0) - || !ossl_cmp_hdr_set1_sender(fixture->msg->header, NULL) - || !OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, - secret, sizeof(secret)) - || (!OSSL_CMP_CTX_set1_referenceValue(fixture->cmp_ctx, - with_ref ? ref : NULL, - sizeof(ref)))) { + || !SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 0) + || !ossl_cmp_hdr_set1_sender(fixture->msg->header, NULL) + || !OSSL_CMP_CTX_set1_secretValue(fixture->cmp_ctx, + secret, sizeof(secret)) + || (!OSSL_CMP_CTX_set1_referenceValue(fixture->cmp_ctx, + with_ref ? ref : NULL, + sizeof(ref)))) { tear_down(fixture); fixture = NULL; } @@ -314,7 +310,7 @@ static int test_MSG_protect_pbmac_no_sender_no_ref(void) static int execute_MSG_add_extraCerts_test(CMP_PROTECT_TEST_FIXTURE *fixture) { return TEST_true(ossl_cmp_msg_add_extraCerts(fixture->cmp_ctx, - fixture->msg)); + fixture->msg)); } static int test_MSG_add_extraCerts(void) @@ -335,9 +331,8 @@ static int execute_cmp_build_cert_chain_test(CMP_PROTECT_TEST_FIXTURE *fixture) int ret = 0; OSSL_CMP_CTX *ctx = fixture->cmp_ctx; X509_STORE *store; - STACK_OF(X509) *chain = - X509_build_chain(fixture->cert, fixture->certs, NULL, - fixture->with_ss, ctx->libctx, ctx->propq); + STACK_OF(X509) *chain = X509_build_chain(fixture->cert, fixture->certs, NULL, + fixture->with_ss, ctx->libctx, ctx->propq); if (TEST_ptr(chain)) { /* Check whether chain built is equal to the expected one */ @@ -348,11 +343,11 @@ static int execute_cmp_build_cert_chain_test(CMP_PROTECT_TEST_FIXTURE *fixture) return 0; if (TEST_ptr(store = X509_STORE_new()) - && TEST_true(X509_STORE_add_cert(store, root))) { + && TEST_true(X509_STORE_add_cert(store, root))) { X509_VERIFY_PARAM_set_flags(X509_STORE_get0_param(store), - X509_V_FLAG_NO_CHECK_TIME); + X509_V_FLAG_NO_CHECK_TIME); chain = X509_build_chain(fixture->cert, fixture->certs, store, - fixture->with_ss, ctx->libctx, ctx->propq); + fixture->with_ss, ctx->libctx, ctx->propq); ret = TEST_int_eq(fixture->expected, chain != NULL); if (ret && chain != NULL) { /* Check whether chain built is equal to the expected one */ @@ -371,12 +366,12 @@ static int test_cmp_build_cert_chain(void) fixture->with_ss = 0; fixture->cert = endentity2; if (!TEST_ptr(fixture->certs = sk_X509_new_null()) - || !TEST_ptr(fixture->chain = sk_X509_new_null()) - || !TEST_true(sk_X509_push(fixture->certs, endentity1)) - || !TEST_true(sk_X509_push(fixture->certs, root)) - || !TEST_true(sk_X509_push(fixture->certs, intermediate)) - || !TEST_true(sk_X509_push(fixture->chain, endentity2)) - || !TEST_true(sk_X509_push(fixture->chain, intermediate))) { + || !TEST_ptr(fixture->chain = sk_X509_new_null()) + || !TEST_true(sk_X509_push(fixture->certs, endentity1)) + || !TEST_true(sk_X509_push(fixture->certs, root)) + || !TEST_true(sk_X509_push(fixture->certs, intermediate)) + || !TEST_true(sk_X509_push(fixture->chain, endentity2)) + || !TEST_true(sk_X509_push(fixture->chain, intermediate))) { tear_down(fixture); fixture = NULL; } @@ -397,10 +392,10 @@ static int test_cmp_build_cert_chain_missing_intermediate(void) fixture->with_ss = 0; fixture->cert = endentity2; if (!TEST_ptr(fixture->certs = sk_X509_new_null()) - || !TEST_ptr(fixture->chain = sk_X509_new_null()) - || !TEST_true(sk_X509_push(fixture->certs, endentity1)) - || !TEST_true(sk_X509_push(fixture->certs, root)) - || !TEST_true(sk_X509_push(fixture->chain, endentity2))) { + || !TEST_ptr(fixture->chain = sk_X509_new_null()) + || !TEST_true(sk_X509_push(fixture->certs, endentity1)) + || !TEST_true(sk_X509_push(fixture->certs, root)) + || !TEST_true(sk_X509_push(fixture->chain, endentity2))) { tear_down(fixture); fixture = NULL; } @@ -415,11 +410,11 @@ static int test_cmp_build_cert_chain_no_root(void) fixture->with_ss = 0; fixture->cert = endentity2; if (!TEST_ptr(fixture->certs = sk_X509_new_null()) - || !TEST_ptr(fixture->chain = sk_X509_new_null()) - || !TEST_true(sk_X509_push(fixture->certs, endentity1)) - || !TEST_true(sk_X509_push(fixture->certs, intermediate)) - || !TEST_true(sk_X509_push(fixture->chain, endentity2)) - || !TEST_true(sk_X509_push(fixture->chain, intermediate))) { + || !TEST_ptr(fixture->chain = sk_X509_new_null()) + || !TEST_true(sk_X509_push(fixture->certs, endentity1)) + || !TEST_true(sk_X509_push(fixture->certs, intermediate)) + || !TEST_true(sk_X509_push(fixture->chain, endentity2)) + || !TEST_true(sk_X509_push(fixture->chain, intermediate))) { tear_down(fixture); fixture = NULL; } @@ -434,9 +429,9 @@ static int test_cmp_build_cert_chain_only_root(void) fixture->with_ss = 0; /* still chain must include the only cert (root) */ fixture->cert = root; if (!TEST_ptr(fixture->certs = sk_X509_new_null()) - || !TEST_ptr(fixture->chain = sk_X509_new_null()) - || !TEST_true(sk_X509_push(fixture->certs, root)) - || !TEST_true(sk_X509_push(fixture->chain, root))) { + || !TEST_ptr(fixture->chain = sk_X509_new_null()) + || !TEST_true(sk_X509_push(fixture->certs, root)) + || !TEST_true(sk_X509_push(fixture->chain, root))) { tear_down(fixture); fixture = NULL; } @@ -451,8 +446,8 @@ static int test_cmp_build_cert_chain_no_certs(void) fixture->with_ss = 0; fixture->cert = endentity2; if (!TEST_ptr(fixture->certs = sk_X509_new_null()) - || !TEST_ptr(fixture->chain = sk_X509_new_null()) - || !TEST_true(sk_X509_push(fixture->chain, endentity2))) { + || !TEST_ptr(fixture->chain = sk_X509_new_null()) + || !TEST_true(sk_X509_push(fixture->chain, endentity2))) { tear_down(fixture); fixture = NULL; } @@ -468,18 +463,17 @@ static int execute_X509_STORE_test(CMP_PROTECT_TEST_FIXTURE *fixture) int res = 0; if (!TEST_true(ossl_cmp_X509_STORE_add1_certs(store, - fixture->certs, - fixture->callback_arg))) + fixture->certs, + fixture->callback_arg))) goto err; sk = X509_STORE_get1_all_certs(store); if (!TEST_int_eq(0, STACK_OF_X509_cmp(sk, fixture->chain))) goto err; res = 1; - err: +err: X509_STORE_free(store); sk_X509_pop_free(sk, X509_free); return res; - } static int test_X509_STORE(void) @@ -487,11 +481,11 @@ static int test_X509_STORE(void) SETUP_TEST_FIXTURE(CMP_PROTECT_TEST_FIXTURE, set_up); fixture->callback_arg = 0; /* self-issued allowed */ if (!TEST_ptr(fixture->certs = sk_X509_new_null()) - || !sk_X509_push(fixture->certs, endentity1) - || !sk_X509_push(fixture->certs, endentity2) - || !sk_X509_push(fixture->certs, root) - || !sk_X509_push(fixture->certs, intermediate) - || !TEST_ptr(fixture->chain = sk_X509_dup(fixture->certs))) { + || !sk_X509_push(fixture->certs, endentity1) + || !sk_X509_push(fixture->certs, endentity2) + || !sk_X509_push(fixture->certs, root) + || !sk_X509_push(fixture->certs, intermediate) + || !TEST_ptr(fixture->chain = sk_X509_dup(fixture->certs))) { tear_down(fixture); fixture = NULL; } @@ -506,10 +500,10 @@ static int test_X509_STORE_only_self_issued(void) fixture->chain = sk_X509_new_null(); fixture->callback_arg = 1; /* only self-issued */ if (!TEST_true(sk_X509_push(fixture->certs, endentity1)) - || !TEST_true(sk_X509_push(fixture->certs, endentity2)) - || !TEST_true(sk_X509_push(fixture->certs, root)) - || !TEST_true(sk_X509_push(fixture->certs, intermediate)) - || !TEST_true(sk_X509_push(fixture->chain, root))) { + || !TEST_true(sk_X509_push(fixture->certs, endentity2)) + || !TEST_true(sk_X509_push(fixture->certs, root)) + || !TEST_true(sk_X509_push(fixture->certs, intermediate)) + || !TEST_true(sk_X509_push(fixture->chain, root))) { tear_down(fixture); fixture = NULL; } @@ -517,7 +511,6 @@ static int test_X509_STORE_only_self_issued(void) return result; } - void cleanup_tests(void) { EVP_PKEY_free(loadedprivkey); @@ -535,9 +528,9 @@ void cleanup_tests(void) OSSL_LIB_CTX_free(libctx); } -#define USAGE "server.pem IR_protected.der IR_unprotected.der IP_PBM.der " \ - "server.crt server.pem EndEntity1.crt EndEntity2.crt Root_CA.crt " \ - "Intermediate_CA.crt module_name [module_conf_file]\n" +#define USAGE "server.pem IR_protected.der IR_unprotected.der IP_PBM.der " \ + "server.crt server.pem EndEntity1.crt EndEntity2.crt Root_CA.crt " \ + "Intermediate_CA.crt module_name [module_conf_file]\n" OPT_TEST_DECLARE_USAGE(USAGE) int setup_tests(void) @@ -557,15 +550,15 @@ int setup_tests(void) RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); if (!TEST_ptr(server_f = test_get_argument(0)) - || !TEST_ptr(ir_protected_f = test_get_argument(1)) - || !TEST_ptr(ir_unprotected_f = test_get_argument(2)) - || !TEST_ptr(ip_PBM_f = test_get_argument(3)) - || !TEST_ptr(server_cert_f = test_get_argument(4)) - || !TEST_ptr(server_key_f = test_get_argument(5)) - || !TEST_ptr(endentity1_f = test_get_argument(6)) - || !TEST_ptr(endentity2_f = test_get_argument(7)) - || !TEST_ptr(root_f = test_get_argument(8)) - || !TEST_ptr(intermediate_f = test_get_argument(9))) { + || !TEST_ptr(ir_protected_f = test_get_argument(1)) + || !TEST_ptr(ir_unprotected_f = test_get_argument(2)) + || !TEST_ptr(ip_PBM_f = test_get_argument(3)) + || !TEST_ptr(server_cert_f = test_get_argument(4)) + || !TEST_ptr(server_key_f = test_get_argument(5)) + || !TEST_ptr(endentity1_f = test_get_argument(6)) + || !TEST_ptr(endentity2_f = test_get_argument(7)) + || !TEST_ptr(root_f = test_get_argument(8)) + || !TEST_ptr(intermediate_f = test_get_argument(9))) { TEST_error("usage: cmp_protect_test %s", USAGE); return 0; } @@ -574,7 +567,7 @@ int setup_tests(void) return 0; if (!TEST_ptr(loadedkey = load_pkey_pem(server_key_f, libctx)) - || !TEST_ptr(cert = load_cert_pem(server_cert_f, libctx))) + || !TEST_ptr(cert = load_cert_pem(server_cert_f, libctx))) return 0; if (!TEST_ptr(loadedprivkey = load_pkey_pem(server_f, libctx))) @@ -582,12 +575,12 @@ int setup_tests(void) if (TEST_true(EVP_PKEY_up_ref(loadedprivkey))) loadedpubkey = loadedprivkey; if (!TEST_ptr(ir_protected = load_pkimsg(ir_protected_f, libctx)) - || !TEST_ptr(ir_unprotected = load_pkimsg(ir_unprotected_f, libctx))) + || !TEST_ptr(ir_unprotected = load_pkimsg(ir_unprotected_f, libctx))) return 0; if (!TEST_ptr(endentity1 = load_cert_pem(endentity1_f, libctx)) - || !TEST_ptr(endentity2 = load_cert_pem(endentity2_f, libctx)) - || !TEST_ptr(root = load_cert_pem(root_f, libctx)) - || !TEST_ptr(intermediate = load_cert_pem(intermediate_f, libctx))) + || !TEST_ptr(endentity2 = load_cert_pem(endentity2_f, libctx)) + || !TEST_ptr(root = load_cert_pem(root_f, libctx)) + || !TEST_ptr(intermediate = load_cert_pem(intermediate_f, libctx))) return 0; if (!TEST_int_eq(1, RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH))) return 0; |
