
Add current year where its left out, add missing authors and remove authors without any contributions in that file.
52 lines
2.1 KiB
C
52 lines
2.1 KiB
C
/*
|
|
This file is part of telegram-purple
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
|
|
|
|
Copyright Matthias Jentsch, Vitaly Valtman, Christopher Althaus, Ben Wiederhake 2014-2015
|
|
*/
|
|
#ifndef __TELEGRAM_BASE_H__
|
|
#define __TELEGRAM_BASE_H__
|
|
|
|
#include "telegram-purple.h"
|
|
|
|
struct rsa_pubkey {
|
|
unsigned int e;
|
|
unsigned int n_len;
|
|
unsigned char *n_raw;
|
|
};
|
|
|
|
gboolean read_pubkey_file (const char *name, struct rsa_pubkey *dst);
|
|
|
|
void read_state_file (struct tgl_state *TLS);
|
|
void read_auth_file (struct tgl_state *TLS);
|
|
void write_auth_file (struct tgl_state *TLS);
|
|
void write_state_file (struct tgl_state *TLS);
|
|
void write_files_schedule (struct tgl_state *TLS);
|
|
void read_secret_chat_file (struct tgl_state *TLS);
|
|
void write_secret_chat_file (struct tgl_state *TLS);
|
|
void write_secret_chat_gw (struct tgl_state *TLS, void *extra, int success, struct tgl_secret_chat *E);
|
|
|
|
gchar *get_config_dir (char const *username);
|
|
gchar *get_user_pk_path ();
|
|
gchar *get_download_dir (struct tgl_state *TLS);
|
|
|
|
int tgp_visualize_key (struct tgl_state *TLS, unsigned char* sha1_key);
|
|
void tgp_create_group_chat_by_usernames (struct tgl_state *TLS, const char *title,
|
|
const char *users[], int num_users, int print_names);
|
|
|
|
void tgp_notify_on_error_gw (struct tgl_state *TLS, void *extra, int success);
|
|
int tgp_error_if_false (struct tgl_state *TLS, int val, const char *cause, const char *msg);
|
|
#endif
|