rpm  5.2.1
signature.h
Go to the documentation of this file.
1 #ifndef H_SIGNATURE
2 #define H_SIGNATURE
3 
13 typedef enum pgpVersion_e {
16  PGP_2 = 2,
17  PGP_5 = 5
18 } pgpVersion;
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
37 int rpmTempFile(/*@null@*/ const char * prefix,
38  /*@null@*/ /*@out@*/ const char ** fnptr,
39  /*@out@*/ void * fdptr)
40  /*@globals rpmGlobalMacroContext, h_errno,
41  fileSystem, internalState @*/
42  /*@modifies *fnptr, *fdptr, rpmGlobalMacroContext,
43  fileSystem, internalState @*/;
44 
53 int rpmAddSignature(Header sigh, const char * file,
54  rpmSigTag sigTag, /*@null@*/ const char * passPhrase)
55  /*@globals rpmGlobalMacroContext, h_errno, fileSystem, internalState @*/
56  /*@modifies sigh, sigTag, rpmGlobalMacroContext, fileSystem, internalState @*/;
57 
63 int rpmCheckPassPhrase(const char * passPhrase)
64  /*@globals rpmGlobalMacroContext, h_errno, fileSystem, internalState @*/
65  /*@modifies rpmGlobalMacroContext, fileSystem, internalState @*/;
66 
74 rpmRC rpmVerifySignature(void * _dig, /*@out@*/ char * result)
75  /*@globals internalState @*/
76  /*@modifies _dig, *result, internalState @*/;
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* H_SIGNATURE */