chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
site: Permit transport-peers-max to be equal to MAX_PEER_ADDRS
[secnet]
/
transform-eax.c
diff --git
a/transform-eax.c
b/transform-eax.c
index 5c7a1203c41a4dd3159d7513317d229e0d969a8c..f881abb9eb424ec444da7ce091e8a038592760f6 100644
(file)
--- a/
transform-eax.c
+++ b/
transform-eax.c
@@
-273,6
+273,8
@@
static list_t *transform_apply(closure_t *self, struct cloc loc,
cfgfatal(loc,"eax-serpent","parameter must be a dictionary\n");
dict=item->data.dict;
cfgfatal(loc,"eax-serpent","parameter must be a dictionary\n");
dict=item->data.dict;
+ SET_CAPAB_TRANSFORMNUM(CAPAB_TRANSFORMNUM_EAXSERPENT);
+
st->p.max_seq_skew=dict_read_number(dict, "max-sequence-skew",
False, "eax-serpent", loc, 10);
st->p.max_seq_skew=dict_read_number(dict, "max-sequence-skew",
False, "eax-serpent", loc, 10);
@@
-292,8
+294,7
@@
static list_t *transform_apply(closure_t *self, struct cloc loc,
padding_round = 1;
st->p.padding_mask = padding_round-1;
padding_round = 1;
st->p.padding_mask = padding_round-1;
- st->ops.max_start_pad=0;
- st->ops.max_end_pad= padding_round + st->p.tag_length + SEQLEN;
+ update_max_start_pad(&transform_max_start_pad, 0);
st->ops.keylen=0;
st->ops.create=transform_create;
st->ops.keylen=0;
st->ops.create=transform_create;