@@ -70,9 +70,9 @@ func Test_receiveDHCommit_AtAuthAwaitingRevealSigiForgetOldEncryptedGxAndHashedG
70
70
newMsg , newEncryptedGx , _ := ExtractData (newDHCommitMsg )
71
71
_ , newHashedGx , _ := ExtractData (newMsg )
72
72
73
- authStateNone {}.receiveDHCommitMessage (c , fixtureDHCommitMsgBody ())
73
+ _ , _ , _ = authStateNone {}.receiveDHCommitMessage (c , fixtureDHCommitMsgBody ())
74
74
75
- authStateAwaitingRevealSig {}.receiveDHCommitMessage (c , newDHCommitMsg )
75
+ _ , _ , _ = authStateAwaitingRevealSig {}.receiveDHCommitMessage (c , newDHCommitMsg )
76
76
assertDeepEquals (t , c .ake .encryptedGx , newEncryptedGx )
77
77
assertDeepEquals (t , c .ake .xhashedGx , newHashedGx )
78
78
}
@@ -110,7 +110,7 @@ func Test_receiveDHCommit_AtAwaitingDHKeyIgnoreIncomingMsgAndResendOurDHCommitMs
110
110
111
111
func Test_receiveDHCommit_AtAwaitingDHKeyForgetOurGxAndSendDHKeyMsgAndGoToAwaitingRevealSig (t * testing.T ) {
112
112
ourDHCommitAKE := fixtureConversation ()
113
- ourDHCommitAKE .dhCommitMessage ()
113
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
114
114
115
115
//make sure we store the same values when creating the DH commit
116
116
c := newConversation (otrV3 {}, fixtureRand ())
@@ -150,7 +150,7 @@ func Test_receiveDHKey_AtAuthStateNoneOrAuthStateAwaitingRevealSigIgnoreIt(t *te
150
150
151
151
func Test_receiveDHKey_TransitionsFromAwaitingDHKeyToAwaitingSigAndSendsRevealSig (t * testing.T ) {
152
152
ourDHCommitAKE := fixtureConversation ()
153
- ourDHCommitAKE .dhCommitMessage ()
153
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
154
154
155
155
c := bobContextAtAwaitingDHKey ()
156
156
c .sentRevealSig = false
@@ -167,7 +167,7 @@ func Test_receiveDHKey_TransitionsFromAwaitingDHKeyToAwaitingSigAndSendsRevealSi
167
167
168
168
func Test_receiveDHKey_AtAwaitingDHKeyStoresGyAndSigKey (t * testing.T ) {
169
169
ourDHCommitAKE := fixtureConversation ()
170
- ourDHCommitAKE .dhCommitMessage ()
170
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
171
171
172
172
c := bobContextAtAwaitingDHKey ()
173
173
@@ -182,7 +182,7 @@ func Test_receiveDHKey_AtAwaitingDHKeyStoresGyAndSigKey(t *testing.T) {
182
182
183
183
func Test_receiveDHKey_AtAwaitingDHKey_storesOursAndTheirDHKeys (t * testing.T ) {
184
184
ourDHCommitAKE := fixtureConversation ()
185
- ourDHCommitAKE .dhCommitMessage ()
185
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
186
186
187
187
c := bobContextAtAwaitingDHKey ()
188
188
@@ -201,7 +201,7 @@ func Test_receiveDHKey_AtAuthAwaitingSigIfReceivesSameDHKeyMsgRetransmitRevealSi
201
201
var nilB * big.Int
202
202
203
203
ourDHCommitAKE := fixtureConversation ()
204
- ourDHCommitAKE .dhCommitMessage ()
204
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
205
205
206
206
c := newConversation (otrV3 {}, fixtureRand ())
207
207
c .initAKE ()
@@ -373,7 +373,7 @@ func Test_receiveDecoded_receiveDHCommitMessageAndFailsWillSignalSetupError(t *t
373
373
msg := fixtureDHCommitMsgV2 ()
374
374
375
375
c .expectMessageEvent (t , func () {
376
- c .receiveDecoded (msg )
376
+ _ , _ , _ = c .receiveDecoded (msg )
377
377
}, MessageEventSetupError , nil , errShortRandomRead )
378
378
}
379
379
@@ -383,7 +383,7 @@ func Test_receiveDecoded_receiveDHKeyMessageAndFailsWillSignalSetupError(t *test
383
383
msg := fixtureDHKeyMsg (otrV3 {})
384
384
385
385
c .expectMessageEvent (t , func () {
386
- c .receiveDecoded (msg )
386
+ _ , _ , _ = c .receiveDecoded (msg )
387
387
}, MessageEventSetupError , nil , errShortRandomRead )
388
388
}
389
389
@@ -393,7 +393,7 @@ func Test_receiveDecoded_receiveRevealSigMessageAndFailsWillSignalSetupError(t *
393
393
msg := fixtureRevealSigMsg (otrV2 {})
394
394
395
395
c .expectMessageEvent (t , func () {
396
- c .receiveDecoded (msg )
396
+ _ , _ , _ = c .receiveDecoded (msg )
397
397
}, MessageEventSetupError , nil , errShortRandomRead )
398
398
}
399
399
@@ -403,7 +403,7 @@ func Test_receiveDecoded_receiveSigMessageAndSetMessageStateToEncrypted(t *testi
403
403
msg := fixtureSigMsg (otrV2 {})
404
404
405
405
c .expectMessageEvent (t , func () {
406
- c .receiveDecoded (msg )
406
+ _ , _ , _ = c .receiveDecoded (msg )
407
407
}, MessageEventSetupError , nil , errShortRandomRead )
408
408
}
409
409
@@ -451,7 +451,7 @@ func Test_receiveDecoded_receiveSigMessageAndStoresTheirKeyIDAndTheirCurrentDHPu
451
451
452
452
func Test_authStateAwaitingDHKey_receiveDHKeyMessage_returnsErrorIfprocessDHKeyReturnsError (t * testing.T ) {
453
453
ourDHCommitAKE := fixtureConversation ()
454
- ourDHCommitAKE .dhCommitMessage ()
454
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
455
455
456
456
c := newConversation (otrV3 {}, fixtureRand ())
457
457
c .initAKE ()
@@ -465,7 +465,7 @@ func Test_authStateAwaitingDHKey_receiveDHKeyMessage_returnsErrorIfprocessDHKeyR
465
465
466
466
func Test_authStateAwaitingDHKey_receiveDHKeyMessage_returnsErrorIfrevealSigMessageReturnsError (t * testing.T ) {
467
467
ourDHCommitAKE := fixtureConversation ()
468
- ourDHCommitAKE .dhCommitMessage ()
468
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
469
469
470
470
c := newConversation (otrV3 {}, fixedRand ([]string {"ABCD" }))
471
471
c .initAKE ()
@@ -480,7 +480,7 @@ func Test_authStateAwaitingDHKey_receiveDHKeyMessage_returnsErrorIfrevealSigMess
480
480
481
481
func Test_authStateAwaitingSig_receiveDHKeyMessage_returnsErrorIfprocessDHKeyReturnsError (t * testing.T ) {
482
482
ourDHCommitAKE := fixtureConversation ()
483
- ourDHCommitAKE .dhCommitMessage ()
483
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
484
484
485
485
c := newConversation (otrV3 {}, fixtureRand ())
486
486
c .initAKE ()
@@ -501,7 +501,7 @@ func Test_authStateAwaitingSig_receiveSigMessage_returnsErrorIfProcessSigFails(t
501
501
502
502
func Test_authStateAwaitingRevealSig_receiveDHCommitMessage_returnsErrorIfProcessDHCommitOrGenerateCommitInstanceTagsFailsFails (t * testing.T ) {
503
503
ourDHCommitAKE := fixtureConversation ()
504
- ourDHCommitAKE .dhCommitMessage ()
504
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
505
505
506
506
c := newConversation (otrV3 {}, fixtureRand ())
507
507
c .initAKE ()
@@ -513,7 +513,7 @@ func Test_authStateAwaitingRevealSig_receiveDHCommitMessage_returnsErrorIfProces
513
513
514
514
func Test_authStateNone_receiveDHCommitMessage_returnsErrorIfgenerateCommitMsgInstanceTagsFails (t * testing.T ) {
515
515
ourDHCommitAKE := fixtureConversation ()
516
- ourDHCommitAKE .dhCommitMessage ()
516
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
517
517
518
518
c := newConversation (otrV3 {}, fixtureRand ())
519
519
c .initAKE ()
@@ -525,7 +525,7 @@ func Test_authStateNone_receiveDHCommitMessage_returnsErrorIfgenerateCommitMsgIn
525
525
526
526
func Test_authStateNone_receiveDHCommitMessage_returnsErrorIfdhKeyMessageFails (t * testing.T ) {
527
527
ourDHCommitAKE := fixtureConversation ()
528
- ourDHCommitAKE .dhCommitMessage ()
528
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
529
529
530
530
c := newConversation (otrV2 {}, fixedRand ([]string {"ABCD" }))
531
531
c .initAKE ()
@@ -537,7 +537,7 @@ func Test_authStateNone_receiveDHCommitMessage_returnsErrorIfdhKeyMessageFails(t
537
537
538
538
func Test_authStateNone_receiveDHCommitMessage_returnsErrorIfProcessDHCommitFails (t * testing.T ) {
539
539
ourDHCommitAKE := fixtureConversation ()
540
- ourDHCommitAKE .dhCommitMessage ()
540
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
541
541
542
542
c := newConversation (otrV2 {}, fixtureRand ())
543
543
c .initAKE ()
@@ -549,7 +549,7 @@ func Test_authStateNone_receiveDHCommitMessage_returnsErrorIfProcessDHCommitFail
549
549
550
550
func Test_authStateAwaitingDHKey_receiveDHCommitMessage_failsIfMsgDoesntHaveHeader (t * testing.T ) {
551
551
ourDHCommitAKE := fixtureConversation ()
552
- ourDHCommitAKE .dhCommitMessage ()
552
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
553
553
554
554
c := newConversation (otrV2 {}, fixtureRand ())
555
555
c .initAKE ()
@@ -561,7 +561,7 @@ func Test_authStateAwaitingDHKey_receiveDHCommitMessage_failsIfMsgDoesntHaveHead
561
561
562
562
func Test_authStateAwaitingDHKey_receiveDHCommitMessage_failsIfCantExtractFirstPart (t * testing.T ) {
563
563
ourDHCommitAKE := fixtureConversation ()
564
- ourDHCommitAKE .dhCommitMessage ()
564
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
565
565
566
566
c := newConversation (otrV2 {}, fixtureRand ())
567
567
c .initAKE ()
@@ -573,7 +573,7 @@ func Test_authStateAwaitingDHKey_receiveDHCommitMessage_failsIfCantExtractFirstP
573
573
574
574
func Test_authStateAwaitingDHKey_receiveDHCommitMessage_failsIfCantExtractSecondPart (t * testing.T ) {
575
575
ourDHCommitAKE := fixtureConversation ()
576
- ourDHCommitAKE .dhCommitMessage ()
576
+ _ , _ = ourDHCommitAKE .dhCommitMessage ()
577
577
578
578
c := newConversation (otrV2 {}, fixtureRand ())
579
579
c .initAKE ()
@@ -605,7 +605,7 @@ func Test_akeHasFinished_willSignalThatWeAreTalkingToOurselvesIfWeAre(t *testing
605
605
c .theirKey = bobPrivateKey .PublicKey ()
606
606
607
607
c .expectMessageEvent (t , func () {
608
- c .akeHasFinished ()
608
+ _ = c .akeHasFinished ()
609
609
}, MessageEventMessageReflected , nil , nil )
610
610
}
611
611
@@ -616,7 +616,7 @@ func Test_akeHasFinished_willSignalThatWeHaveGoneSecureIfWeHave(t *testing.T) {
616
616
c .msgState = plainText
617
617
618
618
c .expectSecurityEvent (t , func () {
619
- c .akeHasFinished ()
619
+ _ = c .akeHasFinished ()
620
620
}, GoneSecure )
621
621
}
622
622
@@ -627,7 +627,7 @@ func Test_akeHasFinished_willSignalThatWeHaveGoneSecureIfWeWereFinished(t *testi
627
627
c .msgState = plainText
628
628
629
629
c .expectSecurityEvent (t , func () {
630
- c .akeHasFinished ()
630
+ _ = c .akeHasFinished ()
631
631
}, GoneSecure )
632
632
}
633
633
@@ -638,7 +638,7 @@ func Test_akeHasFinished_willSignalThatWeHaveGoneSecureIfWeHaveRefreshed(t *test
638
638
c .msgState = encrypted
639
639
640
640
c .expectSecurityEvent (t , func () {
641
- c .akeHasFinished ()
641
+ _ = c .akeHasFinished ()
642
642
}, StillSecure )
643
643
}
644
644
@@ -671,7 +671,7 @@ func Test_akeHasFinished_wipesAKEKeys(t *testing.T) {
671
671
state : authStateNone {},
672
672
}
673
673
674
- c .akeHasFinished ()
674
+ _ = c .akeHasFinished ()
675
675
676
676
assertDeepEquals (t , * c .ake , ake {state : c .ake .state })
677
677
}
0 commit comments