rpm 5.3.7

rpmdb/signature.h

Go to the documentation of this file.
00001 #ifndef H_SIGNATURE
00002 #define H_SIGNATURE
00003 
00009 #include <rpmtag.h>     /* XXX Header typedef */
00010 
00015 typedef enum pgpVersion_e {
00016     PGP_NOTDETECTED     = -1,
00017     PGP_UNKNOWN         = 0,
00018     PGP_2               = 2,
00019     PGP_5               = 5
00020 } pgpVersion;
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00039 int rpmTempFile(/*@null@*/ const char * prefix,
00040                 /*@null@*/ /*@out@*/ const char ** fnptr,
00041                 /*@out@*/ void * fdptr)
00042         /*@globals rpmGlobalMacroContext, h_errno,
00043                 fileSystem, internalState @*/
00044         /*@modifies *fnptr, *fdptr, rpmGlobalMacroContext,
00045                 fileSystem, internalState @*/;
00046 
00055 int rpmAddSignature(Header sigh, const char * file,
00056                     rpmSigTag sigTag, /*@null@*/ const char * passPhrase)
00057         /*@globals rpmGlobalMacroContext, h_errno, fileSystem, internalState @*/
00058         /*@modifies sigh, sigTag, rpmGlobalMacroContext, fileSystem, internalState @*/;
00059 
00065 int rpmCheckPassPhrase(const char * passPhrase)
00066         /*@globals rpmGlobalMacroContext, h_errno, fileSystem, internalState @*/
00067         /*@modifies rpmGlobalMacroContext, fileSystem, internalState @*/;
00068 
00076 rpmRC rpmVerifySignature(void * _dig, /*@out@*/ char * result)
00077         /*@globals internalState @*/
00078         /*@modifies _dig, *result, internalState @*/;
00079 
00080 #ifdef __cplusplus
00081 }
00082 #endif
00083 
00084 #endif  /* H_SIGNATURE */