]> the.earth.li Git - onak.git/blobdiff - keyindex.h
Fix systemd RuntimeDirectory
[onak.git] / keyindex.h
index c9a584328cb0b43ea24a79a80bc687947832890b..c3e78efa17e617cec47299bd6cec57ca6718ad79 100644 (file)
@@ -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 <https://www.gnu.org/licenses/>.
  */
 
 #ifndef __KEYINDEX_H__
@@ -22,6 +21,7 @@
 
 #include <stdbool.h>
 
+#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