Properly handle DECLINE messages in START state
Previously, DECLINE messages let directly to the START state for introducer and introducees. So incoming ACCEPT and DECLINE messages needed to be ignored in START state introducing undefined behavior into the protocol. This is fixed with this commit by adding two additional states to the introducer state machine as well as making use of the existing LOCAL_DECLINED state for the introducees.
Showing
- briar-core/src/main/java/org/briarproject/briar/introduction/AbstractProtocolEngine.java 19 additions, 0 deletions...iarproject/briar/introduction/AbstractProtocolEngine.java
- briar-core/src/main/java/org/briarproject/briar/introduction/IntroduceeProtocolEngine.java 34 additions, 42 deletions...rproject/briar/introduction/IntroduceeProtocolEngine.java
- briar-core/src/main/java/org/briarproject/briar/introduction/IntroduceeSession.java 2 additions, 2 deletions...rg/briarproject/briar/introduction/IntroduceeSession.java
- briar-core/src/main/java/org/briarproject/briar/introduction/IntroducerProtocolEngine.java 31 additions, 52 deletions...rproject/briar/introduction/IntroducerProtocolEngine.java
- briar-core/src/main/java/org/briarproject/briar/introduction/IntroducerState.java 5 additions, 4 deletions.../org/briarproject/briar/introduction/IntroducerState.java
- briar-core/src/test/java/org/briarproject/briar/introduction/IntroductionIntegrationTest.java 31 additions, 10 deletions...oject/briar/introduction/IntroductionIntegrationTest.java
- briar-core/src/test/java/org/briarproject/briar/introduction/IntroductionIntegrationTestComponent.java 1 addition, 0 deletions...ar/introduction/IntroductionIntegrationTestComponent.java
Loading
Please register or sign in to comment