Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: iothub_client_sample_amqp remote_monitoring simplesample_amqp
Diff: sasl_plain.c
- Revision:
- 6:641a9672db08
- Parent:
- 0:6ae2f7bca550
- Child:
- 17:923575db8b2d
--- a/sasl_plain.c Fri Jul 01 10:42:48 2016 -0700
+++ b/sasl_plain.c Fri Jul 29 15:58:39 2016 -0700
@@ -12,7 +12,7 @@
typedef struct SASL_PLAIN_INSTANCE_TAG
{
unsigned char* init_bytes;
- size_t init_bytes_length;
+ uint32_t init_bytes_length;
} SASL_PLAIN_INSTANCE;
static const SASL_MECHANISM_INTERFACE_DESCRIPTION saslplain_interface =
@@ -92,7 +92,7 @@
(void)memcpy(result->init_bytes + authzid_length + 1, sasl_plain_config->authcid, authcid_length);
result->init_bytes[authzid_length + authcid_length + 1] = 0;
(void)memcpy(result->init_bytes + authzid_length + authcid_length + 2, sasl_plain_config->passwd, passwd_length);
- result->init_bytes_length = authzid_length + authcid_length + passwd_length + 2;
+ result->init_bytes_length = (uint32_t)(authzid_length + authcid_length + passwd_length + 2);
}
}
}
