Browse Source

new message: ReceiverRating

ENGINE-812
Volker Birk 1 year ago
parent
commit
17fc33b8de
4 changed files with 9 additions and 5 deletions
  1. +2
    -2
      asn.1/pEp.asn1
  2. +2
    -2
      sync/gen_message_func.ysl2
  3. +1
    -1
      sync/gen_messages.ysl2
  4. +4
    -0
      sync/sync.fsm

+ 2
- 2
asn.1/pEp.asn1 View File

@ -1,7 +1,7 @@
-- This file is under BSD License 2.0
-- Sync protocol for p≡p
-- Copyright (c) 2016, 2017 p≡p foundation
-- Copyright (c) 2016, 2010 p≡p foundation
-- Written by Volker Birk
@ -12,7 +12,7 @@ DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
BEGIN
EXPORTS Identity, IdentityList, TID, Hash, Version;
EXPORTS Identity, IdentityList, TID, Hash, Version, Rating;
ISO639-1 ::= PrintableString(FROM ("a".."z")) (SIZE(2))
Hex ::= PrintableString(FROM ("A".."F") | FROM ("0".."9"))


+ 2
- 2
sync/gen_message_func.ysl2 View File

@ -296,7 +296,7 @@ template "field", mode=update_message {
const "state" > «yml:lcase(ancestor::protocol/@name)»_state.«yml:lcase(ancestor::fsm/@name)»
choose {
when "func:basicType()" // copyable
when "func:basicType() or @type='Rating'" // copyable
||
msg->choice.«yml:lcase(../../@name)».choice.«$message_name».«@name»
= session->«$state».«@name»;
@ -380,7 +380,7 @@ template "message", mode=update_state {
template "field", mode=update_state {
param "message_name";
choose {
when "func:basicType()" // copyable
when "func:basicType() or @type='Rating'" // copyable
||
session->«yml:lcase(../../../@name)»_state.«yml:lcase(../../@name)».«@name» = msg->choice.«yml:lcase(../../@name)»
.choice.«$message_name».«@name»;


+ 1
- 1
sync/gen_messages.ysl2 View File

@ -15,7 +15,7 @@ tstylesheet {
include ./functions.ysl2
function "pEp_imports"
| IMPORTS Version, Identity, IdentityList, TID, Hash FROM PEP;
| IMPORTS Version, Identity, IdentityList, TID, Hash, Rating FROM PEP;
function "header"
||


+ 4
- 0
sync/sync.fsm View File

@ -679,5 +679,9 @@ protocol Sync 1 {
message SynchronizeGroupKeys 21, ratelimit=60 {
}
message ReceiverRating 22, security=unencrypted {
field Rating rating;
}
}
}

Loading…
Cancel
Save