Fix: use gcrypt secure memory allocation

Fixes #5

Acked-by: Nikita Borisov <me+otr.im@nikita.ca>
Acked-by: David Goulet <dgoulet@ev0ke.net>
Signed-off-by: Julien Voisin <julien.voisin@dustri.org>
Add .gitignore

Fixes #9

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Add bootstrap script

This is to initialize automatically the repository with autoreconf.
It's the common name to use for that script (also used is "autogen.sh").

Update INSTALL file with bootstrap script

Fixes #10

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Modernize autoconf build system

The most important feature here is that the compilation is now silent
thus it's now much more easier to spot warnings/errors by the compiler.

To make it verbose, simply use "make V=1".

Fixes #11

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Fix memory leak

Fixes #18

Acked-by: David Goulet <dgoulet@ev0ke.net>
Signed-off-by: Julien Voisin <julien.voisin@dustri.org>
Add comment to clarify memory comparison in auth.c

Related to #20 that submitted a wrong patch due to bad understanding
thus the reason of this commit.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>

Fixes #20
Refactor otrl_mem_differ()

Using a convoluted while loop that changes the len variable is not
recommended.

Also, make the diff volatile so we are sure the compiler does not do
some unwanted optimization.

Acked-by: David Goulet <dgoulet@ev0ke.net>

Slightly tweaked by Ian Goldberg <ian@cypherpunks.ca>

Fixes #22
Fix: typo in message.h

Acked-by: David Goulet <dgoulet@ev0ke.net>

Fixes #33
Fix: possible memory leak in otrl_message_sending

Make sure we free the old messagep value if the fragment_and_send call
successfully sets it to a new value.

(Repairs a problem introduced in c87b3fe65)

Fixes #25

Reported-by: b42 <b42@srck.net>
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Signed-off-by: Ian Goldberg <iang@cs.uwaterloo.ca>
Fix: typo in README and context.c comment

Fixes #30

Signed-off-by: marshal <info@startplaza.nu>
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Signed-off-by: Ian Goldberg <iang@cs.uwaterloo.ca>
Fix: memory leak in fragment reassembly

Fixes #38

Acked-by: Matthew D. Green <matthewdgreen@gmail.com>
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Signed-off-by: Ian Goldberg <iang@cs.uwaterloo.ca>
Fix: otrl_context_forget() wrong check in iter loop

Ref:
https://lists.cypherpunks.ca/pipermail/otr-dev/2014-September/002199.html

Fixes #53

Reported-by: k007k <k007k@wp.pl>
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Signed-off-by: Ian Goldberg <iang@cs.uwaterloo.ca>
Fix: add missing declarations to context.h

This is mostly to be able to access it in the test suite following this
commit.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Signed-off-by: Ian Goldberg <iang@cs.uwaterloo.ca>
Catch up the ChangeLog
Correctly count the number of actions an OTR client must handle.

Thanks to Fred Yontz <fred@ridersite.org> for the report.
The lists.cypherpunks.ca URLs in the README should be https://
Bump version number to 4.1.0
Update NEWS for 4.1.0
Add David and bump the copyright date for files recently modified
Slight cleanup to mingw build instructions