Skip to content

Off the Record (OTR) Messaging Support

Eric Mertens edited this page Jul 31, 2019 · 7 revisions

Off-the-Record Messaging

OTR is a protocol for providing encryption, authentication, deniability, and perfect forward secrecy for chat clients. This protocol is supported by a wide-range of chat clients either directly or via plugins.

Support for OTR is available in glirc via an optional plugin that links against the libotr reference implementation.

Building

The OTR plugin requires libotr to be installed. This can be accomplished on macOS via Homebrew. This process will build glirc-otr.dylib

brew install libotr
git clone https://github.com/glguy/irc-core
cd irc-core/otr-extension
make macos

Installation

Copy the dynamic library to a permanent location and add it to your configuration file.

cp glirc-otr.bundle ~/.config/glirc/

Update your configuration file (~/.config/glirc/config) to list this extension. Remember that relative paths are relative to your home directory in the configuration file.

extensions: [".config/glirc/glirc-otr.bundle"]

Usage

OTR is only supported in direct messages and not for whole channels.

To start an OTR session or to refresh an existing one type the chat message ?OTR?

Commands:

  • /extension OTR end - End the OTR session in the current window
  • /extension OTR ask <secret> - Initiate the SMP protocol using a pre-shared secret
  • /extension OTR secret <secret> - Respond to an SMP question using a pre-shared secret
  • /extension OTR status - Display information for current connection
  • /extension OTR trust - Manually mark the current connection as trusted
  • /extension OTR untrust - Manually mark the current connection as untrusted