mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
fixes for Xcode 5.1, clang 503.0.38 stricter with some warnings
This commit is contained in:
@@ -219,17 +219,21 @@ int benchmark_test(void *args)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef BENCH_EMBEDDED
|
#ifdef BENCH_EMBEDDED
|
||||||
static const int numBlocks = 25; /* how many kB/megs to test (en/de)cryption */
|
enum BenchmarkBounds {
|
||||||
|
numBlocks = 25, /* how many kB to test (en/de)cryption */
|
||||||
|
ntimes = 1,
|
||||||
|
genTimes = 5, /* public key iterations */
|
||||||
|
agreeTimes = 5
|
||||||
|
};
|
||||||
static const char blockType[] = "kB"; /* used in printf output */
|
static const char blockType[] = "kB"; /* used in printf output */
|
||||||
static const int ntimes = 1; /* public key iterations */
|
|
||||||
static const int genTimes = 5;
|
|
||||||
static const int agreeTimes = 5;
|
|
||||||
#else
|
#else
|
||||||
static const int numBlocks = 5;
|
enum BenchmarkBounds {
|
||||||
static const char blockType[] = "megs";
|
numBlocks = 5, /* how many megs to test (en/de)cryption */
|
||||||
static const int ntimes = 100;
|
ntimes = 100,
|
||||||
static const int genTimes = 100;
|
genTimes = 100,
|
||||||
static const int agreeTimes = 100;
|
agreeTimes = 100
|
||||||
|
};
|
||||||
|
static const char blockType[] = "megs"; /* used in printf output */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const byte key[] =
|
static const byte key[] =
|
||||||
|
@@ -1157,6 +1157,8 @@ int CyaSSL_CertPemToDer(const unsigned char* pem, int pemSz,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER)
|
||||||
|
|
||||||
/* our KeyPemToDer password callback, password in userData */
|
/* our KeyPemToDer password callback, password in userData */
|
||||||
static INLINE int OurPasswordCb(char* passwd, int sz, int rw, void* userdata)
|
static INLINE int OurPasswordCb(char* passwd, int sz, int rw, void* userdata)
|
||||||
{
|
{
|
||||||
@@ -1169,6 +1171,8 @@ static INLINE int OurPasswordCb(char* passwd, int sz, int rw, void* userdata)
|
|||||||
return min((word32)sz, (word32)XSTRLEN((char*)userdata));
|
return min((word32)sz, (word32)XSTRLEN((char*)userdata));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* OPENSSL_EXTRA || HAVE_WEBSERVER */
|
||||||
|
|
||||||
|
|
||||||
/* Return bytes written to buff or < 0 for error */
|
/* Return bytes written to buff or < 0 for error */
|
||||||
int CyaSSL_KeyPemToDer(const unsigned char* pem, int pemSz, unsigned char* buff,
|
int CyaSSL_KeyPemToDer(const unsigned char* pem, int pemSz, unsigned char* buff,
|
||||||
|
Reference in New Issue
Block a user