Lines Matching refs:cp
478 OSSL_PARAM *cp; in test_param_construct() local
530 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, int_names[j])) in test_param_construct()
531 || !TEST_true(OSSL_PARAM_set_int32(cp, (int32_t)(3 + j))) in test_param_construct()
532 || !TEST_true(OSSL_PARAM_get_int64(cp, &i64)) in test_param_construct()
533 || !TEST_size_t_eq(cp->data_size, cp->return_size) in test_param_construct()
541 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, uint_names[j])) in test_param_construct()
542 || !TEST_true(OSSL_PARAM_set_uint32(cp, (uint32_t)(3 + j))) in test_param_construct()
543 || !TEST_true(OSSL_PARAM_get_uint64(cp, &u64)) in test_param_construct()
544 || !TEST_size_t_eq(cp->data_size, cp->return_size) in test_param_construct()
551 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "double")) in test_param_construct()
552 || !TEST_true(OSSL_PARAM_set_double(cp, 3.14)) in test_param_construct()
553 || !TEST_true(OSSL_PARAM_get_double(cp, &d2)) in test_param_construct()
554 || !TEST_size_t_eq(cp->return_size, sizeof(double)) in test_param_construct()
560 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "utf8str")) in test_param_construct()
561 || !TEST_true(OSSL_PARAM_set_utf8_string(cp, "abcdef")) in test_param_construct()
562 || !TEST_size_t_eq(cp->return_size, sizeof("abcdef") - 1) in test_param_construct()
563 || !TEST_true(OSSL_PARAM_get_utf8_string(cp, &bufp, 0)) in test_param_construct()
570 if (!TEST_true(OSSL_PARAM_get_utf8_string(cp, &bufp, sizeof(buf2))) in test_param_construct()
576 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "utf8ptr")) in test_param_construct()
577 || !TEST_true(OSSL_PARAM_set_utf8_ptr(cp, "tuvwxyz")) in test_param_construct()
578 || !TEST_size_t_eq(cp->return_size, sizeof("tuvwxyz") - 1) in test_param_construct()
579 || !TEST_true(OSSL_PARAM_get_utf8_ptr(cp, (const char **)&bufp2)) in test_param_construct()
584 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "octstr")) in test_param_construct()
585 || !TEST_true(OSSL_PARAM_set_octet_string(cp, "abcdefghi", in test_param_construct()
587 || !TEST_size_t_eq(cp->return_size, sizeof("abcdefghi"))) in test_param_construct()
590 cp->data_size = cp->return_size; in test_param_construct()
591 if (!TEST_true(OSSL_PARAM_get_octet_string(cp, &vpn, 0, &s)) in test_param_construct()
597 if (!TEST_true(OSSL_PARAM_get_octet_string(cp, &vp, sizeof(buf2), &s)) in test_param_construct()
604 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "octptr")) in test_param_construct()
605 || !TEST_true(OSSL_PARAM_set_octet_ptr(cp, &ul, sizeof(ul))) in test_param_construct()
606 || !TEST_size_t_eq(cp->return_size, sizeof(ul)) in test_param_construct()
610 cp->data_size = cp->return_size; in test_param_construct()
611 if (!TEST_true(OSSL_PARAM_get_octet_ptr(cp, (const void **)&vp2, &k)) in test_param_construct()
616 if (!TEST_ptr(cp = OSSL_PARAM_locate(p, "bignum")) in test_param_construct()
618 || !TEST_true(OSSL_PARAM_set_BN(cp, bn)) in test_param_construct()
619 || !TEST_size_t_eq(cp->data_size, cp->return_size)) in test_param_construct()
622 cp->data_size = cp->return_size; in test_param_construct()
623 if (!TEST_true(OSSL_PARAM_get_BN(cp, &bn2)) in test_param_construct()