X-Git-Url: https://git.librecmc.org/?p=oweals%2Fucert.git;a=blobdiff_plain;f=usign.h;h=d57d09ec7b74d626f998e94e932e7962788c5fdd;hp=e2f8e21d124726a3e51de519b8aa506f60054330;hb=46eec66b190470254fc01973f208dc056bcb9780;hpb=ca6d1ffd41f20fdaea517dd74492bbf2f635c859 diff --git a/usign.h b/usign.h index e2f8e21..d57d09e 100644 --- a/usign.h +++ b/usign.h @@ -1,10 +1,49 @@ +/* + * usign/signify API header + * Copyright (C) 2018 Daniel Golle + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 + * as published by the Free Software Foundation + * + * 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. + */ + +#ifndef _USIGN_H +#define _USIGN_H + +/** + * Verify + * + * calls: usign -V ... + */ int usign_v(const char *msgfile, const char *pubkeyfile, const char *pubkeydir, const char *sigfile, bool quiet); +/** + * Sign + * + * calls: usign -S ... + */ int usign_s(const char *msgfile, const char *seckeyfile, const char *sigfile, bool quiet); +/** + * Fingerprint {pubkey, seckey, sig} + * + * calls: usign -F ... + */ int usign_f_pubkey(char *fingerprint, const char *pubkeyfile); int usign_f_seckey(char *fingerprint, const char *seckeyfile); int usign_f_sig(char *fingerprint, const char *sigfile); + +/** + * custom extension to check for revokers + */ +int _usign_key_is_revoked(const char *fingerprint, const char *pubkeydir); + +#endif /* _USIGN_H */