size_t -> int

This commit is contained in:
Juliusz Sosinowicz 2020-04-02 15:51:12 +02:00
parent fe9a876895
commit b1a80973dd
2 changed files with 4 additions and 4 deletions

View File

@ -33138,7 +33138,7 @@ const char* wolfSSL_EC_curve_nid2nist(int nid)
static int populate_groups(int* groups, int max_count, char *list)
{
char *end;
size_t len;
int len;
int count = 0;
const WOLF_EC_NIST_NAME* nist_name;
@ -33152,8 +33152,8 @@ static int populate_groups(int* groups, int max_count, char *list)
return -1;
}
while (*end != ':' && *end != '\0') end++;
len = end - list; /* end points to char after end
* of curve name so no need for -1 */
len = (int)(end - list); /* end points to char after end
* of curve name so no need for -1 */
if ((len < kNistCurves_MIN_NAME_LEN) ||
(len > kNistCurves_MAX_NAME_LEN)) {
WOLFSSL_MSG("Unrecognized curve name in list");

View File

@ -4239,7 +4239,7 @@ static const byte tls_server[FINISHED_LABEL_SZ + 1] = "server finished";
#ifdef OPENSSL_EXTRA
typedef struct {
size_t name_len;
int name_len;
const char *name;
int nid;
} WOLF_EC_NIST_NAME;