X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keyindex.h;h=c3e78efa17e617cec47299bd6cec57ca6718ad79;hb=7b4a0f5405a70c7990f1022ad31fa5856ceeccff;hp=c9a584328cb0b43ea24a79a80bc687947832890b;hpb=5e1b22d763640c4d7a09d07920403d8d491b4410;p=onak.git diff --git a/keyindex.h b/keyindex.h index c9a5843..c3e78ef 100644 --- a/keyindex.h +++ b/keyindex.h @@ -13,8 +13,7 @@ * 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 02110-1301, USA. + * this program. If not, see . */ #ifndef __KEYINDEX_H__ @@ -22,6 +21,7 @@ #include +#include "keydb.h" #include "keystructs.h" /** @@ -35,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); /** @@ -46,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