projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move SM2 algos to SM2 specific PKEY method
[openssl.git]
/
test
/
evp_test.c
diff --git
a/test/evp_test.c
b/test/evp_test.c
index e2274d96321b9ced48c5c44f034c9dbb39d5654d..97239f22603c5f7be9cbc2a993b0558284f5beaf 100644
(file)
--- a/
test/evp_test.c
+++ b/
test/evp_test.c
@@
-2530,6
+2530,11
@@
top:
if (!TEST_ptr(key = OPENSSL_malloc(sizeof(*key))))
return 0;
key->name = take_value(pp);
if (!TEST_ptr(key = OPENSSL_malloc(sizeof(*key))))
return 0;
key->name = take_value(pp);
+
+ /* Hack to detect SM2 keys */
+ if(strstr(key->name, "SM2"))
+ EVP_PKEY_set_alias_type(pkey, EVP_PKEY_SM2);
+
key->key = pkey;
key->next = *klist;
*klist = key;
key->key = pkey;
key->next = *klist;
*klist = key;