Merge pull request #2120 from dgarske/nightly_fixes

Fixes for various nightly build configuration warnings
This commit is contained in:
toddouska
2019-02-27 14:15:40 -08:00
committed by GitHub
7 changed files with 48 additions and 29 deletions

View File

@@ -733,7 +733,7 @@ size_t wolfSSL_BIO_ctrl_pending(WOLFSSL_BIO *bio)
if (bio->type == WOLFSSL_BIO_BIO && bio->pair != NULL) {
WOLFSSL_BIO* pair = bio->pair;
if (pair->wrIdx > 0 && pair->wrIdx <= pair->rdIdx) {
/* in wrap around state where begining of buffer is being
/* in wrap around state where beginning of buffer is being
* overwritten */
return pair->wrSz - pair->rdIdx + pair->wrIdx;
}
@@ -1136,7 +1136,7 @@ int wolfSSL_BIO_seek(WOLFSSL_BIO *bio, int ofs)
return -1;
}
/* offset ofs from begining of file */
/* offset ofs from beginning of file */
if (bio->type == WOLFSSL_BIO_FILE &&
XFSEEK(bio->file, ofs, SEEK_SET) < 0) {
return -1;

View File

@@ -19993,7 +19993,7 @@ int SendClientKeyExchange(WOLFSSL* ssl)
/* length is used for public key size */
args->length = MAX_ENCRYPT_SZ;
/* Create shared ECC key leaving room at the begining
/* Create shared ECC key leaving room at the beginning
of buffer for size of shared key. */
ssl->arrays->preMasterSz = ENCRYPT_LEN - OPAQUE16_LEN;