summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-04-08 12:35:36 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-04-08 12:35:36 +0300
commit2bb4618fa107dc6b02a4eb64e42d0021eca2a9e9 (patch)
treecc0fa74fffc0ea2f71806a43017f725090219ecc /lib/signature.c
parent6f619206fd13c6f0d90f143ec829312da4f81c48 (diff)
downloadlibrpm-tizen-2bb4618fa107dc6b02a4eb64e42d0021eca2a9e9.tar.gz
librpm-tizen-2bb4618fa107dc6b02a4eb64e42d0021eca2a9e9.tar.bz2
librpm-tizen-2bb4618fa107dc6b02a4eb64e42d0021eca2a9e9.zip
Eliminate four copy-paste versions of nibble(), stick to rpmstring.h
- the one in signature.c wasn't even used...
Diffstat (limited to 'lib/signature.c')
-rw-r--r--lib/signature.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 787448ca7..bbcaba63b 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -1070,22 +1070,6 @@ exit:
}
/**
- * Convert hex to binary nibble.
- * @param c hex character
- * @return binary nibble
- */
-static inline unsigned char nibble(char c)
-{
- if (c >= '0' && c <= '9')
- return (c - '0');
- if (c >= 'A' && c <= 'F')
- return (c - 'A') + 10;
- if (c >= 'a' && c <= 'f')
- return (c - 'a') + 10;
- return 0;
-}
-
-/**
* Verify RSA signature.
* @param ts transaction set
* @retval msg rbose success/failure text