Merge pull request #1787 from ejohnstown/patches

Patches for various build errors
pull/1789/head
David Garske 2018-08-24 14:46:28 -07:00 committed by GitHub
commit 205088d1bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View File

@ -120,7 +120,7 @@ static int NonBlockingSSL_Accept(SSL* ssl)
#ifndef WOLFSSL_CALLBACKS
int ret = SSL_accept(ssl);
#else
int ret = SSL_accept_ex(ssl, srvHandShakeCB, srvTimeoutCB, srvTo);
int ret = wolfSSL_accept_ex(ssl, srvHandShakeCB, srvTimeoutCB, srvTo);
#endif
int error = SSL_get_error(ssl, 0);
SOCKET_T sockfd = (SOCKET_T)SSL_get_fd(ssl);
@ -163,7 +163,7 @@ static int NonBlockingSSL_Accept(SSL* ssl)
#ifndef WOLFSSL_CALLBACKS
ret = SSL_accept(ssl);
#else
ret = SSL_accept_ex(ssl,
ret = wolfSSL_accept_ex(ssl,
srvHandShakeCB, srvTimeoutCB, srvTo);
#endif
error = SSL_get_error(ssl, 0);

View File

@ -16354,7 +16354,7 @@ void PickHashSigAlgo(WOLFSSL* ssl, const byte* hashSigAlgo,
char* packetName = info->packetNames[info->numberPackets];
XSTRNCPY(packetName, name, MAX_PACKETNAME_SZ);
packetName[MAX_PACKETNAME_SZ] = '\0';
info->numberPackets++
info->numberPackets++;
}
#endif
(void)ssl;

View File

@ -52,7 +52,15 @@ typedef struct handShakeInfo_st {
} HandShakeInfo;
typedef struct timeval Timeval;
#ifdef HAVE_SYS_TIME_H
typedef struct timeval Timeval;
#else /* HAVE_SYS_TIME_H */
/* Define the Timeval explicitly. */
typedef struct {
long tv_sec; /* Seconds. */
long tv_usec; /* Microseconds. */
} Timeval;
#endif /* HAVE_SYS_TIME_H */
typedef struct packetInfo_st {

View File

@ -315,7 +315,8 @@
#endif
#if !defined(USE_WOLF_STRTOK) && \
(defined(__MINGW32__) || defined(WOLFSSL_TIRTOS) || defined(WOLF_C99))
((defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)) || \
defined(WOLFSSL_TIRTOS) || defined(WOLF_C99))
#define USE_WOLF_STRTOK
#endif
#if !defined(USE_WOLF_STRSEP) && (defined(WOLF_C99))