@@ -120,7 +120,8 @@ bool FleetProvisioning::WriteCSRCertToDirectory(CreateCertificateFromCsrResponse
120
120
bool FleetProvisioning::CreateCertificateAndKey (Iotidentity::IotIdentityClient identityClient)
121
121
{
122
122
LOG_INFO (TAG, " Provisioning new device certificate and private key using CreateKeysAndCertificate API" );
123
- auto onKeysAcceptedSubAck = [this ](int ioErr) {
123
+ auto onKeysAcceptedSubAck = [this ](int ioErr)
124
+ {
124
125
if (ioErr != AWS_OP_SUCCESS)
125
126
{
126
127
LOGM_ERROR (
@@ -132,7 +133,8 @@ bool FleetProvisioning::CreateCertificateAndKey(Iotidentity::IotIdentityClient i
132
133
keysAcceptedCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
133
134
};
134
135
135
- auto onKeysRejectedSubAck = [this ](int ioErr) {
136
+ auto onKeysRejectedSubAck = [this ](int ioErr)
137
+ {
136
138
if (ioErr != AWS_OP_SUCCESS)
137
139
{
138
140
LOGM_ERROR (
@@ -144,7 +146,8 @@ bool FleetProvisioning::CreateCertificateAndKey(Iotidentity::IotIdentityClient i
144
146
keysRejectedCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
145
147
};
146
148
147
- auto onKeysPublishSubAck = [this ](int ioErr) {
149
+ auto onKeysPublishSubAck = [this ](int ioErr)
150
+ {
148
151
if (ioErr != AWS_OP_SUCCESS)
149
152
{
150
153
LOGM_ERROR (
@@ -156,7 +159,8 @@ bool FleetProvisioning::CreateCertificateAndKey(Iotidentity::IotIdentityClient i
156
159
keysPublishCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
157
160
};
158
161
159
- auto onKeysAccepted = [this ](CreateKeysAndCertificateResponse *response, int ioErr) {
162
+ auto onKeysAccepted = [this ](CreateKeysAndCertificateResponse *response, int ioErr)
163
+ {
160
164
if (ioErr == AWS_OP_SUCCESS)
161
165
{
162
166
LOGM_INFO (TAG, " CreateKeysAndCertificateResponse certificateId: %s." , response->CertificateId ->c_str ());
@@ -177,7 +181,8 @@ bool FleetProvisioning::CreateCertificateAndKey(Iotidentity::IotIdentityClient i
177
181
}
178
182
};
179
183
180
- auto onKeysRejected = [this ](ErrorResponse *error, int ioErr) {
184
+ auto onKeysRejected = [this ](ErrorResponse *error, int ioErr)
185
+ {
181
186
if (ioErr == AWS_OP_SUCCESS)
182
187
{
183
188
LOGM_ERROR (
@@ -252,7 +257,8 @@ bool FleetProvisioning::CreateCertificateAndKey(Iotidentity::IotIdentityClient i
252
257
bool FleetProvisioning::CreateCertificateUsingCSR (Iotidentity::IotIdentityClient identityClient)
253
258
{
254
259
LOG_INFO (TAG, " Provisioning new device certificate using CreateCertificateFromCsr API" );
255
- auto onCsrAcceptedSubAck = [this ](int ioErr) {
260
+ auto onCsrAcceptedSubAck = [this ](int ioErr)
261
+ {
256
262
if (ioErr != AWS_OP_SUCCESS)
257
263
{
258
264
LOGM_ERROR (
@@ -264,7 +270,8 @@ bool FleetProvisioning::CreateCertificateUsingCSR(Iotidentity::IotIdentityClient
264
270
csrAcceptedCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
265
271
};
266
272
267
- auto onCsrRejectedSubAck = [this ](int ioErr) {
273
+ auto onCsrRejectedSubAck = [this ](int ioErr)
274
+ {
268
275
if (ioErr != AWS_OP_SUCCESS)
269
276
{
270
277
LOGM_ERROR (
@@ -276,7 +283,8 @@ bool FleetProvisioning::CreateCertificateUsingCSR(Iotidentity::IotIdentityClient
276
283
csrRejectedCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
277
284
};
278
285
279
- auto onCsrPublishSubAck = [this ](int ioErr) {
286
+ auto onCsrPublishSubAck = [this ](int ioErr)
287
+ {
280
288
if (ioErr != AWS_OP_SUCCESS)
281
289
{
282
290
LOGM_ERROR (
@@ -288,7 +296,8 @@ bool FleetProvisioning::CreateCertificateUsingCSR(Iotidentity::IotIdentityClient
288
296
csrPublishCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
289
297
};
290
298
291
- auto onCsrAccepted = [this ](CreateCertificateFromCsrResponse *response, int ioErr) {
299
+ auto onCsrAccepted = [this ](CreateCertificateFromCsrResponse *response, int ioErr)
300
+ {
292
301
if (ioErr == AWS_OP_SUCCESS)
293
302
{
294
303
LOGM_INFO (TAG, " CreateCertificateFromCsrResponse certificateId: %s. ***" , response->CertificateId ->c_str ());
@@ -309,7 +318,8 @@ bool FleetProvisioning::CreateCertificateUsingCSR(Iotidentity::IotIdentityClient
309
318
}
310
319
};
311
320
312
- auto onCsrRejected = [this ](ErrorResponse *error, int ioErr) {
321
+ auto onCsrRejected = [this ](ErrorResponse *error, int ioErr)
322
+ {
313
323
if (ioErr == AWS_OP_SUCCESS)
314
324
{
315
325
LOGM_ERROR (
@@ -387,7 +397,8 @@ bool FleetProvisioning::CreateCertificateUsingCSR(Iotidentity::IotIdentityClient
387
397
}
388
398
bool FleetProvisioning::RegisterThing (Iotidentity::IotIdentityClient identityClient)
389
399
{
390
- auto onRegisterAcceptedSubAck = [this ](int ioErr) {
400
+ auto onRegisterAcceptedSubAck = [this ](int ioErr)
401
+ {
391
402
if (ioErr != AWS_OP_SUCCESS)
392
403
{
393
404
LOGM_ERROR (
@@ -399,7 +410,8 @@ bool FleetProvisioning::RegisterThing(Iotidentity::IotIdentityClient identityCli
399
410
registerAcceptedCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
400
411
};
401
412
402
- auto onRegisterRejectedSubAck = [this ](int ioErr) {
413
+ auto onRegisterRejectedSubAck = [this ](int ioErr)
414
+ {
403
415
if (ioErr != AWS_OP_SUCCESS)
404
416
{
405
417
LOGM_ERROR (
@@ -411,7 +423,8 @@ bool FleetProvisioning::RegisterThing(Iotidentity::IotIdentityClient identityCli
411
423
registerRejectedCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
412
424
};
413
425
414
- auto onRegisterPublishSubAck = [this ](int ioErr) {
426
+ auto onRegisterPublishSubAck = [this ](int ioErr)
427
+ {
415
428
if (ioErr != AWS_OP_SUCCESS)
416
429
{
417
430
LOGM_ERROR (
@@ -423,7 +436,8 @@ bool FleetProvisioning::RegisterThing(Iotidentity::IotIdentityClient identityCli
423
436
registerPublishCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
424
437
};
425
438
426
- auto onRegisterAccepted = [this ](RegisterThingResponse *response, int ioErr) {
439
+ auto onRegisterAccepted = [this ](RegisterThingResponse *response, int ioErr)
440
+ {
427
441
if (ioErr == AWS_OP_SUCCESS)
428
442
{
429
443
LOGM_INFO (TAG, " RegisterThingResponse ThingName: %s." , response->ThingName ->c_str ());
@@ -438,7 +452,8 @@ bool FleetProvisioning::RegisterThing(Iotidentity::IotIdentityClient identityCli
438
452
registerThingCompletedPromise.set_value (ioErr == AWS_OP_SUCCESS);
439
453
};
440
454
441
- auto onRegisterRejected = [this ](ErrorResponse *error, int ioErr) {
455
+ auto onRegisterRejected = [this ](ErrorResponse *error, int ioErr)
456
+ {
442
457
if (ioErr == AWS_OP_SUCCESS)
443
458
{
444
459
LOGM_ERROR (
0 commit comments