Backport uadk engine patch(24-32) from linaro. Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com> (cherry picked from commit 9a48324e3f545ee8f8485847f3fecf252682eb6a)
56 lines
1.7 KiB
Diff
56 lines
1.7 KiB
Diff
From a19b11343facb6ff073cb01bf3583c8bf6cbb009 Mon Sep 17 00:00:00 2001
|
|
From: Weili Qian <qianweili@huawei.com>
|
|
Date: Thu, 3 Mar 2022 03:08:45 +0000
|
|
Subject: [PATCH 29/31] ecc: cleanup print log
|
|
|
|
print with '\n'
|
|
|
|
Signed-off-by: Weili Qian <qianweili@huawei.com>
|
|
---
|
|
src/uadk_pkey.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/uadk_pkey.c b/src/uadk_pkey.c
|
|
index ceb7a8f..216ccc3 100644
|
|
--- a/src/uadk_pkey.c
|
|
+++ b/src/uadk_pkey.c
|
|
@@ -572,7 +572,7 @@ static int get_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth,
|
|
case EVP_PKEY_SM2:
|
|
ret = uadk_sm2_create_pmeth(&pkey_meth);
|
|
if (!ret) {
|
|
- fprintf(stderr, "failed to register sm2 pmeth");
|
|
+ fprintf(stderr, "failed to register sm2 pmeth.\n");
|
|
return 0;
|
|
}
|
|
*pmeth = pkey_meth.sm2;
|
|
@@ -580,7 +580,7 @@ static int get_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth,
|
|
case EVP_PKEY_EC:
|
|
ret = uadk_ec_create_pmeth(&pkey_meth);
|
|
if (!ret) {
|
|
- fprintf(stderr, "failed to register ec pmeth");
|
|
+ fprintf(stderr, "failed to register ec pmeth.\n");
|
|
return 0;
|
|
}
|
|
*pmeth = pkey_meth.ec;
|
|
@@ -588,7 +588,7 @@ static int get_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth,
|
|
case EVP_PKEY_X448:
|
|
ret = uadk_x448_create_pmeth(&pkey_meth);
|
|
if (!ret) {
|
|
- fprintf(stderr, "failed to register x448 pmeth");
|
|
+ fprintf(stderr, "failed to register x448 pmeth.\n");
|
|
return 0;
|
|
}
|
|
*pmeth = pkey_meth.x448;
|
|
@@ -596,7 +596,7 @@ static int get_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth,
|
|
case EVP_PKEY_X25519:
|
|
ret = uadk_x25519_create_pmeth(&pkey_meth);
|
|
if (!ret) {
|
|
- fprintf(stderr, "failed to register x25519 pmeth");
|
|
+ fprintf(stderr, "failed to register x25519 pmeth.\n");
|
|
return 0;
|
|
}
|
|
*pmeth = pkey_meth.x25519;
|
|
--
|
|
2.24.4
|
|
|