Browse Source

ignore ReceiverRating in Sync

ENGINE-872
Volker Birk 11 months ago
parent
commit
d0914fa8e7
2 changed files with 20 additions and 3 deletions
  1. +19
    -2
      sync/gen_statemachine.ysl2
  2. +1
    -1
      sync/sync.fsm

+ 19
- 2
sync/gen_statemachine.ysl2 View File

@ -533,6 +533,16 @@ tstylesheet {
if (!(session && fsm > None && message_type > None))
return PEP_ILLEGAL_VALUE;
||
if "fsm/message[@security='ignore']" {
|
|> // ignore
|> switch (message_type) {
for "fsm/message[@security='ignore']" {
|>> case «../@name»_PR_«yml:mixedCase(@name)»:
|>>> return PEP_STATUS_OK;
}
|> }
}
if "fsm/message[@ratelimit>0]" {
||
@ -624,7 +634,7 @@ tstylesheet {
break;
// these go anycast; previously used address is sticky (unicast)
`` for "fsm/message[@type='anycast']" |>> case «../@name»_PR_«yml:mixedCase(@name)»:
`` for "fsm/message[@type='anycast' and @security!='ignore']" |>> case «../@name»_PR_«yml:mixedCase(@name)»:
// if we have a comm_partner fixed send it there
if (session->«yml:lcase(@name)»_state.comm_partner.identity) {
pEp_identity *channel = identity_dup(session->«yml:lcase(@name)»_state.comm_partner.identity);
@ -1294,7 +1304,7 @@ tstylesheet {
||
}
for "message[@security!='unencrypted' and @security!='untrusted']" {
for "message[@security!='unencrypted' and @security!='untrusted' and @security!='ignore']" {
if "position()=1" |>> // these messages must come through a trusted channel
||
case «../@name»_PR_«yml:mixedCase(@name)»:
@ -1314,6 +1324,13 @@ tstylesheet {
||
}
for "message[@security='ignore']"
||
case «../@name»_PR_«yml:mixedCase(@name)»:
free_«../../@name»_message(msg);
return PEP_STATUS_OK;
||
||
default:
status = PEP_«yml:ucase(ancestor::protocol/@name)»_ILLEGAL_MESSAGE;


+ 1
- 1
sync/sync.fsm View File

@ -685,7 +685,7 @@ protocol Sync 1 {
// decrypt_message() to mark a previously computed rating. It is only
// valid when signed with an own key.
message ReceiverRating 22, security=unencrypted {
message ReceiverRating 22, security=ignore {
field Rating rating;
}
}


Loading…
Cancel
Save