summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2020-12-08 15:03:42 +0800
committerfengweihao <[email protected]>2020-12-08 15:03:42 +0800
commitfca0a060462d40899f7cbc6fd5d5dc12be195cff (patch)
tree8fc0f8c8370a94607bc4dd8b20a7586038ebb8c3 /src
parent2d35bd4164fd28e34de23bdde479d94083346e14 (diff)
修改证书标识符错误提示x509_tool
Diffstat (limited to 'src')
-rw-r--r--src/x509.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/x509.c b/src/x509.c
index 0763f68..533542a 100644
--- a/src/x509.c
+++ b/src/x509.c
@@ -774,11 +774,11 @@ int x509_parse_cert(char *certfile, char *host)
switch(xret)
{
case -1:
- printf("x509 chain level is error\n");
- break;
+ printf("Error message : %s\n", "x509 chain level is error");
+ return -1;
case -2:
- printf("x509 key identifier error\n");
- break;
+ printf("Error message : %s\n", "Key identifiers is not match");
+ return -1;
default:
break;
}