forked from wolfSSL/wolfssl
NO_MULTIBYTE for multibyte non-supported IDEs
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#define WOLFSSL_CURRTIME_OSTICK /* use OS tich for current_time */
|
#define WOLFSSL_CURRTIME_OSTICK /* use OS tich for current_time */
|
||||||
#define WOLFSSL_GMTIME
|
#define WOLFSSL_GMTIME
|
||||||
|
|
||||||
|
#define NO_MULTIBYTE
|
||||||
// <<< Use Configuration Wizard in Context Menu >>>
|
// <<< Use Configuration Wizard in Context Menu >>>
|
||||||
|
|
||||||
|
|
||||||
|
@@ -258,11 +258,13 @@ static const char* client_bench_conmsg[][5] = {
|
|||||||
"wolfSSL_connect avg took:", "milliseconds\n",
|
"wolfSSL_connect avg took:", "milliseconds\n",
|
||||||
NULL
|
NULL
|
||||||
},
|
},
|
||||||
|
#ifndef NO_MULTIBYTE
|
||||||
/* Japanese */
|
/* Japanese */
|
||||||
{
|
{
|
||||||
"wolfSSL_resume 平均時間:", "ミリ秒\n",
|
"wolfSSL_resume 平均時間:", "ミリ秒\n",
|
||||||
"wolfSSL_connect 平均時間:", "ミリ秒\n",
|
"wolfSSL_connect 平均時間:", "ミリ秒\n",
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port,
|
static int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port,
|
||||||
@@ -940,6 +942,7 @@ static const char* client_usage_msg[][59] = {
|
|||||||
" 0: English, 1: Japanese\n", /* 58 */
|
" 0: English, 1: Japanese\n", /* 58 */
|
||||||
NULL,
|
NULL,
|
||||||
},
|
},
|
||||||
|
#ifndef NO_MULTIBYTE
|
||||||
/* Japanese */
|
/* Japanese */
|
||||||
{
|
{
|
||||||
" 注意 : 全てのファイルは wolfSSL ホーム・ディレクトリからの相対です。"
|
" 注意 : 全てのファイルは wolfSSL ホーム・ディレクトリからの相対です。"
|
||||||
@@ -1012,7 +1015,7 @@ static const char* client_usage_msg[][59] = {
|
|||||||
"-R セキュアな再ネゴシエーションを許可する\n", /* 28 */
|
"-R セキュアな再ネゴシエーションを許可する\n", /* 28 */
|
||||||
"-i クライアント主導のネゴシエーションを強制する\n", /* 29 */
|
"-i クライアント主導のネゴシエーションを強制する\n", /* 29 */
|
||||||
#endif
|
#endif
|
||||||
"-f より少ないパケット/グループメッセージを使用する\n",/* 30 */
|
"-f より少ないパケット/グループメッセージを使用する\n", /* 30 */
|
||||||
"-x クライアントの証明書/鍵のロードを無効する\n", /* 31 */
|
"-x クライアントの証明書/鍵のロードを無効する\n", /* 31 */
|
||||||
"-X 外部テスト・ケースにより動作する\n", /* 32 */
|
"-X 外部テスト・ケースにより動作する\n", /* 32 */
|
||||||
"-j コールバック・オーバーライドの検証を使用する\n", /* 33 */
|
"-j コールバック・オーバーライドの検証を使用する\n", /* 33 */
|
||||||
@@ -1090,7 +1093,7 @@ static const char* client_usage_msg[][59] = {
|
|||||||
" 0: 英語、 1: 日本語\n", /* 58 */
|
" 0: 英語、 1: 日本語\n", /* 58 */
|
||||||
NULL,
|
NULL,
|
||||||
},
|
},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static void Usage(void)
|
static void Usage(void)
|
||||||
|
@@ -456,6 +456,7 @@ static const char* server_usage_msg[][49] = {
|
|||||||
"\n 0: English, 1: Japanese\n", /* 48 */
|
"\n 0: English, 1: Japanese\n", /* 48 */
|
||||||
NULL,
|
NULL,
|
||||||
},
|
},
|
||||||
|
#ifndef NO_MULTIBYTE
|
||||||
/* Japanese */
|
/* Japanese */
|
||||||
{
|
{
|
||||||
" 注意 : 全てのファイルは"
|
" 注意 : 全てのファイルは"
|
||||||
@@ -495,7 +496,7 @@ static const char* server_usage_msg[][49] = {
|
|||||||
"-G SCTP DTLSを使用する。-v 2 を追加指定すると"
|
"-G SCTP DTLSを使用する。-v 2 を追加指定すると"
|
||||||
" DTLSv1, -v 3 を追加指定すると DTLSv1.2 (既定値)\n", /* 16 */
|
" DTLSv1, -v 3 を追加指定すると DTLSv1.2 (既定値)\n", /* 16 */
|
||||||
#endif
|
#endif
|
||||||
"-f より少ないパケット/グループメッセージを使用する\n",/* 17 */
|
"-f より少ないパケット/グループメッセージを使用する\n", /* 17 */
|
||||||
"-r クライアントの再開を許可する\n", /* 18 */
|
"-r クライアントの再開を許可する\n", /* 18 */
|
||||||
"-N ノンブロッキング・ソケットを使用する\n", /* 19 */
|
"-N ノンブロッキング・ソケットを使用する\n", /* 19 */
|
||||||
"-S <str> ホスト名表示を使用する\n", /* 20 */
|
"-S <str> ホスト名表示を使用する\n", /* 20 */
|
||||||
@@ -570,6 +571,7 @@ static const char* server_usage_msg[][49] = {
|
|||||||
"\n 0: 英語、 1: 日本語\n", /* 48 */
|
"\n 0: 英語、 1: 日本語\n", /* 48 */
|
||||||
NULL,
|
NULL,
|
||||||
},
|
},
|
||||||
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -433,6 +433,7 @@ static const char* bench_Usage_msg1[][10] = {
|
|||||||
"-lng <num> Display benchmark result by specified language.\n 0: English, 1: Japanese\n",
|
"-lng <num> Display benchmark result by specified language.\n 0: English, 1: Japanese\n",
|
||||||
"<num> Size of block in bytes\n",
|
"<num> Size of block in bytes\n",
|
||||||
},
|
},
|
||||||
|
#ifndef NO_MULTIBYTE
|
||||||
/* 1 Japanese */
|
/* 1 Japanese */
|
||||||
{ "-? <num> ヘルプ, 使い方を表示します。\n 0: 英語、 1: 日本語\n",
|
{ "-? <num> ヘルプ, 使い方を表示します。\n 0: 英語、 1: 日本語\n",
|
||||||
"-csv csv 形式で端末に出力します。\n",
|
"-csv csv 形式で端末に出力します。\n",
|
||||||
@@ -445,11 +446,14 @@ static const char* bench_Usage_msg1[][10] = {
|
|||||||
"-lng <num> 指定された言語でベンチマーク結果を表示します。\n 0: 英語、 1: 日本語\n",
|
"-lng <num> 指定された言語でベンチマーク結果を表示します。\n 0: 英語、 1: 日本語\n",
|
||||||
"<num> ブロックサイズをバイト単位で指定します。\n",
|
"<num> ブロックサイズをバイト単位で指定します。\n",
|
||||||
},
|
},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char* bench_result_words1[][4] = {
|
static const char* bench_result_words1[][4] = {
|
||||||
{ "tooks", "seconds" , "Cycles per byte", NULL }, /* 0 English */
|
{ "tooks", "seconds" , "Cycles per byte", NULL }, /* 0 English */
|
||||||
|
#ifndef NO_MULTIBYTE
|
||||||
{ "を" , "秒で処理", "1バイトあたりのサイクル数", NULL }, /* 1 Japanese */
|
{ "を" , "秒で処理", "1バイトあたりのサイクル数", NULL }, /* 1 Japanese */
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined(NO_RSA) ||defined(WOLFSSL_KEY_GEN) || defined(HAVE_NTRU) || \
|
#if !defined(NO_RSA) ||defined(WOLFSSL_KEY_GEN) || defined(HAVE_NTRU) || \
|
||||||
@@ -460,7 +464,9 @@ static const char* bench_result_words1[][4] = {
|
|||||||
static const char* bench_desc_words[][9] = {
|
static const char* bench_desc_words[][9] = {
|
||||||
/* 0 1 2 3 4 5 6 7 8 */
|
/* 0 1 2 3 4 5 6 7 8 */
|
||||||
{"public", "private", "key gen", "agree" , "sign", "verify", "encryption", "decryption", NULL}, /* 0 English */
|
{"public", "private", "key gen", "agree" , "sign", "verify", "encryption", "decryption", NULL}, /* 0 English */
|
||||||
|
#ifndef NO_MULTIBYTE
|
||||||
{"公開鍵", "秘密鍵" ,"鍵生成" , "鍵共有" , "署名", "検証" , "暗号化" , "復号化" , NULL}, /* 1 Japanese */
|
{"公開鍵", "秘密鍵" ,"鍵生成" , "鍵共有" , "署名", "検証" , "暗号化" , "復号化" , NULL}, /* 1 Japanese */
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -577,7 +583,9 @@ static const char* bench_desc_words[][9] = {
|
|||||||
#if defined(BENCH_ASYM)
|
#if defined(BENCH_ASYM)
|
||||||
static const char* bench_result_words2[][5] = {
|
static const char* bench_result_words2[][5] = {
|
||||||
{ "ops took", "sec" , "avg" , "ops/sec", NULL }, /* 0 English */
|
{ "ops took", "sec" , "avg" , "ops/sec", NULL }, /* 0 English */
|
||||||
|
#ifndef NO_MULTIBYTE
|
||||||
{ "回処理を", "秒で実施", "平均", "処理/秒", NULL }, /* 1 Japanese */
|
{ "回処理を", "秒で実施", "平均", "処理/秒", NULL }, /* 1 Japanese */
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user