Lines Matching defs:copy_pk
353 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL;
411 if (!TEST_ptr(copy_pk = EVP_PKEY_new())
412 || !TEST_false(EVP_PKEY_copy_parameters(copy_pk, pk)))
414 EVP_PKEY_free(copy_pk);
415 copy_pk = NULL;
442 EVP_PKEY_free(copy_pk);
509 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL;
679 if (!TEST_ptr(copy_pk = EVP_PKEY_new())
680 || !TEST_true(EVP_PKEY_copy_parameters(copy_pk, pk)))
682 EVP_PKEY_free(copy_pk);
683 copy_pk = NULL;
708 EVP_PKEY_free(copy_pk);
920 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL;
1138 if (!TEST_ptr(copy_pk = EVP_PKEY_new())
1140 || !TEST_true(EVP_PKEY_copy_parameters(copy_pk, pk)))
1142 if (!TEST_ptr(ctx2 = EVP_PKEY_CTX_new_from_pkey(NULL, copy_pk, NULL))
1143 /* This should fail because copy_pk has no pubkey */
1148 EVP_PKEY_free(copy_pk);
1149 copy_pk = NULL;
1171 EVP_PKEY_free(copy_pk);
1182 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL;
1285 if (!TEST_ptr(copy_pk = EVP_PKEY_new())
1286 || !TEST_true(EVP_PKEY_copy_parameters(copy_pk, pk)))
1288 EVP_PKEY_free(copy_pk);
1289 copy_pk = NULL;
1378 EVP_PKEY_free(copy_pk);
1454 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL;
1675 if (!TEST_ptr(copy_pk = EVP_PKEY_new())
1676 || !TEST_true(EVP_PKEY_copy_parameters(copy_pk, pk)))
1678 EVP_PKEY_free(copy_pk);
1679 copy_pk = NULL;
1711 EVP_PKEY_free(copy_pk);