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_mbedtls.h Source File

tlsio_mbedtls.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 #ifndef TLSIO_MBEDTLS_H
00005 #define TLSIO_MBEDTLS_H
00006 
00007 #include "azure_c_shared_utility/tlsio_mbedconfig.h"
00008 
00009 #ifdef USE_MBED_TLS
00010 
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #include <cstddef>
00014 #else
00015 #include <stddef.h>
00016 #endif /* __cplusplus */
00017 
00018 #include "azure_c_shared_utility/xio.h"
00019 #include "azure_c_shared_utility/xlogging.h"
00020 #include "azure_c_shared_utility/optionhandler.h"
00021 
00022 extern CONCRETE_IO_HANDLE tlsio_mbedtls_create(void* io_create_parameters);
00023 extern void tlsio_mbedtls_destroy(CONCRETE_IO_HANDLE tls_io);
00024 extern int tlsio_mbedtls_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);
00025 extern int tlsio_mbedtls_close(CONCRETE_IO_HANDLE tls_io, ON_IO_CLOSE_COMPLETE on_io_close_complete, void* callback_context);
00026 extern int tlsio_mbedtls_send(CONCRETE_IO_HANDLE tls_io, const void* buffer, size_t size, ON_SEND_COMPLETE on_send_complete, void* callback_context);
00027 extern void tlsio_mbedtls_dowork(CONCRETE_IO_HANDLE tls_io);
00028 extern int tlsio_mbedtls_setoption(CONCRETE_IO_HANDLE tls_io, const char* optionName, const void* value);
00029 extern OPTIONHANDLER_HANDLE tlsio_mbedtls_retrieveoptions(CONCRETE_IO_HANDLE handle);
00030 
00031 extern const IO_INTERFACE_DESCRIPTION* tlsio_mbedtls_get_interface_description(void);
00032 
00033 #ifdef __cplusplus
00034 }
00035 #endif /* __cplusplus */
00036 
00037 #endif /* USE_MBED_TLS */
00038 
00039 #endif /* TLSIO_MBEDTLS_H */
00040