summaryrefslogtreecommitdiff
path: root/src/x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x509.c')
-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;
}