mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Removed some printfs in skeleton mode
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@258 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
committed by
Yasuki Ikeuchi
parent
6d0a2c03c3
commit
106a59cf23
12
ssl/loader.c
12
ssl/loader.c
@ -82,7 +82,9 @@ EXP_FUNC int STDCALL ssl_obj_load(SSL_CTX *ssl_ctx, int obj_type,
|
||||
#ifdef CONFIG_SSL_HAS_PEM
|
||||
ret = ssl_obj_PEM_load(ssl_ctx, obj_type, ssl_obj, password);
|
||||
#else
|
||||
#ifdef CONFIG_SSL_FULL_MODE
|
||||
printf("%s", unsupported_str);
|
||||
#endif
|
||||
ret = SSL_ERROR_NOT_SUPPORTED;
|
||||
#endif
|
||||
}
|
||||
@ -93,7 +95,9 @@ error:
|
||||
ssl_obj_free(ssl_obj);
|
||||
return ret;
|
||||
#else
|
||||
#ifdef CONFIG_SSL_FULL_MODE
|
||||
printf("%s", unsupported_str);
|
||||
#endif
|
||||
return SSL_ERROR_NOT_SUPPORTED;
|
||||
#endif /* CONFIG_SSL_SKELETON_MODE */
|
||||
}
|
||||
@ -150,7 +154,9 @@ static int do_obj(SSL_CTX *ssl_ctx, int obj_type,
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
#ifdef CONFIG_SSL_FULL_MODE
|
||||
printf("%s", unsupported_str);
|
||||
#endif
|
||||
ret = SSL_ERROR_NOT_SUPPORTED;
|
||||
break;
|
||||
}
|
||||
@ -223,7 +229,7 @@ static int pem_decrypt(const char *where, const char *end,
|
||||
if (password == NULL || strlen(password) == 0)
|
||||
{
|
||||
#ifdef CONFIG_SSL_FULL_MODE
|
||||
printf("Error: Need a password for this PEM file\n"); TTY_FLUSH();
|
||||
printf("Error: Need a password for this PEM file\n");
|
||||
#endif
|
||||
goto error;
|
||||
}
|
||||
@ -240,7 +246,7 @@ static int pem_decrypt(const char *where, const char *end,
|
||||
else
|
||||
{
|
||||
#ifdef CONFIG_SSL_FULL_MODE
|
||||
printf("Error: Unsupported password cipher\n"); TTY_FLUSH();
|
||||
printf("Error: Unsupported password cipher\n");
|
||||
#endif
|
||||
goto error;
|
||||
}
|
||||
@ -475,7 +481,7 @@ error:
|
||||
#ifdef CONFIG_SSL_FULL_MODE
|
||||
if (ret)
|
||||
{
|
||||
printf("Error: Certificate or key not loaded\n"); TTY_FLUSH();
|
||||
printf("Error: Certificate or key not loaded\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user