summaryrefslogtreecommitdiff
path: root/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-10-27 21:53:02 +0000
committerPeter Palfrader <peter@palfrader.org>2003-10-27 21:53:02 +0000
commitc9e090818272174cf38de4d498d4e1bd6c7f4dd5 (patch)
tree32003661606a0da0eab577c245bccb7b2e3719fa /src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
parentbf0ee8eb55de61e98a745d5ea13087c733d4b4b0 (diff)
Further work on SURBs. Decoding and further tests still required.
Diffstat (limited to 'src/org/noreply/fancydress/type3/routing/RoutingSMTP.java')
-rw-r--r--src/org/noreply/fancydress/type3/routing/RoutingSMTP.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java b/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
index 77df42f..b969841 100644
--- a/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
+++ b/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java
@@ -50,7 +50,10 @@ public class RoutingSMTP extends RoutingDestination {
byte[] result = new byte[length];
int pos = 0;
- System.arraycopy(CryptoPrimitives.rand(DECODINGHANDLE_LEN), 0, result, pos, DECODINGHANDLE_LEN);
+ if (decodingHandle == null)
+ System.arraycopy(CryptoPrimitives.rand(DECODINGHANDLE_LEN), 0, result, pos, DECODINGHANDLE_LEN);
+ else
+ System.err.println("Using set decoding handle for "+mailbox);
pos += DECODINGHANDLE_LEN;
System.arraycopy(Util.toOctets(mailbox), 0, result, pos, mailbox.length());
pos += mailbox.length();