• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucert/usign.h

  1 /*
  2  * usign/signify API header
  3  * Copyright (C) 2018 Daniel Golle <daniel@makrotopia.org>
  4  *
  5  * This program is free software; you can redistribute it and/or modify
  6  * it under the terms of the GNU General Public License version 3
  7  * as published by the Free Software Foundation
  8  *
  9  * This program is distributed in the hope that it will be useful,
 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 12  * GNU General Public License for more details.
 13  */
 14 
 15 #ifndef _USIGN_H
 16 #define _USIGN_H
 17 
 18 #include <stdbool.h>
 19 
 20 /**
 21  * Verify
 22  *
 23  * calls: usign -V ...
 24  */
 25 int usign_v(const char *msgfile, const char *pubkeyfile,
 26             const char *pubkeydir, const char *sigfile, bool quiet);
 27 
 28 /**
 29  * Sign
 30  *
 31  * calls: usign -S ...
 32  */
 33 int usign_s(const char *msgfile, const char *seckeyfile, const char *sigfile, bool quiet);
 34 
 35 /**
 36  * Fingerprint {pubkey, seckey, sig}
 37  *
 38  * calls: usign -F ...
 39  */
 40 int usign_f_pubkey(char fingerprint[17], const char *pubkeyfile, bool quiet);
 41 
 42 int usign_f_seckey(char fingerprint[17], const char *seckeyfile, bool quiet);
 43 
 44 int usign_f_sig(char fingerprint[17], const char *sigfile, bool quiet);
 45 
 46 /**
 47  * custom extension to check for revokers
 48  */
 49 int _usign_key_is_revoked(const char *fingerprint, const char *pubkeydir);
 50 
 51 #endif /* _USIGN_H */
 52 

This page was automatically generated by LXR 0.3.1.  •  OpenWrt