about summary refs log tree commit diff stats
path: root/config.default.h
Commit message (Expand)AuthorAgeFilesLines
* I prefer BORDERPX=1Anselm R. Garbe2007-01-191-1/+1
* moved BORDERPX to config.*.hAnselm R. Garbe2007-01-171-0/+1
* removed firefox rule from default.hAnselm R. Garbe2007-01-161-1/+0
* applied new default colorsAnselm R. Garbe2007-01-161-5/+5
* implemented new color scheme accordingly to Sanders proposalAnselm R. Garbe2007-01-141-2/+2
* removed mode label stuffAnselm R. Garbe2007-01-141-1/+1
* added comment to %u in config.default.h, added Button{4.5} support on mode labelAnselm R. Garbe2007-01-101-2/+2
* implemented nmaster appearance in mode label (using %u)Anselm R. Garbe2007-01-081-1/+1
* I received Sander's complain just in time ;) 2.9Anselm R. Garbe2007-01-081-4/+4
* fofofoAnselm R. Garbe2007-01-081-4/+4
* extended default tags to 1-9Anselm R. Garbe2007-01-081-1/+17
* changed shortcuts to M-i and M-dAnselm R. Garbe2007-01-051-2/+2
* changed plus key to MODKEY-Shift-plus (US-layout restrictions ;)Anselm R. Garbe2007-01-051-1/+1
* added MODKEY-{plus,minus} shortcuts (increasing/decreasing master clients)Anselm R. Garbe2007-01-051-0/+2
* experimental version which allows master clients being increased/decreasedAnselm R. Garbe2007-01-051-0/+1
* correctionsarg@mig292007-01-021-1/+1
* next version will contain updated copyright noticearg@mig292007-01-021-1/+1
* found compromise for fonts 2.6arg@mig292006-12-071-1/+1
* nah, people should define 'fixed' to be compatible with their localearg@mig292006-12-071-1/+1
* using a UTF-8 capable fixed fontarg@mig292006-12-071-1/+1
* removed viewall(), replaced with view(-1); added tag(-1) to tag a client with...arg@mig292006-11-301-1/+2
* returning to old Key structarg@mig292006-11-271-33/+32
* changing Key.func into Key.func[NFUNCS], this allows sequences execution of f...arg@mig292006-11-271-34/+35
* added togglefloat to hg tip (i consider this useful for some cases), using MO...arg@mig292006-11-271-0/+1
* renamed resizecol into resizemaster 2.1arg@mig292006-10-311-2/+2
* added screen-border snapping in floating mode, feels quite wellarg@mig292006-10-301-0/+1
* applied sander's config.*h nitpick patcharg@mig292006-10-261-1/+1
* code polishing, removed unnecessary newlinesAnselm R. Garbe2006-10-061-2/+1
* removed the stack position stuffAnselm R. Garbe2006-10-051-7/+4
* changing MASTER value from percent into per millAnselm R. Garbe2006-10-051-3/+3
* keep master ratio on resizecol -> arrangeAnselm R. Garbe2006-10-051-2/+2
* added symbols for different modesAnselm R. Garbe2006-09-291-1/+2
* removed the direction flippingAnselm R. Garbe2006-09-291-2/+0
* small changeAnselm R. Garbe2006-09-291-1/+1
* added the new dotile as described on mlAnselm R. Garbe2006-09-291-0/+2
* first step to a more flexible dotile() algorithmAnselm R. Garbe2006-09-291-1/+3
* changed order of colordefs in config.h's, changed config.arg.h to fit to new ...arg@mmvi2006-09-261-3/+3
* implemented the maximization as I described on the mailinglist, this feels be...arg@mmvi2006-09-221-1/+0
* made args mode symbols the default ones (the default ones look too ugly)Anselm R. Garbe2006-09-061-2/+2
* renamed resizetile into resizecolAnselm R. Garbe2006-09-051-2/+2
* well ok, added Mod-s to default bindings (however, I don't need it)Anselm R. Garbe2006-09-051-0/+1
* s/growcol/resizetile/gAnselm R. Garbe2006-09-051-1/+1
* I really need column growing, now pushing upstreamAnselm R. Garbe2006-09-051-0/+1
* changed shortcut into Mod1-0Anselm R. Garbe2006-08-311-1/+1
* added viewall to mainstream (only Ross Mohns version, not the toggle)Anselm R. Garbe2006-08-311-0/+1
* applied sanders somepatches.patchAnselm R. Garbe2006-08-281-1/+1
* changed order of optionsAnselm R. Garbe2006-08-251-2/+2
* s/TILED/TILE/gAnselm R. Garbe2006-08-251-1/+1
* removed a bunch of lines, made mode symbols configurableAnselm R. Garbe2006-08-251-0/+2
* new color stuff/new rendering stuffAnselm R. Garbe2006-08-251-3/+8
class='alt'>

                                    
      
/*
 * gpg.h
 *
 * Copyright (C) 2012 - 2016 James Booth <boothj5@gmail.com>
 *
 * This file is part of Profanity.
 *
 * Profanity 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 3 of the License, or
 * (at your option) any later version.
 *
 * Profanity 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 Profanity.  If not, see <https://www.gnu.org/licenses/>.
 *
 * In addition, as a special exception, the copyright holders give permission to
 * link the code of portions of this program with the OpenSSL library under
 * certain conditions as described in each individual source file, and
 * distribute linked combinations including the two.
 *
 * You must obey the GNU General Public License in all respects for all of the
 * code used other than OpenSSL. If you modify file(s) with this exception, you
 * may extend this exception to your version of the file(s), but you are not
 * obligated to do so. If you do not wish to do so, delete this exception
 * statement from your version. If you delete this exception statement from all
 * source files in the program, then also delete it here.
 *
 */

#ifndef PGP_GPG_H
#define PGP_GPG_H

typedef struct pgp_key_t {
    char *id;
    char *name;
    char *fp;
    gboolean encrypt;
    gboolean sign;
    gboolean certify;
    gboolean authenticate;
    gboolean secret;
} ProfPGPKey;

typedef struct pgp_pubkeyid_t {
    char *id;
    gboolean received;
} ProfPGPPubKeyId;

void p_gpg_init(void);
void p_gpg_close(void);
void p_gpg_on_connect(const char *const barejid);
void p_gpg_on_disconnect(void);
GHashTable* p_gpg_list_keys(void);
void p_gpg_free_keys(GHashTable *keys);
gboolean p_gpg_addkey(const char *const jid, const char *const keyid);
GHashTable* p_gpg_pubkeys(void);
gboolean p_gpg_valid_key(const char *const keyid, char **err_str);
gboolean p_gpg_available(const char *const barejid);
const char* p_gpg_libver(void);
char* p_gpg_sign(const char *const str, const char *const fp);
void p_gpg_verify(const char *const barejid, const char *const sign);
char* p_gpg_encrypt(const char *const barejid, const char *const message, const char *const fp);
char* p_gpg_decrypt(const char *const cipher);
void p_gpg_free_decrypted(char *decrypted);
char* p_gpg_autocomplete_key(const char *const search_str);
void p_gpg_autocomplete_key_reset(void);
char* p_gpg_format_fp_str(char *fp);

#endif