Module: FFI::OTR

Extended by:
Library
Included in:
UserState
Defined in:
lib/ffi/otr/otr.rb,
lib/ffi/otr/types.rb,
lib/ffi/otr/version.rb

Defined Under Namespace

Modules: Callbacks Classes: InsTag, OtrlMessageAppOps, UserState

Constant Summary collapse

POLICY_ALLOW_V1 =

proto.h

0x01
POLICY_ALLOW_V2 =
0x02
POLICY_ALLOW_V3 =
0x04
POLICY_REQUIRE_ENCRYPTION =
0x08
POLICY_SEND_WHITESPACE_TAG =
0x10
POLICY_WHITESPACE_START_AKE =
0x20
POLICY_ERROR_START_AKE =
0x40
POLICY_VERSION_MASK =
POLICY_ALLOW_V1 | POLICY_ALLOW_V2 | POLICY_ALLOW_V3
POLICY_NEVER =
0x00
POLICY_OPPORTUNISTIC =
POLICY_ALLOW_V2 | POLICY_ALLOW_V3 |
POLICY_SEND_WHITESPACE_TAG | POLICY_WHITESPACE_START_AKE | POLICY_ERROR_START_AKE
POLICY_MANUAL =
POLICY_ALLOW_V2 | POLICY_ALLOW_V3
POLICY_ALWAYS =
POLICY_ALLOW_V2 | POLICY_ALLOW_V3 |
POLICY_REQUIRE_ENCRYPTION | POLICY_WHITESPACE_START_AKE | POLICY_ERROR_START_AKE
POLICY_DEFAULT =
POLICY_OPPORTUNISTIC
INSTAG_MASTER =

instag.h

0
INSTAG_BEST =
1
INSTAG_RECENT =
2
INSTAG_RECENT_RECEIVED =
3
INSTAG_RECENT_SENT =
4
MIN_VALID_INSTAG =
0x100
VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.versionString

The version of the OTR library.

Returns:

  • (String)

    The version string of the library.


244
245
246
# File 'lib/ffi/otr/otr.rb', line 244

def self.version
  otrl_version
end