X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keyindex.h;h=c3e78efa17e617cec47299bd6cec57ca6718ad79;hb=b502f610c69279ee0f806d04489736a0abc771b0;hp=c3cb9eca4ed6c847f1896697c35ffa978523113e;hpb=d9432fa0982c0f7a736bf00c04969dedca347ea3;p=onak.git diff --git a/keyindex.h b/keyindex.h index c3cb9ec..c3e78ef 100644 --- a/keyindex.h +++ b/keyindex.h @@ -1,9 +1,19 @@ /* * keyindex.h - Routines to list an OpenPGP key. * - * Jonathan McDowell + * Copyright 2002-2008 Jonathan McDowell * - * Copyright 2002 Project 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; version 2 of the License. + * + * 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, see . */ #ifndef __KEYINDEX_H__ @@ -11,6 +21,7 @@ #include +#include "keydb.h" #include "keystructs.h" /** @@ -24,7 +35,8 @@ * This function takes a list of OpenPGP public keys and displays an index * of them. Useful for debugging or the keyserver Index function. */ -int key_index(struct openpgp_publickey *keys, bool verbose, +int key_index(struct onak_dbctx *dbctx, + struct openpgp_publickey *keys, bool verbose, bool fingerprint, bool skshash, bool html); /** @@ -35,4 +47,12 @@ int key_index(struct openpgp_publickey *keys, bool verbose, * machine readable list of them. */ int mrkey_index(struct openpgp_publickey *keys); + +/** + * txt2html - Takes a string and converts it to HTML. + * @string: The string to HTMLize. + * + * Takes a string and escapes any HTML entities. + */ +const char *txt2html(const char *string); #endif