Mark Radbourne / Mbed 2 deprecated iothub_client_sample_amqp

Dependencies:   EthernetInterface NTPClient iothub_amqp_transport iothub_client mbed-rtos mbed

Fork of iothub_client_sample_amqp by Azure IoT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers tlsio_wolfssl.h Source File

tlsio_wolfssl.h

00001 // Copyright (c) Microsoft. All rights reserved.
00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
00003 
00004 #include "azure_c_shared_utility/tlsio_mbedconfig.h"
00005 
00006 #ifdef USE_WOLF_SSL
00007 
00008 #ifndef TLSIO_WOLFSSL_H
00009 #define TLSIO_WOLFSSL_H
00010 
00011 #include "azure_c_shared_utility/tlsio_mbedconfig.h"
00012 
00013 #ifdef USE_MBED_TLS
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #include <cstddef>
00018 #else
00019 #include <stddef.h>
00020 #endif /* __cplusplus */
00021 
00022 #include "azure_c_shared_utility/xio.h"
00023 #include "azure_c_shared_utility/xlogging.h"
00024 #include "azure_c_shared_utility/umock_c_prod.h"
00025 
00026 MOCKABLE_FUNCTION(, CONCRETE_IO_HANDLE, tlsio_wolfssl_create, void*, io_create_parameters);
00027 MOCKABLE_FUNCTION(, void, tlsio_wolfssl_destroy, CONCRETE_IO_HANDLE, tls_io);
00028 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);
00029 MOCKABLE_FUNCTION(, int, tlsio_wolfssl_close, CONCRETE_IO_HANDLE, tls_io, ON_IO_CLOSE_COMPLETE, on_io_close_complete, void*, callback_context);
00030 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);
00031 MOCKABLE_FUNCTION(, void, tlsio_wolfssl_dowork, CONCRETE_IO_HANDLE, tls_io);
00032 MOCKABLE_FUNCTION(, int, tlsio_wolfssl_setoption, CONCRETE_IO_HANDLE, tls_io, const char*, optionName, const void*, value);
00033 
00034 MOCKABLE_FUNCTION(, const IO_INTERFACE_DESCRIPTION*, tlsio_wolfssl_get_interface_description);
00035 
00036 #ifdef __cplusplus
00037 }
00038 #endif /* __cplusplus */
00039 
00040 #endif /* USE_MBED_TLS */
00041 
00042 #endif /* TLSIO_WOLFSSL_H */
00043 
00044 #endif /* USE_WOLF_SSL */