mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
23 lines
783 B
Go
23 lines
783 B
Go
//go:build signal_legacy
|
|
|
|
package libsignal
|
|
|
|
/*
|
|
#include <signal_protocol.h>
|
|
#include <protocol.h>
|
|
*/
|
|
import "C"
|
|
|
|
// Vanilla libsignal-protocol-c has no OMEMO (protocol v4) wire format
|
|
// support at all, so these always fail with ErrInvalidVersion - callers
|
|
// (SessionCipher.Decrypt) should never reach here with useOmemoFraming set
|
|
// under this build, since ModernOMEMOSupported is false and the caller is
|
|
// expected to check it first.
|
|
|
|
func deserializeSignalMessageOmemo(ctx *Context, data *C.uint8_t, length C.size_t) (*C.signal_message, C.int) {
|
|
return nil, C.int(ErrInvalidVersion)
|
|
}
|
|
|
|
func deserializePreKeySignalMessageOmemo(ctx *Context, data *C.uint8_t, length C.size_t, registrationID uint32) (*C.pre_key_signal_message, C.int) {
|
|
return nil, C.int(ErrInvalidVersion)
|
|
}
|