Skip to content

Commit

Permalink
Updates for full omemo:2 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Nov 14, 2022
1 parent 32e43fa commit 0efc07f
Show file tree
Hide file tree
Showing 43 changed files with 604 additions and 4,537 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(POLICY CMP0042)
endif()

SET(OMEMO_C_VERSION_MAJOR 0)
SET(OMEMO_C_VERSION_MINOR 4)
SET(OMEMO_C_VERSION_MINOR 5)
SET(OMEMO_C_VERSION_PATCH 0)
SET(OMEMO_C_VERSION ${OMEMO_C_VERSION_MAJOR}.${OMEMO_C_VERSION_MINOR}.${OMEMO_C_VERSION_PATCH})

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ versions 0.3.0 and later.
- HKDF info strings
- Protocol buffer encoding
- Signature scheme (uses XEd25519 instead of custom "Curve25519 signatures")
- Specification-compliant double ratchet
- Support for Ed25519 public keys
- Various serializations
- Removes unused functionality

# Building libomemo-c

Expand Down Expand Up @@ -221,7 +225,7 @@ The form and manner of this distribution makes it eligible for export under the
## License
```
Copyright 2015-2016 Open Whisper Systems
Copyright 2020 Dino Team
Copyright 2020-2022 Dino Team

Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down
15 changes: 0 additions & 15 deletions protobuf/FingerprintProtocol.proto

This file was deleted.

5 changes: 4 additions & 1 deletion protobuf/LocalStorageProtocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ message SessionStructure {

optional bool needsRefresh = 12;
optional bytes aliceBaseKey = 13;

optional bool localIsAlice = 14;
}

message RecordStructure {
Expand All @@ -78,6 +80,7 @@ message SignedPreKeyRecordStructure {
optional bytes privateKey = 3;
optional bytes signature = 4;
optional fixed64 timestamp = 5;
optional bytes signature_omemo = 6;
}

message IdentityKeyPairStructure {
Expand Down Expand Up @@ -109,4 +112,4 @@ message SenderKeyStateStructure {

message SenderKeyRecordStructure {
repeated SenderKeyStateStructure senderKeyStates = 1;
}
}
2 changes: 1 addition & 1 deletion protobuf/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

all:
protoc-c --c_out=../src/ WhisperTextProtocol.proto LocalStorageProtocol.proto FingerprintProtocol.proto OMEMO.proto
protoc-c --c_out=../src/ WhisperTextProtocol.proto LocalStorageProtocol.proto OMEMO.proto
13 changes: 0 additions & 13 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ include_directories(
set(protobuf_SRCS
LocalStorageProtocol.pb-c.c
WhisperTextProtocol.pb-c.c
FingerprintProtocol.pb-c.c
OMEMO.pb-c.c
)

Expand Down Expand Up @@ -52,14 +51,6 @@ set(omemo_SRCS
sender_key_state.h
sender_key_record.c
sender_key_record.h
group_session_builder.c
group_session_builder.h
group_cipher.c
group_cipher.h
fingerprint.c
fingerprint.h
device_consistency.c
device_consistency.h
)

add_subdirectory(curve25519)
Expand Down Expand Up @@ -99,10 +90,6 @@ INSTALL(
sender_key.h
sender_key_state.h
sender_key_record.h
group_session_builder.h
group_cipher.h
fingerprint.h
device_consistency.h
DESTINATION ${INCLUDE_INSTALL_DIR}/omemo
)

Expand Down
214 changes: 0 additions & 214 deletions src/FingerprintProtocol.pb-c.c

This file was deleted.

Loading

0 comments on commit 0efc07f

Please sign in to comment.