about summary refs log tree commit diff stats
path: root/tools/conf
Commit message (Expand)AuthorAgeFilesLines
* tools gitolite fix deploy permSilvino Silva2018-04-111-1/+1
* iptables moved to coreSilvino Silva2018-04-113-599/+0
* tools syslogng revisionSilvino Silva2018-04-101-2/+9
* tools iptables revisionSilvino Silva2018-04-032-142/+167
* dnsmasq conf with different netSilvino Silva2018-02-231-15/+34
* tools iptables script revision, bridge from ethernetSilvino Silva2017-09-241-137/+200
* added logrotate configurationSilvino Silva2017-09-0312-0/+261
* added syslog-ng configuration, fix link to configurationSilvino Silva2017-08-271-0/+181
* first hardened testSilvino Silva2017-08-025-185/+2019
* overall revisionSilvino Silva2017-05-132-11/+44
* core and tools revisionSilvino Silva2017-02-271-0/+1
* overall revesionSilvino Silva2017-02-251-2/+3
* tools hosts dnsmasq updatedSilvino Silva2017-02-231-6/+48
* tools x configuration revisionSilvino Silva2017-02-204-8/+96
* tools network revisionSilvino Silva2017-02-136-2545/+8413
* openssh sslv2 drown fixSilvino Silva2017-02-041-1/+2
* fix tools nginx gitweb serverSilvino Silva2017-01-141-18/+12
* clean url in gitwebSilvino Silva2017-01-144-10/+127
* network revisionSilvino Silva2017-01-142-49/+214
* new gitolite hookSilvino Silva2017-01-126-96/+387
* fix tools gitolite hook deploywebSilvino Silva2016-10-262-6/+5
* update etc/gitweb.confSilvino Silva2016-10-251-0/+16
* gitolite and gitweb revisionSilvino Silva2016-10-253-0/+297
* X revisionSilvino Silva2016-10-231-0/+16
* tools network revisionSilvino Silva2016-10-163-7/+13
* tools revisionSilvino Silva2016-10-151-0/+141
* tools postgresql configuration files revisionSilvino Silva2016-10-032-2/+625
* nginx documentation and configuration reviewSilvino Silva2016-10-035-92/+136
* postgresql revisionSilvino Silva2016-09-292-0/+112
* network revisionSilvino Silva2016-09-282-8/+77
* nginx revision with mantisbtSilvino Silva2016-09-283-9/+31
* nginx configuration fixSilvino Silva2016-09-281-1/+1
* tool ningx revision, added install scriptsSilvino Silva2016-09-284-0/+389
* final 0.2.1 revisionSilvino Silva2016-09-222-133/+108
* Merge branch 'b-mail-system' into r-0.2.1Silvino Silva2016-09-211-22/+27
|\
| * initial exim and mutt local delivery testSilvino Silva2016-09-211-22/+27
* | dnsmasq and dnscrypt revisionSilvino Silva2016-09-213-11997/+28631
* | initial dnsmasq configurationSilvino Silva2016-09-212-0/+12844
|/
* gpg revisionSilvino Silva2016-09-211-7/+2
* moved tool config from coreSilvino Silva2016-09-2012-0/+592
round-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * tlscerts.h
 *
 * Copyright (C) 2012 - 2015 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 <http://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 TLSCERTS_H
#define TLSCERTS_H

typedef struct tls_cert_t {
    char *fingerprint;
    char *domain;
    char *organisation;
    char *email;
    char *notbefore;
    char *notafter;
} TLSCertificate;

void tlscerts_init(void);

TLSCertificate* tlscerts_new(const char *const fingerprint, const char *const domain,
    const char *const organisation, const char *const email,
    const char *const notbefore, const char *const notafter);

gboolean tlscerts_exists(const char *const fingerprint);

void tlscerts_add(TLSCertificate *cert);

gboolean tlscerts_revoke(const char *const fingerprint);

void tlscerts_free(TLSCertificate *cert);

GList* tlscerts_list(void);

char* tlscerts_complete(const char *const prefix);

void tlscerts_reset_ac(void);

void tlscerts_close(void);

#endif