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

sasl_plain.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 SASL_PLAIN_H
00005 #define SASL_PLAIN_H
00006 
00007 #include "azure_uamqp_c/sasl_mechanism.h"
00008 
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif /* __cplusplus */
00012 
00013 #include "azure_c_shared_utility/umock_c_prod.h"
00014 
00015     typedef struct SASL_PLAIN_CONFIG_TAG
00016     {
00017         const char* authcid;
00018         const char* passwd;
00019         const char* authzid;
00020     } SASL_PLAIN_CONFIG;
00021 
00022     MOCKABLE_FUNCTION(, CONCRETE_SASL_MECHANISM_HANDLE, saslplain_create, void*, config);
00023     MOCKABLE_FUNCTION(, void, saslplain_destroy, CONCRETE_SASL_MECHANISM_HANDLE, sasl_mechanism_concrete_handle);
00024     MOCKABLE_FUNCTION(, int, saslplain_get_init_bytes, CONCRETE_SASL_MECHANISM_HANDLE, sasl_mechanism_concrete_handle, SASL_MECHANISM_BYTES*, init_bytes);
00025     MOCKABLE_FUNCTION(, const char*, saslplain_get_mechanism_name, CONCRETE_SASL_MECHANISM_HANDLE, sasl_mechanism);
00026     MOCKABLE_FUNCTION(, int, saslplain_challenge, CONCRETE_SASL_MECHANISM_HANDLE, concrete_sasl_mechanism, const SASL_MECHANISM_BYTES*, challenge_bytes, SASL_MECHANISM_BYTES*, response_bytes);
00027     MOCKABLE_FUNCTION(, const SASL_MECHANISM_INTERFACE_DESCRIPTION*, saslplain_get_interface);
00028 
00029 #ifdef __cplusplus
00030 }
00031 #endif /* __cplusplus */
00032 
00033 #endif /* SASL_PLAIN_H */