Browse Source

adding Distribution protocol family with KeyReset in it

group_key_reset
Volker Birk 2 years ago
parent
commit
6aaa2cea84
4 changed files with 17 additions and 7 deletions
  1. +6
    -1
      asn.1/Makefile
  2. +5
    -4
      asn.1/keyreset.asn1
  3. +2
    -0
      src/pEpEngine.h
  4. +4
    -2
      sync/Makefile

+ 6
- 1
asn.1/Makefile View File

@ -8,7 +8,7 @@ ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
.PHONY: all clean install uninstall
all: Sync.c
all: Sync.c Distribution.c
$(MAKE) libasn1.a
libasn1.a: $(ALL_OBJECTS)
@ -22,6 +22,11 @@ Sync.c: sync.asn1 keysync.asn1 pEp.asn1
rm -f converter-sample.c
touch Sync.c
Distribution.c: distribution.asn1 keyreset.asn1 pEp.asn1
$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keyreset.asn1 $<
rm -f converter-sample.c
touch Distribution.c
clean:
rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1


+ 5
- 4
asn.1/keyreset.asn1 View File

@ -1,18 +1,19 @@
-- This file is under BSD License 2.0
-- Key Reset protocol for p≡p
-- Copyleft 2019 by p≡p foundation
-- KeyReset protocol for p≡p
-- Copyleft 2016-2019 by p≡p foundation
-- Written by Volker Birk
KEYRESET
{ iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) keyreset(2) }
{ iso(1) org(3) dod(6) internet(1) private(4) enterprise(1) pEp(47878) distribution(2) keyreset(2) }
DEFINITIONS AUTOMATIC TAGS EXTENSIBILITY IMPLIED ::=
BEGIN
IMPORTS Version, Identity, Hash FROM PEP;
EXPORTS KeyReset;
IMPORTS Version, Identity, IdentityList, TID, Hash FROM PEP;
Commands ::= SEQUENCE {
version Version,


+ 2
- 0
src/pEpEngine.h View File

@ -120,6 +120,8 @@ typedef enum {
PEP_STATEMACHINE_INHIBITED_EVENT = 0x0986,
PEP_STATEMACHINE_CANNOT_SEND = 0x0987,
PEP_DISTRIBUTION_ILLEGAL_MESSAGE = 0x1002,
PEP_COMMIT_FAILED = 0xff01,
PEP_MESSAGE_CONSUME = 0xff02,
PEP_MESSAGE_IGNORE = 0xff03,


+ 4
- 2
sync/Makefile View File

@ -16,12 +16,14 @@ generated:
.statemachines: sync.fsm gen_statemachine.ysl2 fsm.yml2 functions.ysl2 | generated
$(YML2_PROC) -y gen_statemachine.ysl2 $< -o $@
.codecs: sync.fsm gen_codec.ysl2 fsm.yml2 functions.ysl2 | generated
.codecs: sync.fsm distribution.fsm gen_codec.ysl2 fsm.yml2 functions.ysl2 | generated
$(YML2_PROC) -y gen_codec.ysl2 $< -o $@
$(YML2_PROC) -y gen_codec.ysl2 distribution.fsm -o $@
.messages: sync.fsm gen_messages.ysl2 gen_message_func.ysl2 fsm.yml2 functions.ysl2 | generated
.messages: sync.fsm distribution.fsm gen_messages.ysl2 gen_message_func.ysl2 fsm.yml2 functions.ysl2 | generated
$(YML2_PROC) -y gen_messages.ysl2 $< -o $@
$(YML2_PROC) -y gen_message_func.ysl2 $< -o $@
$(YML2_PROC) -y gen_messages.ysl2 distribution.fsm -o $@
clean:
rm -rf generated


Loading…
Cancel
Save