Skip to content

Commit

Permalink
Removing certificate preconditions
Browse files Browse the repository at this point in the history
  • Loading branch information
RLeclair committed Oct 11, 2023
1 parent 6cc11b5 commit 193f4bc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sdk/src/azure/core/az_mqtt5_connection_hfsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ AZ_INLINE az_result _connect(az_mqtt5_connection* me)
_az_PRECONDITION_VALID_SPAN(me->_internal.options.client_id_buffer, 1, false);
_az_PRECONDITION_VALID_SPAN(me->_internal.options.username_buffer, 1, false);
_az_PRECONDITION_VALID_SPAN(me->_internal.options.password_buffer, 0, true);
_az_PRECONDITION_NOT_NULL(me->_internal.options.client_certificates);
_az_PRECONDITION_VALID_SPAN(me->_internal.options.client_certificates[0].cert, 1, false);
_az_PRECONDITION_VALID_SPAN(me->_internal.options.client_certificates[0].key, 1, false);
if (me->_internal.options.client_certificates != NULL)
{
_az_PRECONDITION_VALID_SPAN(me->_internal.options.client_certificates[0].cert, 1, false);
_az_PRECONDITION_VALID_SPAN(me->_internal.options.client_certificates[0].key, 1, false);
}

az_mqtt5_connect_data connect_data = (az_mqtt5_connect_data){
.host = me->_internal.options.hostname,
Expand Down

0 comments on commit 193f4bc

Please sign in to comment.