From 68425333a052d1e7acc9404ee4ff7273c7565431 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Feb 1996 22:28:40 +0000 Subject: add a few return codes CVS patchset: 413 CVS date: 1996/02/23 22:28:40 --- lib/signature.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/signature.h b/lib/signature.h index 65d044ae5..306c7b17e 100644 --- a/lib/signature.h +++ b/lib/signature.h @@ -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); + -- cgit v1.2.3