add a few return codes
authorroot <devnull@localhost>
Fri, 23 Feb 1996 22:28:40 +0000 (22:28 +0000)
committerroot <devnull@localhost>
Fri, 23 Feb 1996 22:28:40 +0000 (22:28 +0000)
CVS patchset: 413
CVS date: 1996/02/23 22:28:40

lib/signature.h

index 65d044a..306c7b1 100644 (file)
@@ -5,6 +5,12 @@
 #define RPMSIG_PGP262_1024  1
 #define RPMSIG_BAD          2  /* Returned for unknown types */
 
+/* verifySignature() results */
+#define RPMSIG_SIGOK        0
+#define RPMSIG_NOSIG        1
+#define RPMSIG_BADSIG       2
+#define RPMSIG_UNKNOWNSIG   3
+
 /* Read a sig_type signature from fd, alloc and return sig. */
 int readSignature(int fd, short sig_type, void **sig);
 
@@ -20,3 +26,4 @@ unsigned short sigLookupType(void);
 
 /* Utility to read a pass phrase from the user */
 char *getPassPhrase(char *prompt);
+