mirror of https://github.com/wolfSSL/wolfssl.git
switch pragma once uses, causes warnings on some compilers
parent
ed8a50ce69
commit
b89354880f
|
@ -1,4 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#ifndef WOLFSSL_ROWLEY_HW_H
|
||||
#define WOLFSSL_ROWLEY_HW_H
|
||||
|
||||
|
||||
#include <__cross_studio_io.h>
|
||||
#include <__libc.h>
|
||||
|
@ -11,3 +14,7 @@ uint32_t hw_get_time_msec(void);
|
|||
void hw_uart_printchar(int c);
|
||||
void hw_watchdog_disable(void);
|
||||
uint32_t hw_rand(void);
|
||||
|
||||
|
||||
#endif /* WOLFSSL_ROWLEY_HW_H */
|
||||
|
||||
|
|
11
configure.ac
11
configure.ac
|
@ -2581,7 +2581,9 @@ echo " *" >> $OPTION_FILE
|
|||
echo " */" >> $OPTION_FILE
|
||||
|
||||
echo "" >> $OPTION_FILE
|
||||
echo "#pragma once" >> $OPTION_FILE
|
||||
echo "#ifndef WOLFSSL_OPTIONS_H" >> $OPTION_FILE
|
||||
echo "#define WOLFSSL_OPTIONS_H" >> $OPTION_FILE
|
||||
echo "" >> $OPTION_FILE
|
||||
echo "" >> $OPTION_FILE
|
||||
echo "#ifdef __cplusplus" >> $OPTION_FILE
|
||||
echo "extern \"C\" {" >> $OPTION_FILE
|
||||
|
@ -2627,6 +2629,9 @@ echo "#ifdef __cplusplus" >> $OPTION_FILE
|
|||
echo "}" >> $OPTION_FILE
|
||||
echo "#endif" >> $OPTION_FILE
|
||||
echo "" >> $OPTION_FILE
|
||||
echo "" >> $OPTION_FILE
|
||||
echo "#endif /* WOLFSSL_OPTIONS_H */" >> $OPTION_FILE
|
||||
echo "" >> $OPTION_FILE
|
||||
echo
|
||||
|
||||
#backwards compatability for those who have included options or version
|
||||
|
@ -2640,6 +2645,10 @@ do
|
|||
echo "$line" >> cyassl/options.h
|
||||
done < $OPTION_FILE
|
||||
|
||||
# switch ifdef protection in cyassl/option.h to CYASSL_OPTONS_H, remove bak
|
||||
sed -i.bak 's/WOLFSSL_OPTIONS_H/CYASSL_OPTIONS_H/g' cyassl/options.h
|
||||
rm cyassl/options.h.bak
|
||||
|
||||
# output config summary
|
||||
echo "---"
|
||||
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
|
||||
|
|
|
@ -21,7 +21,9 @@
|
|||
|
||||
/* default blank options for autoconf */
|
||||
|
||||
#pragma once
|
||||
#ifndef CYASSL_OPTIONS_H
|
||||
#define CYASSL_OPTIONS_H
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -32,3 +34,6 @@ extern "C" {
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_OPTIONS_H */
|
||||
|
||||
|
|
|
@ -19,15 +19,21 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef WOLFSSL_CLIENT_H
|
||||
#define WOLFSSL_CLIENT_H
|
||||
|
||||
|
||||
THREAD_RETURN WOLFSSL_THREAD client_test(void* args);
|
||||
|
||||
/* Measures average time to create, connect and disconnect a connection (TPS).
|
||||
/* Measures average time to create, connect and disconnect a connection (TPS).
|
||||
Benchmark = number of connections. */
|
||||
int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port,
|
||||
int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port,
|
||||
int doDTLS, int benchmark, int resumeSession);
|
||||
|
||||
/* Measures throughput in kbps. Throughput = number of bytes */
|
||||
int ClientBenchmarkThroughput(WOLFSSL_CTX* ctx, char* host, word16 port,
|
||||
/* Measures throughput in kbps. Throughput = number of bytes */
|
||||
int ClientBenchmarkThroughput(WOLFSSL_CTX* ctx, char* host, word16 port,
|
||||
int doDTLS, int throughput);
|
||||
|
||||
|
||||
#endif /* WOLFSSL_CLIENT_H */
|
||||
|
||||
|
|
|
@ -19,5 +19,12 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef WOLFSSL_ECHOCLIENT_H
|
||||
#define WOLFSSL_ECHOCLIENT_H
|
||||
|
||||
|
||||
void echoclient_test(void* args);
|
||||
|
||||
|
||||
#endif /* WOLFSSL_ECHOCLIENT_H */
|
||||
|
||||
|
|
|
@ -19,6 +19,12 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef WOLFSSL_ECHOSERVER_H
|
||||
#define WOLFSSL_ECHOSERVER_H
|
||||
|
||||
|
||||
THREAD_RETURN WOLFSSL_THREAD echoserver_test(void* args);
|
||||
|
||||
|
||||
#endif /* WOLFSSL_ECHOSERVER_H */
|
||||
|
||||
|
|
|
@ -19,10 +19,16 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef WOLFSSL_SERVER_H
|
||||
#define WOLFSSL_SERVER_H
|
||||
|
||||
|
||||
THREAD_RETURN WOLFSSL_THREAD server_test(void* args);
|
||||
|
||||
/* Echo bytes using buffer of TEST_BUFFER_SIZE until [echoData] bytes are complete. */
|
||||
/* If [bechmarkThroughput] set the statistcs will be output at the end */
|
||||
int ServerEchoData(WOLFSSL* ssl, int clientfd, int echoData, int benchmarkThroughput);
|
||||
|
||||
|
||||
#endif /* WOLFSSL_SERVER_H */
|
||||
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef WOLFCRYPT_BENCHMARK_H
|
||||
#define WOLFCRYPT_BENCHMARK_H
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -30,3 +32,7 @@ int benchmark_test(void* args);
|
|||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* WOLFCRYPT_BENCHMARK_H */
|
||||
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef WOLFCRYPT_TEST_H
|
||||
#define WOLFCRYPT_TEST_H
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -31,3 +33,6 @@ int wolfcrypt_test(void* args);
|
|||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* WOLFCRYPT_TEST_H */
|
||||
|
||||
|
|
|
@ -21,7 +21,9 @@
|
|||
|
||||
/* default blank options for autoconf */
|
||||
|
||||
#pragma once
|
||||
#ifndef WOLFSSL_OPTIONS_H
|
||||
#define WOLFSSL_OPTIONS_H
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -32,3 +34,6 @@ extern "C" {
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* WOLFSSL_OPTIONS_H */
|
||||
|
||||
|
|
|
@ -19,8 +19,9 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef WOLFSSL_VERSION_H
|
||||
#define WOLFSSL_VERSION_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -33,3 +34,6 @@ extern "C" {
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* WOLFSSL_VERSION_H */
|
||||
|
||||
|
|
|
@ -19,8 +19,9 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef WOLFSSL_VERSION_H
|
||||
#define WOLFSSL_VERSION_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -33,3 +34,6 @@ extern "C" {
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* WOLFSSL_VERSION_H */
|
||||
|
||||
|
|
Loading…
Reference in New Issue