45 #if defined(__LCLINT__) 307 #if defined(_RPMIOB_INTERNAL) 315 #if defined(__LCLINT__) 402 size_t * lenp,
int asAscii)
413 int rpmHmacInit(DIGEST_CTX ctx,
const void * key,
size_t keylen)
418 typedef void * (*rpmCallbackFunction)
424 rpmCallbackData data)
429 return (c >= (
int)
'a' && c <= (
int)
'z');
432 return (c >= (
int)
'A' && c <= (
int)
'Z');
438 return (c >= (
int)
'0' && c <= (
int)
'9');
444 return (c == (
int)
' ' || c == (
int)
'\t');
447 return (
xisblank(c) || c == (
int)
'\n' || c == (
int)
'\r' || c == (
int)
'\f' || c == (
int)
'\v');
450 return (c < (
int)
' ');
453 return ((c & 0x80) != 0x80);
456 return (c >= (
int)
' ' &&
xisascii(c));
459 return (c > (
int)
' ' &&
xisascii(c));
466 return ((
xisupper(c)) ? (c | (
'a' -
'A')) : c);
469 return ((
xislower(c)) ? (c & ~(
'a' -
'A')) : c);
475 int xstrcasecmp(
const char * s1,
const char * s2) ;
480 int xstrncasecmp(
const char *s1,
const char * s2,
size_t n) ;
498 #define rpmiobUnlink(_iob) \ 499 ((rpmiob)rpmioUnlinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) 510 #define rpmiobLink(_iob) \ 511 ((rpmiob)rpmioLinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) 522 #define rpmiobFree(_iob) \ 523 ((rpmiob)rpmioFreePoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) 585 #if defined(_RPMIOB_INTERNAL) 625 #if defined(WITH_DMALLOC) 626 #define _free(p) ((p) != NULL ? free((void *)(p)) : (void)0, NULL) 631 #define GENfree(_t) \ 632 static inline _t _free(_t p) { if (p) free((void *)p); return (_t)NULL; } 633 #define GENpair(_t) \ 640 GENpair(
unsigned char *)
642 GENfree(DIGEST_CTX *)
650 if (p != NULL) free((
void *)p);
static int xislower(int c)
rpmiob rpmiobAppend(rpmiob iob, const char *s, size_t nl)
Append string to I/O buffer.
const char * xstrtolocale(const char *str)
Force encoding of string.
static int xtoupper(int c)
rpmuint8_t * rpmiobBuf(rpmiob iob)
Return I/O buffer.
static int xisalnum(int c)
struct pgpDigParams_s * pgpDigParams
int xstrncasecmp(const char *s1, const char *s2, size_t n)
Locale insensitive strncasecmp(3).
enum pgpHashAlgo_e pgpHashAlgo
9.4.
int rpmDigestUpdate(DIGEST_CTX ctx, const void *data, size_t len)
Update context with next plain text buffer.
rpmDigestFlags rpmDigestF(DIGEST_CTX ctx)
Return digest flags.
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
static int xisascii(int c)
unsigned short rpmuint16_t
pgpVSFlags_e
Bit(s) to control digest and signature verification.
rpmCallbackType_e
Bit(s) to identify progress callbacks.
static int xisalpha(int c)
enum rpmDigestFlags_e rpmDigestFlags
Bit(s) to control digest operation.
const char * rpmDigestName(DIGEST_CTX ctx)
Return digest name.
int rpmiobSlurp(const char *fn, rpmiob *iobp)
static int xisgraph(int c)
int rpmDigestFinal(DIGEST_CTX ctx, void *datap, size_t *lenp, int asAscii)
Return digest and destroy context.
rpmioP rpmioPFree(rpmioP P)
Destroy a rpmioP object.
static int xtolower(int c)
static int xisprint(int c)
unsigned char rpmuint8_t
Private int typedefs to avoid C99 portability issues.
struct rpmioPool_s * rpmioPool
static int xisspace(int c)
unsigned long long rpmuint64_t
enum pgpVSFlags_e pgpVSFlags
Bit(s) to control digest and signature verification.
static int xisupper(int c)
char * rpmiobStr(rpmiob iob)
Return I/O buffer (as string).
int xstrcasecmp(const char *s1, const char *s2)
Locale insensitive strcasecmp(3).
static int xiscntrl(int c)
#define rpmiobUnlink(_iob)
const char * rpmDigestASN1(DIGEST_CTX ctx)
Return digest ASN1 oid string.
rpmRC rpmioParse(rpmioP *Pptr, const char *str)
Parse next command out of a string incrementally.
pgpHashAlgo rpmDigestAlgo(DIGEST_CTX ctx)
Return digest algorithm identifier.
enum rpmRC_e rpmRC
RPM return codes.
DIGEST_CTX rpmDigestDup(DIGEST_CTX octx)
Duplicate a digest context.
static int xisdigit(int c)
DIGEST_CTX rpmDigestInit(pgpHashAlgo hashalgo, rpmDigestFlags flags)
Initialize digest.
struct rpmioItem_s * rpmioItem
rpmiob rpmiobEmpty(rpmiob iob)
Empty an I/O buffer.
struct DIGEST_CTX_s * DIGEST_CTX
static void * _free(const void *p)
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
rpmDigestFlags_e
Bit(s) to control digest operation.
rpmiob rpmiobRTrim(rpmiob iob)
Trim trailing white space.
static int xisblank(int c)
struct yarnLock_s * yarnLock
int rpmHmacInit(DIGEST_CTX ctx, const void *key, size_t keylen)
Compute key material and add to digest context.
rpmiob rpmiobNew(size_t len)
Create an I/O buffer.
size_t rpmiobLen(rpmiob iob)
Return I/O buffer len.
static int xispunct(int c)