Browse Source

add GroupSync protocol to synchronise Distribution.ManagedGroup

IOSAD-201_from_Release_3.0
Volker Birk 8 months ago
parent
commit
8260aae371
3 changed files with 30 additions and 3 deletions
  1. +2
    -0
      .gitignore
  2. +3
    -3
      asn.1/Makefile
  3. +25
    -0
      codegen/sync.fsm

+ 2
- 0
.gitignore View File

@ -67,12 +67,14 @@ test/src/engine_test/LocalPlayground.cc
asn.1/.generated
src/KeySync_*
src/TrustSync_*
src/GroupSync_*
src/Sync_*
src/sync_codec.*
src/distribution_codec.*
src/storage_codec.*
asn.1/keysync.asn1
asn.1/trustsync.asn1
asn.1/groupsync.asn1
asn.1/keyreset.asn1
asn.1/sync.asn1
asn.1/distribution.asn1


+ 3
- 3
asn.1/Makefile View File

@ -19,8 +19,8 @@ libasn1.a: $(ALL_OBJECTS)
%.o: %.c %.h
$(CC) $(CFLAGS) $(CPPFLAGS) $(OPTIMIZE) $(ASN1C_INC) -c $< -o $@
Sync.c: sync.asn1 keysync.asn1 trustsync.asn1 pEp.asn1
$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 trustsync.asn1 $<
Sync.c: sync.asn1 keysync.asn1 trustsync.asn1 groupsync.asn1 pEp.asn1
$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 trustsync.asn1 groupsync.asn1 $<
rm -f converter-sample.c
touch Sync.c
@ -35,7 +35,7 @@ Storage.c: storage.asn1 messagestorage.asn1 pEp.asn1
touch Storage.c
clean:
rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1 trustsync.asn1 distribution.asn1 keyreset.asn1 managedgroup.asn1 storage.asn1 messagestorage.asn1
rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1 trustsync.asn1 groupsync.asn1 distribution.asn1 keyreset.asn1 managedgroup.asn1 storage.asn1 messagestorage.asn1
install:


+ 25
- 0
codegen/sync.fsm View File

@ -710,4 +710,29 @@ protocol Sync 1 {
field IdentityList trust;
}
}
fsm GroupSync 3, threshold=300 {
version 1, 0;
state InitState {
on Init {
}
}
message GroupSyncCreate 2 {
field Identity groupIdentity;
field Identity manager;
}
message GroupSyncAdopted 3 {
field Identity groupIdentity;
field Identity member;
}
message GroupSyncDissolve 4 {
field Identity groupIdentity;
field Identity manager;
}
}
}

Loading…
Cancel
Save