diff options
author | BakasuraRCE <bakasura@protonmail.ch> | 2020-07-21 19:16:50 -0500 |
---|---|---|
committer | Patrick <tingping@tingping.se> | 2020-10-16 23:19:10 +0200 |
commit | 078af20e8b3bff93dd42972e4ef01702e7e1fe2b (patch) | |
tree | db7196c2ce86d9243a784145b3d7b5a04f00b285 /plugins/fishlim/fish.h | |
parent | bd3f3fa5f70c624926d06884b328de59730fc93c (diff) |
fishlim: Implement correct handling of long and UTF-8 messages
Diffstat (limited to 'plugins/fishlim/fish.h')
-rw-r--r-- | plugins/fishlim/fish.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/fishlim/fish.h b/plugins/fishlim/fish.h index daf17acf..6a2e911c 100644 --- a/plugins/fishlim/fish.h +++ b/plugins/fishlim/fish.h @@ -1,7 +1,7 @@ /* Copyright (c) 2010 Samuel Lidén Borell <samuel@kodafritt.se> - Copyright (c) 2019 <bakasura@protonmail.ch> + Copyright (c) 2019-2020 <bakasura@protonmail.ch> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -40,7 +40,8 @@ char *fish_base64_decode(const char *message, size_t *final_len); char *fish_encrypt(const char *key, size_t keylen, const char *message, size_t message_len, enum fish_mode mode); char *fish_decrypt(const char *key, size_t keylen, const char *data, enum fish_mode mode, size_t *final_len); char *fish_decrypt_str(const char *key, size_t keylen, const char *data, enum fish_mode mode); -char *fish_encrypt_for_nick(const char *nick, const char *data, enum fish_mode *omode); +gboolean fish_nick_has_key(const char *nick); +GSList *fish_encrypt_for_nick(const char *nick, const char *data, enum fish_mode *omode, size_t command_len); char *fish_decrypt_from_nick(const char *nick, const char *data, enum fish_mode *omode); #endif |