1 | // Copyright (c) Microsoft. All rights reserved.
|
---|
2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
---|
3 |
|
---|
4 | #ifndef TLSIO_WOLFSSL_H
|
---|
5 | #define TLSIO_WOLFSSL_H
|
---|
6 |
|
---|
7 | #include "azure_c_shared_utility/xio.h"
|
---|
8 | #include "azure_c_shared_utility/xlogging.h"
|
---|
9 | #include "umock_c/umock_c_prod.h"
|
---|
10 | #include "azure_c_shared_utility/const_defines.h"
|
---|
11 |
|
---|
12 | #ifdef __cplusplus
|
---|
13 | extern "C" {
|
---|
14 | #include <cstddef>
|
---|
15 | #else
|
---|
16 | #include <stddef.h>
|
---|
17 | #endif /* __cplusplus */
|
---|
18 |
|
---|
19 | extern const char* const OPTION_WOLFSSL_SET_DEVICE_ID;
|
---|
20 |
|
---|
21 | MOCKABLE_FUNCTION(, CONCRETE_IO_HANDLE, tlsio_wolfssl_create, void*, io_create_parameters);
|
---|
22 | MOCKABLE_FUNCTION(, void, tlsio_wolfssl_destroy, CONCRETE_IO_HANDLE, tls_io);
|
---|
23 | MOCKABLE_FUNCTION(, int, tlsio_wolfssl_open, CONCRETE_IO_HANDLE, tls_io, ON_IO_OPEN_COMPLETE, on_io_open_complete, void*, on_io_open_complete_context, ON_BYTES_RECEIVED, on_bytes_received, void*, on_bytes_received_context, ON_IO_ERROR, on_io_error, void*, on_io_error_context);
|
---|
24 | MOCKABLE_FUNCTION(, int, tlsio_wolfssl_close, CONCRETE_IO_HANDLE, tls_io, ON_IO_CLOSE_COMPLETE, on_io_close_complete, void*, callback_context);
|
---|
25 | MOCKABLE_FUNCTION(, int, tlsio_wolfssl_send, CONCRETE_IO_HANDLE, tls_io, const void*, buffer, size_t, size, ON_SEND_COMPLETE, on_send_complete, void*, callback_context);
|
---|
26 | MOCKABLE_FUNCTION(, void, tlsio_wolfssl_dowork, CONCRETE_IO_HANDLE, tls_io);
|
---|
27 | MOCKABLE_FUNCTION(, int, tlsio_wolfssl_setoption, CONCRETE_IO_HANDLE, tls_io, const char*, optionName, const void*, value);
|
---|
28 |
|
---|
29 | MOCKABLE_FUNCTION(, const IO_INTERFACE_DESCRIPTION*, tlsio_wolfssl_get_interface_description);
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | }
|
---|
33 | #endif /* __cplusplus */
|
---|
34 |
|
---|
35 | #endif /* TLSIO_WOLFSSL_H */
|
---|