Laukik Hase 5169e22277 protocomm: Generated proto-c and python files for SRP6a scheme 3 tahun lalu
..
CMakeLists.txt 5169e22277 protocomm: Generated proto-c and python files for SRP6a scheme 3 tahun lalu
README.md 98cf38ca9c cmake : Add CMakeLists.txt and update READMEs for re-compilation of proto files 6 tahun lalu
constants.proto d0c777b2e1 Protocomm : Added component core for protocol communication 7 tahun lalu
makefile d0c777b2e1 Protocomm : Added component core for protocol communication 7 tahun lalu
sec0.proto d0c777b2e1 Protocomm : Added component core for protocol communication 7 tahun lalu
sec1.proto d0c777b2e1 Protocomm : Added component core for protocol communication 7 tahun lalu
sec2.proto 5169e22277 protocomm: Generated proto-c and python files for SRP6a scheme 3 tahun lalu
session.proto 5169e22277 protocomm: Generated proto-c and python files for SRP6a scheme 3 tahun lalu

README.md

Protobuf files for implementing protocol communication packets

Protocomm uses Google Protobuf for language, transport and architecture agnostic protocol communication. These proto files define the protocomm packet structure, separated across multiple files:

  • contants.proto - Defines the "Status" structure for conveying the success or failure of a single protocomm transaction
  • sec0.proto - Defines the Security0 Command and Response packet structures
  • sec1.proto - Defines the Security1 Command and Response packet structures
  • session.proto - Defines the protocomm transacion packets for session establishment which internally has a Security packet as payload

Note : These proto files are not automatically compiled during the build process.

Compilation

Compilation requires protoc (Protobuf Compiler) and protoc-c (Protobuf C Compiler) installed. Since the generated files are to remain the same, as long as the proto files are not modified, therefore the generated files are already available under components/protocomm/proto-c and components/protocomm/python directories, and thus running cmake / make (and installing the Protobuf compilers) is optional.

If using cmake follow the below steps. If using make, jump to Step 2 directly.

Step 1 (Only for cmake)

When using cmake, first create a build directory and call cmake from inside:

mkdir build
cd build
cmake ..

Step 2

Simply run make to generate the respective C and Python files. The newly created files will overwrite those under components/protocomm/proto-c and components/protocomm/python