DomainPlug-insDocumentation
|
00001 #ifndef OPENPGPHELPER_H 00002 #define OPENPGPHELPER_H 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 //returns output lenth 00008 size_t openpgp_do_clearsign_safe( const char * in_buf, const size_t in_len, const char * pass, const char * user, char **out_buf ); 00009 //return result of validation: 1 - valid, 0 - invalid 00010 int openpgp_do_validate_safe ( const char *mem_in, size_t len_in, int has_armour ); 00011 /* 00012 bool openpgp_does_secret_exist ( ops_keyring_t *secring, const char *opt_userid ); 00013 */ 00014 #ifdef __cplusplus 00015 } // extern "C" 00016 #endif 00017 #endif