48 #if defined(__LCLINT__)
76 #if defined(_RPMIOB_INTERNAL)
84 #if defined(__LCLINT__)
511 size_t * lenp,
int asAscii)
527 typedef void * (*rpmCallbackFunction)
533 rpmCallbackData
data)
538 return (c >= (
int)
'a' && c <= (
int)
'z');
541 return (c >= (
int)
'A' && c <= (
int)
'Z');
547 return (c >= (
int)
'0' && c <= (
int)
'9');
553 return (c == (
int)
' ' || c == (
int)
'\t');
556 return (
xisblank(c) || c == (
int)
'\n' || c == (
int)
'\r' || c == (
int)
'\f' || c == (
int)
'\v');
559 return (c < (
int)
' ');
562 return ((c & 0x80) != 0x80);
565 return (c >= (
int)
' ' &&
xisascii(c));
568 return (c > (
int)
' ' &&
xisascii(c));
575 return ((
xisupper(c)) ? (c | (
'a' -
'A')) : c);
578 return ((
xislower(c)) ? (c & ~(
'a' -
'A')) : c);
584 int xstrcasecmp(
const char * s1,
const char * s2) ;
589 int xstrncasecmp(
const char *s1,
const char * s2,
size_t n) ;
607 #define rpmiobUnlink(_iob) \
608 ((rpmiob)rpmioUnlinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))
619 #define rpmiobLink(_iob) \
620 ((rpmiob)rpmioLinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))
631 #define rpmiobFree(_iob) \
632 ((rpmiob)rpmioFreePoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))
694 #if defined(_RPMIOB_INTERNAL)
734 #if defined(WITH_DMALLOC)
735 #define _free(p) ((p) != NULL ? free((void *)(p)) : (void)0, NULL)
740 #define GENfree(_t) \
741 static inline _t _free(_t p) { if (p) free((void *)p); return (_t)NULL; }
742 #define GENpair(_t) \
749 GENpair(
unsigned char *)
751 GENfree(DIGEST_CTX *)
759 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 const char size_t len
void * _cphParam(CIPHER_CTX cph)
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 rpmCipherFinal(CIPHER_CTX cph)
Destroy cipher context.
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.
struct CIPHER_CTX_s * CIPHER_CTX
const char * rpmDigestName(DIGEST_CTX ctx)
Return digest name.
CIPHER_CTX rpmCipherInit(pgpSymkeyAlgo symkeyalgo, rpmCipherFlags flags)
Initialize cipher context.
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)
rpmCryptFlags_e
Bit(s) to control cipher operation.
static int xisprint(int c)
unsigned char rpmuint8_t
Private int typedefs to avoid C99 portability issues.
struct rpmioPool_s * rpmioPool
const char const bson * data
static int xisspace(int c)
unsigned long long rpmuint64_t
enum rpmCryptFlags_e rpmCipherFlags
Bit(s) to control cipher operation.
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.
const char const bson int mongo_write_concern int flags
enum pgpSymkeyAlgo_e pgpSymkeyAlgo
9.2.
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)
const char const bson * key
DIGEST_CTX rpmDigestInit(pgpHashAlgo hashalgo, rpmDigestFlags flags)
Initialize digest context.
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.
int rpmCipherNext(CIPHER_CTX cph, void *data, size_t len)
Encrypt/Decrypt a block of data.
size_t rpmiobLen(rpmiob iob)
Return I/O buffer len.
static int xispunct(int c)