48 #if defined(__LCLINT__)
307 #if defined(_RPMIOB_INTERNAL)
315 #if defined(__LCLINT__)
402 size_t *
lenp,
int asAscii)
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);
enum rpmDigestFlags_e rpmDigestFlags
Bit(s) to control digest operation.
static int xislower(int c)
rpmiob rpmiobRTrim(rpmiob iob)
Trim trailing white space.
rpmuint8_t * rpmiobBuf(rpmiob iob)
Return I/O buffer.
rpmDigestFlags rpmDigestF(DIGEST_CTX ctx)
Return digest flags.
static int xtoupper(int c)
static int xisalnum(int c)
size_t rpmiobLen(rpmiob iob)
Return I/O buffer len.
enum rpmCallbackType_e rpmCallbackType
Bit(s) to identify progress callbacks.
static int xisascii(int c)
struct DIGEST_CTX_s * DIGEST_CTX
unsigned short rpmuint16_t
rpmCallbackType_e
Bit(s) to identify progress callbacks.
static int xisalpha(int c)
rpmiob rpmiobAppend(rpmiob iob, const char *s, size_t nl)
Append string to I/O buffer.
unsigned char rpmuint8_t
Private int typedefs to avoid C99 portability issues.
int xstrncasecmp(const char *s1, const char *s2, size_t n)
Locale insensitive strncasecmp(3).
int rpmiobSlurp(const char *fn, rpmiob *iobp)
pgpVSFlags_e
Bit(s) to control digest and signature verification.
static int xisgraph(int c)
rpmioP rpmioPFree(rpmioP P)
Destroy a rpmioP object.
static int xtolower(int c)
enum rpmRC_e rpmRC
RPM return codes.
static int xisprint(int c)
enum pgpHashAlgo_e pgpHashAlgo
9.4.
const char * rpmDigestName(DIGEST_CTX ctx)
Return digest name.
static int xisspace(int c)
unsigned long long rpmuint64_t
int rpmDigestUpdate(DIGEST_CTX ctx, const void *data, size_t len)
Update context with next plain text buffer.
DIGEST_CTX rpmDigestDup(DIGEST_CTX octx)
Duplicate a digest context.
enum pgpVSFlags_e pgpVSFlags
Bit(s) to control digest and signature verification.
struct yarnLock_s * yarnLock
static int xisupper(int c)
pgpHashAlgo rpmDigestAlgo(DIGEST_CTX ctx)
Return digest algorithm identifier.
rpmDigestFlags_e
Bit(s) to control digest operation.
DIGEST_CTX rpmDigestInit(pgpHashAlgo hashalgo, rpmDigestFlags flags)
Initialize digest.
static int xiscntrl(int c)
struct rpmioItem_s * rpmioItem
#define rpmiobUnlink(_iob)
rpmiob rpmiobNew(size_t len)
Create an I/O buffer.
static const char *char c
Return text between pl and matching pr characters.
char * rpmiobStr(rpmiob iob)
Return I/O buffer (as string).
static int xisdigit(int c)
int rpmHmacInit(DIGEST_CTX ctx, const void *key, size_t keylen)
Compute key material and add to digest context.
int xstrcasecmp(const char *s1, const char *s2)
Locale insensitive strcasecmp(3).
struct pgpDigParams_s * pgpDigParams
static int xisblank(int c)
struct rpmioPool_s * rpmioPool
rpmiob rpmiobEmpty(rpmiob iob)
Empty an I/O buffer.
void rpmDigestFinal(rpmDigestDup(md5ctx),&md5sum,&md5len, 0)
static void * _free(const void *p)
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
const char * rpmDigestASN1(DIGEST_CTX ctx)
Return digest ASN1 oid string.
const char * xstrtolocale(const char *str)
Force encoding of string.
static int xispunct(int c)
rpmRC rpmioParse(rpmioP *Pptr, const char *str)
Parse next command out of a string incrementally.