Latest update.
This commit is contained in:
+7
-12
@@ -3145,17 +3145,6 @@ top:
|
||||
if (!TEST_ptr(key = OPENSSL_malloc(sizeof(*key))))
|
||||
return 0;
|
||||
key->name = take_value(pp);
|
||||
|
||||
/* Hack to detect SM2 keys */
|
||||
if(pkey != NULL && strstr(key->name, "SM2") != NULL) {
|
||||
#ifdef OPENSSL_NO_SM2
|
||||
EVP_PKEY_free(pkey);
|
||||
pkey = NULL;
|
||||
#else
|
||||
EVP_PKEY_set_alias_type(pkey, EVP_PKEY_SM2);
|
||||
#endif
|
||||
}
|
||||
|
||||
key->key = pkey;
|
||||
key->next = *klist;
|
||||
*klist = key;
|
||||
@@ -3258,8 +3247,14 @@ OPT_TEST_DECLARE_USAGE("file...\n")
|
||||
|
||||
int setup_tests(void)
|
||||
{
|
||||
size_t n = test_get_argument_count();
|
||||
size_t n;
|
||||
|
||||
if (!test_skip_common_options()) {
|
||||
TEST_error("Error parsing test options\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
n = test_get_argument_count();
|
||||
if (n == 0)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user