rpm  4.9.1.3
rpmsign.h
Go to the documentation of this file.
00001 #ifndef _RPMSIGN_H
00002 #define _RPMSIGN_H
00003 
00004 #include <rpm/argv.h>
00005 #include <rpm/rpmpgp.h>
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010 
00011 struct rpmSignArgs {
00012     char *keyid;
00013     pgpHashAlgo hashalgo;
00014     /* ... what else? */
00015 };
00016 
00024 int rpmPkgSign(const char *path,
00025                const struct rpmSignArgs * args, const char *passPhrase);
00026 
00032 int rpmPkgDelSign(const char *path);
00033 
00034 #ifdef __cplusplus
00035 }
00036 #endif
00037 
00038 #endif /* _RPMSIGN_H */