Skip to content

Commit 9fc0f48

Browse files
committed
stabilizing certificate exchange in sn2
1 parent f56c1c6 commit 9fc0f48

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/net/sharksystem/asap/ASAPEngine.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ public void createChannel(CharSequence owner, CharSequence uri, Collection<CharS
112112
}
113113
}
114114

115+
public void createChannel(CharSequence urlTarget) throws IOException, ASAPException {
116+
this.createChannel(urlTarget, (CharSequence) null);
117+
}
118+
115119
@Override
116120
public void createChannel(CharSequence urlTarget, CharSequence recipient) throws IOException, ASAPException {
117121
Set<CharSequence> recipients = new HashSet<>();

src/net/sharksystem/asap/ASAPStorage.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ public interface ASAPStorage {
109109
*/
110110
void createChannel(CharSequence urlTarget, CharSequence recipient) throws IOException, ASAPException;
111111

112+
/**
113+
* Create open channel
114+
* @param urlTarget
115+
* @throws IOException
116+
* @throws ASAPException
117+
*/
118+
void createChannel(CharSequence urlTarget) throws IOException, ASAPException;
119+
112120
void removeChannel(CharSequence uri) throws IOException;
113121

114122
/**

src/net/sharksystem/asap/protocol/PDU_Impl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public String toString() {
4747
case ASAP_1_0.OFFER_CMD: sb.append("O"); break;
4848
case ASAP_1_0.ASSIMILATE_CMD: sb.append("A"); break;
4949
}
50-
sb.append(" | sender: "); if(peerSet) sb.append(this.peer); else sb.append("X");
50+
sb.append(" | sender: "); if(peerSet) sb.append(this.peer); else sb.append("not set");
5151
sb.append(" | format: "); sb.append(format);
52-
sb.append(" | channel: "); if(channelSet) sb.append(this.channel); else sb.append("X");
53-
sb.append(" | era: "); if(eraSet) sb.append(era); else sb.append("X");
52+
sb.append(" | channel: "); if(channelSet) sb.append(this.channel); else sb.append("not set");
53+
sb.append(" | era: "); if(eraSet) sb.append(era); else sb.append("not set");
5454

5555
return sb.toString();
5656
}

0 commit comments

Comments
 (0)