Send someone a known channel key encrypted and signed
Accept and set keys

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
Fixed message output

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
try to fix issue #17, not tested yet

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
Merge branch 'sendkey' of https://github.com/IRCrypt/ircrypt-weechat into sendkey
Merge branch 'master' into sendkey
Issue #10, Issue #11, Create a buffer for key exchange

When initiating a key exchange, all user notifications are displayed in
a new buffer called *ircrypt. This patch introduces the basic functions
for dealing with this buffer:

  ircrypt_get_buffer        Get the buffer or create it if non-existent
  ircrypt_buffer_input_cb   Handle inputs
  ircrypt_buffer_close_cb   Removed the buffer pointer if closed

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
Issue #11, mute the key exchange notices

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
added message in ircrypt buffer for received key!

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
change output of key exchange and catch error for empty messages

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
get first ask for key exchange ready

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
fixed minor issues in ircrypt_keyex_keyask and add command to cancel all requests, issue #11

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
Issue #11, Accepting key requests

Now accepting key requests. When a request is fully received, the user
is prompted to decrypt the requests and verify the signature which is
not done automatically as it requires the GPG key passphrase to be
entered using e.g. pinentry.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
Issue #11, Handling of Key Requests

Incoming requests will now be buffered. Its signature can be verified
and subsequently they can be accepted or declined. If they are accepted,
the key for the requested channel will be signed, encrypted and send to
the requester.

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
fix merge conflicts

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
Work on issue #28

Put the command verify in a new function. verify can now run as an
/ircrypt command or in the ircrypt buffer with or without arguments

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
Add UCRY- Error notice to command decline

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
Rearrange the functions order

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
Try to get Keyexchange working

Split verify in verify requests and verify keys. Add a function to
verify keys and get options working for accept, decline the keys or
cancel the verification. if verify keys, verify requests are resetted
and vice versa.
/ircrypt command verify not updated yet.
Also delete the abort function and the ircrypt_requests set, because
there is no way in this programm to send a key without request and if
you have requested a key, its your own fault that you have the work to
decline it.

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>
Bugfix

if typing only verify in ircrypt buffer nothing happend
received keys are not stored as list in ircrypt.conf anymore

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>