Commit 35751270 authored by Jannik Hoelling's avatar Jannik Hoelling
Browse files

mbedtls exitcodes

parent 714ceac9
......@@ -196,8 +196,13 @@ cleanup:
if (ret != 0) {
char error_buf[100];
mbedtls_strerror(ret, error_buf, 100);
if (strstr(error_buf, "X509 - Certificate verification failed") != NULL) {
ret = 134;
} else if (strstr(error_buf, "Processing of the ServerHello handshake message failed") != NULL) {
ret = 120;
}
mbedtls_printf("Last error was: %d - %s\n", ret, error_buf);
return -1;
return ret;
}
return 0;
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment