1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-03-06 21:51:07 +01:00
gnupg/g10/mailing-list.h
2016-02-08 00:48:17 +01:00

56 lines
1.9 KiB
C

/* mailing-list.h - Manage an encrypted mailing list.
* Copyright (C) 2015 Neal H. Walfield <neal@walfield.org>
*
* This file is part of GnuPG.
*
* GnuPG 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.
*
* GnuPG 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef G10_MAILING_LIST_H
#define G10_MAILING_LIST_H
#include "types.h"
#include "util.h"
#include "dek.h"
/*#define MAILING_LIST_DUMP_NOTATIONS 1*/
#define MAILING_LIST_DUMP_NOTATIONS 0
void kbnode_dump (KBNODE kb);
/* Get a copy of all the session keys and store them in *DEKS and the
total count in *NDEKS. On success, the caller must xfree
deksp. */
gpg_error_t mailing_list_get_subscriber_list_session_keys (
ctrl_t ctrl, KBNODE kb, DEK **deksp, int *ndeksp);
gpg_error_t mailing_list_add_subscriber (ctrl_t ctrl,
KBNODE ml_kb, const char *sub);
gpg_error_t mailing_list_rm_subscriber (ctrl_t ctrl, KBNODE ml_kb,
const char *sub_orig);
gpg_error_t mailing_list_subscribers (ctrl_t ctrl, KBNODE kb,
PK_LIST *pklistp);
gpg_error_t mailing_list_subscribers_ext (ctrl_t ctrl, KBNODE kb,
PK_LIST *pklistp,
DEK **deksp, int *ndeksp);
gpg_error_t mailing_list_reprotect_one (PKT_public_key *pk);
gpg_error_t mailing_list_reprotect (KBNODE kb);
#endif