rpm  5.4.10
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
rpmiotypes.h File Reference

Go to the source code of this file.

Data Structures

struct  rpmioItem_s
 
struct  rpmioP_s
 

Macros

#define rpmiobUnlink(_iob)   ((rpmiob)rpmioUnlinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmiobLink(_iob)   ((rpmiob)rpmioLinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))
 
#define rpmiobFree(_iob)   ((rpmiob)rpmioFreePoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))
 

Typedefs

typedef enum rpmRC_e rpmRC
 RPM return codes. More...
 
typedef unsigned char rpmuint8_t
 Private int typedefs to avoid C99 portability issues. More...
 
typedef unsigned short rpmuint16_t
 
typedef unsigned int rpmuint32_t
 
typedef unsigned long long rpmuint64_t
 
typedef int rpmint32_t
 
typedef struct yarnLock_s * yarnLock
 
typedef struct rpmioItem_srpmioItem
 
typedef struct rpmioPool_srpmioPool
 
typedef struct rpmiob_s * rpmiob
 
typedef struct rpmioP_srpmioP
 
typedef struct DIGEST_CTX_sDIGEST_CTX
 
typedef struct pgpPkt_s * pgpPkt
 
typedef struct pgpDig_s * pgpDig
 
typedef struct pgpDigParams_s * pgpDigParams
 
typedef rpmuint8_t pgpKeyID_t[8]
 
typedef rpmuint8_t pgpTime_t[4]
 
typedef enum pgpVSFlags_e pgpVSFlags
 Bit(s) to control digest and signature verification. More...
 
typedef const void * fnpyKey
 
typedef enum rpmCallbackType_e rpmCallbackType
 Bit(s) to identify progress callbacks. More...
 
typedef void * rpmCallbackData
 
typedef enum pgpHashAlgo_e pgpHashAlgo
 9.4. More...
 
typedef enum rpmDigestFlags_e rpmDigestFlags
 Bit(s) to control digest operation. More...
 
typedef void *(* rpmCallbackFunction) (const void *h, const rpmCallbackType what, const rpmuint64_t amount, const rpmuint64_t total, fnpyKey key, rpmCallbackData data)
 

Enumerations

enum  rpmRC_e {
  RPMRC_OK = 0, RPMRC_NOTFOUND = 1, RPMRC_FAIL = 2, RPMRC_NOTTRUSTED = 3,
  RPMRC_NOKEY = 4, RPMRC_NOSIG = 5
}
 RPM return codes. More...
 
enum  pgpVSFlags_e {
  RPMVSF_DEFAULT = 0, RPMVSF_NOHDRCHK = (1 << 0), RPMVSF_NEEDPAYLOAD = (1 << 1), RPMVSF_NOSHA1HEADER = (1 << 8),
  RPMVSF_NOMD5HEADER = (1 << 9), RPMVSF_NODSAHEADER = (1 << 10), RPMVSF_NORSAHEADER = (1 << 11), RPMVSF_NOSHA1 = (1 << 16),
  RPMVSF_NOMD5 = (1 << 17), RPMVSF_NODSA = (1 << 18), RPMVSF_NORSA = (1 << 19)
}
 Bit(s) to control digest and signature verification. More...
 
enum  rpmCallbackType_e {
  RPMCALLBACK_UNKNOWN = 0, RPMCALLBACK_INST_PROGRESS = (1 << 0), RPMCALLBACK_INST_START = (1 << 1), RPMCALLBACK_INST_OPEN_FILE = (1 << 2),
  RPMCALLBACK_INST_CLOSE_FILE = (1 << 3), RPMCALLBACK_TRANS_PROGRESS = (1 << 4), RPMCALLBACK_TRANS_START = (1 << 5), RPMCALLBACK_TRANS_STOP = (1 << 6),
  RPMCALLBACK_UNINST_PROGRESS = (1 << 7), RPMCALLBACK_UNINST_START = (1 << 8), RPMCALLBACK_UNINST_STOP = (1 << 9), RPMCALLBACK_REPACKAGE_PROGRESS = (1 << 10),
  RPMCALLBACK_REPACKAGE_START = (1 << 11), RPMCALLBACK_REPACKAGE_STOP = (1 << 12), RPMCALLBACK_UNPACK_ERROR = (1 << 13), RPMCALLBACK_CPIO_ERROR = (1 << 14),
  RPMCALLBACK_SCRIPT_ERROR = (1 << 15), RPMCALLBACK_SCRIPT_START = (1 << 16), RPMCALLBACK_SCRIPT_STOP = (1 << 17), RPMCALLBACK_INST_STOP = (1 << 18)
}
 Bit(s) to identify progress callbacks. More...
 
enum  pgpHashAlgo_e {
  PGPHASHALGO_ERROR = -1, PGPHASHALGO_NONE = 0, PGPHASHALGO_MD5 = 1, PGPHASHALGO_SHA1 = 2,
  PGPHASHALGO_RIPEMD160 = 3, PGPHASHALGO_MD2 = 5, PGPHASHALGO_TIGER192 = 6, PGPHASHALGO_HAVAL_5_160 = 7,
  PGPHASHALGO_SHA256 = 8, PGPHASHALGO_SHA384 = 9, PGPHASHALGO_SHA512 = 10, PGPHASHALGO_SHA224 = 11,
  PGPHASHALGO_MD4 = 104, PGPHASHALGO_RIPEMD128 = 105, PGPHASHALGO_CRC32 = 106, PGPHASHALGO_ADLER32 = 107,
  PGPHASHALGO_CRC64 = 108, PGPHASHALGO_JLU32 = 109, PGPHASHALGO_RIPEMD256 = 111, PGPHASHALGO_RIPEMD320 = 112,
  PGPHASHALGO_SALSA10 = 113, PGPHASHALGO_SALSA20 = 114, PGPHASHALGO_MD6_224 = 128+0, PGPHASHALGO_MD6_256 = 128+1,
  PGPHASHALGO_MD6_384 = 128+2, PGPHASHALGO_MD6_512 = 128+3, PGPHASHALGO_CUBEHASH_224 = 136+0, PGPHASHALGO_CUBEHASH_256 = 136+1,
  PGPHASHALGO_CUBEHASH_384 = 136+2, PGPHASHALGO_CUBEHASH_512 = 136+3, PGPHASHALGO_KECCAK_224 = 144+0, PGPHASHALGO_KECCAK_256 = 144+1,
  PGPHASHALGO_KECCAK_384 = 144+2, PGPHASHALGO_KECCAK_512 = 144+3, PGPHASHALGO_ECHO_224 = 148+0, PGPHASHALGO_ECHO_256 = 148+1,
  PGPHASHALGO_ECHO_384 = 148+2, PGPHASHALGO_ECHO_512 = 148+3, PGPHASHALGO_EDONR_224 = 152+0, PGPHASHALGO_EDONR_256 = 152+1,
  PGPHASHALGO_EDONR_384 = 152+2, PGPHASHALGO_EDONR_512 = 152+3, PGPHASHALGO_FUGUE_224 = 156+0, PGPHASHALGO_FUGUE_256 = 156+1,
  PGPHASHALGO_FUGUE_384 = 156+2, PGPHASHALGO_FUGUE_512 = 156+3, PGPHASHALGO_SKEIN_224 = 160+0, PGPHASHALGO_SKEIN_256 = 160+1,
  PGPHASHALGO_SKEIN_384 = 160+2, PGPHASHALGO_SKEIN_512 = 160+3, PGPHASHALGO_SKEIN_1024 = 160+4, PGPHASHALGO_BMW_224 = 168+0,
  PGPHASHALGO_BMW_256 = 168+1, PGPHASHALGO_BMW_384 = 168+2, PGPHASHALGO_BMW_512 = 168+3, PGPHASHALGO_SHABAL_224 = 176+0,
  PGPHASHALGO_SHABAL_256 = 176+1, PGPHASHALGO_SHABAL_384 = 176+2, PGPHASHALGO_SHABAL_512 = 176+3, PGPHASHALGO_SHAVITE3_224 = 180+0,
  PGPHASHALGO_SHAVITE3_256 = 180+1, PGPHASHALGO_SHAVITE3_384 = 180+2, PGPHASHALGO_SHAVITE3_512 = 180+3, PGPHASHALGO_BLAKE_224 = 184+0,
  PGPHASHALGO_BLAKE_256 = 184+1, PGPHASHALGO_BLAKE_384 = 184+2, PGPHASHALGO_BLAKE_512 = 184+3, PGPHASHALGO_TIB3_224 = 192+0,
  PGPHASHALGO_TIB3_256 = 192+1, PGPHASHALGO_TIB3_384 = 192+2, PGPHASHALGO_TIB3_512 = 192+3, PGPHASHALGO_SIMD_224 = 200+0,
  PGPHASHALGO_SIMD_256 = 200+1, PGPHASHALGO_SIMD_384 = 200+2, PGPHASHALGO_SIMD_512 = 200+3, PGPHASHALGO_ARIRANG_224 = 208+0,
  PGPHASHALGO_ARIRANG_256 = 208+1, PGPHASHALGO_ARIRANG_384 = 208+2, PGPHASHALGO_ARIRANG_512 = 208+3, PGPHASHALGO_LANE_224 = 212+0,
  PGPHASHALGO_LANE_256 = 212+1, PGPHASHALGO_LANE_384 = 212+2, PGPHASHALGO_LANE_512 = 212+3, PGPHASHALGO_LUFFA_224 = 216+0,
  PGPHASHALGO_LUFFA_256 = 216+1, PGPHASHALGO_LUFFA_384 = 216+2, PGPHASHALGO_LUFFA_512 = 216+3, PGPHASHALGO_CHI_224 = 224+0,
  PGPHASHALGO_CHI_256 = 224+1, PGPHASHALGO_CHI_384 = 224+2, PGPHASHALGO_CHI_512 = 224+3, PGPHASHALGO_JH_224 = 232+0,
  PGPHASHALGO_JH_256 = 232+1, PGPHASHALGO_JH_384 = 232+2, PGPHASHALGO_JH_512 = 232+3, PGPHASHALGO_GROESTL_224 = 240+0,
  PGPHASHALGO_GROESTL_256 = 240+1, PGPHASHALGO_GROESTL_384 = 240+2, PGPHASHALGO_GROESTL_512 = 240+3, PGPHASHALGO_HAMSI_224 = 248+0,
  PGPHASHALGO_HAMSI_256 = 248+1, PGPHASHALGO_HAMSI_384 = 248+2, PGPHASHALGO_HAMSI_512 = 248+3
}
 9.4. More...
 
enum  rpmDigestFlags_e { RPMDIGEST_NONE = 0 }
 Bit(s) to control digest operation. More...
 

Functions

pgpHashAlgo rpmDigestAlgo (DIGEST_CTX ctx)
 Return digest algorithm identifier. More...
 
rpmDigestFlags rpmDigestF (DIGEST_CTX ctx)
 Return digest flags. More...
 
const char * rpmDigestName (DIGEST_CTX ctx)
 Return digest name. More...
 
const char * rpmDigestASN1 (DIGEST_CTX ctx)
 Return digest ASN1 oid string. More...
 
DIGEST_CTX rpmDigestDup (DIGEST_CTX octx)
 Duplicate a digest context. More...
 
DIGEST_CTX rpmDigestInit (pgpHashAlgo hashalgo, rpmDigestFlags flags)
 Initialize digest. More...
 
int rpmDigestUpdate (DIGEST_CTX ctx, const void *data, size_t len)
 Update context with next plain text buffer. More...
 
int rpmDigestFinal (DIGEST_CTX ctx, void *datap, size_t *lenp, int asAscii)
 Return digest and destroy context. More...
 
int rpmHmacInit (DIGEST_CTX ctx, const void *key, size_t keylen)
 Compute key material and add to digest context. More...
 
static int xislower (int c)
 
static int xisupper (int c)
 
static int xisalpha (int c)
 
static int xisdigit (int c)
 
static int xisalnum (int c)
 
static int xisblank (int c)
 
static int xisspace (int c)
 
static int xiscntrl (int c)
 
static int xisascii (int c)
 
static int xisprint (int c)
 
static int xisgraph (int c)
 
static int xispunct (int c)
 
static int xtolower (int c)
 
static int xtoupper (int c)
 
int xstrcasecmp (const char *s1, const char *s2)
 Locale insensitive strcasecmp(3). More...
 
int xstrncasecmp (const char *s1, const char *s2, size_t n)
 Locale insensitive strncasecmp(3). More...
 
const char * xstrtolocale (const char *str)
 Force encoding of string. More...
 
rpmiob rpmiobUnlink (rpmiob iob)
 Unreference a I/O buffer instance. More...
 
rpmiob rpmiobLink (rpmiob iob)
 Reference a I/O buffer instance. More...
 
rpmiob rpmiobFree (rpmiob iob)
 Destroy a I/O buffer instance. More...
 
rpmiob rpmiobNew (size_t len)
 Create an I/O buffer. More...
 
rpmiob rpmiobEmpty (rpmiob iob)
 Empty an I/O buffer. More...
 
rpmiob rpmiobRTrim (rpmiob iob)
 Trim trailing white space. More...
 
rpmiob rpmiobAppend (rpmiob iob, const char *s, size_t nl)
 Append string to I/O buffer. More...
 
rpmuint8_trpmiobBuf (rpmiob iob)
 Return I/O buffer. More...
 
char * rpmiobStr (rpmiob iob)
 Return I/O buffer (as string). More...
 
size_t rpmiobLen (rpmiob iob)
 Return I/O buffer len. More...
 
rpmioP rpmioPFree (rpmioP P)
 Destroy a rpmioP object. More...
 
rpmRC rpmioParse (rpmioP *Pptr, const char *str)
 Parse next command out of a string incrementally. More...
 
static void * _free (const void *p)
 Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. More...
 

Variables

size_t _rpmiob_chunk
 

Macro Definition Documentation

§ rpmiobFree

#define rpmiobFree (   _iob)    ((rpmiob)rpmioFreePoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))

Definition at line 522 of file rpmiotypes.h.

§ rpmiobLink

#define rpmiobLink (   _iob)    ((rpmiob)rpmioLinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))

Definition at line 510 of file rpmiotypes.h.

§ rpmiobUnlink

#define rpmiobUnlink (   _iob)    ((rpmiob)rpmioUnlinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__))

Definition at line 498 of file rpmiotypes.h.

Referenced by xtoupper().

Typedef Documentation

§ DIGEST_CTX

typedef struct DIGEST_CTX_s* DIGEST_CTX

Definition at line 75 of file rpmiotypes.h.

§ fnpyKey

typedef const void* fnpyKey

Definition at line 118 of file rpmiotypes.h.

§ pgpDig

typedef struct pgpDig_s* pgpDig

Definition at line 83 of file rpmiotypes.h.

§ pgpDigParams

typedef struct pgpDigParams_s* pgpDigParams

Definition at line 87 of file rpmiotypes.h.

§ pgpHashAlgo

typedef enum pgpHashAlgo_e pgpHashAlgo

9.4.

Hash Algorithms

       ID           Algorithm                              Text Name
       --           ---------                              ---- ----
       1          - MD5                                    "MD5"
       2          - SHA-1                                  "SHA1"
       3          - RIPE-MD/160                            "RIPEMD160"
       4          - Reserved for double-width SHA (experimental)
       5          - MD2                                    "MD2"
       6          - Reserved for TIGER/192                 "TIGER192"
       7          - Reserved for HAVAL (5 pass, 160-bit)   "HAVAL-5-160"
       100 to 110 - Private/Experimental algorithm.

Implementations MUST implement SHA-1. Implementations SHOULD implement MD5.

Todo:
Add SHA256.

§ pgpKeyID_t

typedef rpmuint8_t pgpKeyID_t[8]

Definition at line 91 of file rpmiotypes.h.

§ pgpPkt

typedef struct pgpPkt_s* pgpPkt

Definition at line 79 of file rpmiotypes.h.

§ pgpTime_t

typedef rpmuint8_t pgpTime_t[4]

Definition at line 95 of file rpmiotypes.h.

§ pgpVSFlags

typedef enum pgpVSFlags_e pgpVSFlags

Bit(s) to control digest and signature verification.

§ rpmCallbackData

typedef void* rpmCallbackData

Definition at line 149 of file rpmiotypes.h.

§ rpmCallbackFunction

typedef void*(* rpmCallbackFunction) (const void *h, const rpmCallbackType what, const rpmuint64_t amount, const rpmuint64_t total, fnpyKey key, rpmCallbackData data)

Definition at line 419 of file rpmiotypes.h.

§ rpmCallbackType

Bit(s) to identify progress callbacks.

§ rpmDigestFlags

Bit(s) to control digest operation.

§ rpmint32_t

typedef int rpmint32_t

Definition at line 30 of file rpmiotypes.h.

§ rpmiob

typedef struct rpmiob_s* rpmiob

Definition at line 57 of file rpmiotypes.h.

§ rpmioItem

typedef struct rpmioItem_s* rpmioItem

Definition at line 38 of file rpmiotypes.h.

§ rpmioP

typedef struct rpmioP_s * rpmioP

§ rpmioPool

typedef struct rpmioPool_s* rpmioPool

Definition at line 53 of file rpmiotypes.h.

§ rpmRC

typedef enum rpmRC_e rpmRC

RPM return codes.

§ rpmuint16_t

typedef unsigned short rpmuint16_t

Definition at line 24 of file rpmiotypes.h.

§ rpmuint32_t

typedef unsigned int rpmuint32_t

Definition at line 25 of file rpmiotypes.h.

§ rpmuint64_t

typedef unsigned long long rpmuint64_t

Definition at line 26 of file rpmiotypes.h.

§ rpmuint8_t

typedef unsigned char rpmuint8_t

Private int typedefs to avoid C99 portability issues.

Definition at line 23 of file rpmiotypes.h.

§ yarnLock

typedef struct yarnLock_s* yarnLock

Definition at line 34 of file rpmiotypes.h.

Enumeration Type Documentation

§ pgpHashAlgo_e

9.4.

Hash Algorithms

       ID           Algorithm                              Text Name
       --           ---------                              ---- ----
       1          - MD5                                    "MD5"
       2          - SHA-1                                  "SHA1"
       3          - RIPE-MD/160                            "RIPEMD160"
       4          - Reserved for double-width SHA (experimental)
       5          - MD2                                    "MD2"
       6          - Reserved for TIGER/192                 "TIGER192"
       7          - Reserved for HAVAL (5 pass, 160-bit)   "HAVAL-5-160"
       100 to 110 - Private/Experimental algorithm.

Implementations MUST implement SHA-1. Implementations SHOULD implement MD5.

Todo:
Add SHA256.
Enumerator
PGPHASHALGO_ERROR 
PGPHASHALGO_NONE 
PGPHASHALGO_MD5 

MD5

PGPHASHALGO_SHA1 

SHA-1

PGPHASHALGO_RIPEMD160 

RIPEMD-160

PGPHASHALGO_MD2 

MD2

PGPHASHALGO_TIGER192 

TIGER-192

PGPHASHALGO_HAVAL_5_160 

HAVAL-5-160

PGPHASHALGO_SHA256 

SHA-256

PGPHASHALGO_SHA384 

SHA-384

PGPHASHALGO_SHA512 

SHA-512

PGPHASHALGO_SHA224 

SHA-224

PGPHASHALGO_MD4 

(private) MD4

PGPHASHALGO_RIPEMD128 

(private) RIPEMD-128

PGPHASHALGO_CRC32 

(private) CRC-32

PGPHASHALGO_ADLER32 

(private) ADLER-32

PGPHASHALGO_CRC64 

(private) CRC-64

PGPHASHALGO_JLU32 

(private) Jenkins lookup3.c

PGPHASHALGO_RIPEMD256 

(private) RIPEMD-256

PGPHASHALGO_RIPEMD320 

(private) RIPEMD-320

PGPHASHALGO_SALSA10 

(private) SALSA-10

PGPHASHALGO_SALSA20 

(private) SALSA-20

PGPHASHALGO_MD6_224 

(private) MD6-224

PGPHASHALGO_MD6_256 

(private) MD6-256

PGPHASHALGO_MD6_384 

(private) MD6-384

PGPHASHALGO_MD6_512 

(private) MD6-512

PGPHASHALGO_CUBEHASH_224 

(private) CUBEHASH-224

PGPHASHALGO_CUBEHASH_256 

(private) CUBEHASH-256

PGPHASHALGO_CUBEHASH_384 

(private) CUBEHASH-384

PGPHASHALGO_CUBEHASH_512 

(private) CUBEHASH-512

PGPHASHALGO_KECCAK_224 

(private) KECCAK-224

PGPHASHALGO_KECCAK_256 

(private) KECCAK-256

PGPHASHALGO_KECCAK_384 

(private) KECCAK-384

PGPHASHALGO_KECCAK_512 

(private) KECCAK-384

PGPHASHALGO_ECHO_224 

(private) ECHO-224

PGPHASHALGO_ECHO_256 

(private) ECHO-256

PGPHASHALGO_ECHO_384 

(private) ECHO-384

PGPHASHALGO_ECHO_512 

(private) ECHO-384

PGPHASHALGO_EDONR_224 

(private) EDON-R-224

PGPHASHALGO_EDONR_256 

(private) EDON-R-256

PGPHASHALGO_EDONR_384 

(private) EDON-R-384

PGPHASHALGO_EDONR_512 

(private) EDON-R-512

PGPHASHALGO_FUGUE_224 

(private) FUGUE-224

PGPHASHALGO_FUGUE_256 

(private) FUGUE-256

PGPHASHALGO_FUGUE_384 

(private) FUGUE-384

PGPHASHALGO_FUGUE_512 

(private) FUGUE-512

PGPHASHALGO_SKEIN_224 

(private) SKEIN-224

PGPHASHALGO_SKEIN_256 

(private) SKEIN-256

PGPHASHALGO_SKEIN_384 

(private) SKEIN-384

PGPHASHALGO_SKEIN_512 

(private) SKEIN-512

PGPHASHALGO_SKEIN_1024 

(private) SKEIN-1024

PGPHASHALGO_BMW_224 

(private) BMW-224

PGPHASHALGO_BMW_256 

(private) BMW-256

PGPHASHALGO_BMW_384 

(private) BMW-384

PGPHASHALGO_BMW_512 

(private) BMW-512

PGPHASHALGO_SHABAL_224 

(private) SHABAL-224

PGPHASHALGO_SHABAL_256 

(private) SHABAL-256

PGPHASHALGO_SHABAL_384 

(private) SHABAL-384

PGPHASHALGO_SHABAL_512 

(private) SHABAL-512

PGPHASHALGO_SHAVITE3_224 

(private) SHAVITE3-224

PGPHASHALGO_SHAVITE3_256 

(private) SHAVITE3-256

PGPHASHALGO_SHAVITE3_384 

(private) SHAVITE3-384

PGPHASHALGO_SHAVITE3_512 

(private) SHAVITE3-512

PGPHASHALGO_BLAKE_224 

(private) BLAKE-224

PGPHASHALGO_BLAKE_256 

(private) BLAKE-256

PGPHASHALGO_BLAKE_384 

(private) BLAKE-384

PGPHASHALGO_BLAKE_512 

(private) BLAKE-512

PGPHASHALGO_TIB3_224 

(private) TIB3-224

PGPHASHALGO_TIB3_256 

(private) TIB3-256

PGPHASHALGO_TIB3_384 

(private) TIB3-384

PGPHASHALGO_TIB3_512 

(private) TIB3-512

PGPHASHALGO_SIMD_224 

(private) SIMD-224

PGPHASHALGO_SIMD_256 

(private) SIMD-256

PGPHASHALGO_SIMD_384 

(private) SIMD-384

PGPHASHALGO_SIMD_512 

(private) SIMD-512

PGPHASHALGO_ARIRANG_224 

(private) ARIRANG-224

PGPHASHALGO_ARIRANG_256 

(private) ARIRANG-256

PGPHASHALGO_ARIRANG_384 

(private) ARIRANG-384

PGPHASHALGO_ARIRANG_512 

(private) ARIRANG-512

PGPHASHALGO_LANE_224 

(private) LANE-224

PGPHASHALGO_LANE_256 

(private) LANE-256

PGPHASHALGO_LANE_384 

(private) LANE-384

PGPHASHALGO_LANE_512 

(private) LANE-512

PGPHASHALGO_LUFFA_224 

(private) LUFFA-224

PGPHASHALGO_LUFFA_256 

(private) LUFFA-256

PGPHASHALGO_LUFFA_384 

(private) LUFFA-384

PGPHASHALGO_LUFFA_512 

(private) LUFFA-512

PGPHASHALGO_CHI_224 

(private) CHI-224

PGPHASHALGO_CHI_256 

(private) CHI-256

PGPHASHALGO_CHI_384 

(private) CHI-384

PGPHASHALGO_CHI_512 

(private) CHI-512

PGPHASHALGO_JH_224 

(private) JH-224

PGPHASHALGO_JH_256 

(private) JH-256

PGPHASHALGO_JH_384 

(private) JH-384

PGPHASHALGO_JH_512 

(private) JH-512

PGPHASHALGO_GROESTL_224 

(private) GROESTL-224

PGPHASHALGO_GROESTL_256 

(private) GROESTL-256

PGPHASHALGO_GROESTL_384 

(private) GROESTL-384

PGPHASHALGO_GROESTL_512 

(private) GROESTL-512

PGPHASHALGO_HAMSI_224 

(private) HAMSI-224

PGPHASHALGO_HAMSI_256 

(private) HAMSI-256

PGPHASHALGO_HAMSI_384 

(private) HAMSI-384

PGPHASHALGO_HAMSI_512 

(private) HAMSI-512

Definition at line 171 of file rpmiotypes.h.

§ pgpVSFlags_e

Bit(s) to control digest and signature verification.

Enumerator
RPMVSF_DEFAULT 
RPMVSF_NOHDRCHK 
RPMVSF_NEEDPAYLOAD 
RPMVSF_NOSHA1HEADER 
RPMVSF_NOMD5HEADER 
RPMVSF_NODSAHEADER 
RPMVSF_NORSAHEADER 
RPMVSF_NOSHA1 
RPMVSF_NOMD5 
RPMVSF_NODSA 
RPMVSF_NORSA 

Definition at line 100 of file rpmiotypes.h.

§ rpmCallbackType_e

Bit(s) to identify progress callbacks.

Enumerator
RPMCALLBACK_UNKNOWN 
RPMCALLBACK_INST_PROGRESS 
RPMCALLBACK_INST_START 
RPMCALLBACK_INST_OPEN_FILE 
RPMCALLBACK_INST_CLOSE_FILE 
RPMCALLBACK_TRANS_PROGRESS 
RPMCALLBACK_TRANS_START 
RPMCALLBACK_TRANS_STOP 
RPMCALLBACK_UNINST_PROGRESS 
RPMCALLBACK_UNINST_START 
RPMCALLBACK_UNINST_STOP 
RPMCALLBACK_REPACKAGE_PROGRESS 
RPMCALLBACK_REPACKAGE_START 
RPMCALLBACK_REPACKAGE_STOP 
RPMCALLBACK_UNPACK_ERROR 
RPMCALLBACK_CPIO_ERROR 
RPMCALLBACK_SCRIPT_ERROR 
RPMCALLBACK_SCRIPT_START 
RPMCALLBACK_SCRIPT_STOP 
RPMCALLBACK_INST_STOP 

Definition at line 124 of file rpmiotypes.h.

§ rpmDigestFlags_e

Bit(s) to control digest operation.

Enumerator
RPMDIGEST_NONE 

Definition at line 303 of file rpmiotypes.h.

§ rpmRC_e

enum rpmRC_e

RPM return codes.

Enumerator
RPMRC_OK 

Generic success code

RPMRC_NOTFOUND 

Generic not found code.

RPMRC_FAIL 

Generic failure code.

RPMRC_NOTTRUSTED 

Signature is OK, but key is not trusted.

RPMRC_NOKEY 

Public key is unavailable.

RPMRC_NOSIG 

Signature is unavailable.

Definition at line 11 of file rpmiotypes.h.

Function Documentation

§ _free()

static void* _free ( const void *  p)
inlinestatic

Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.

Parameters
pmemory to free
Returns
NULL always

Definition at line 647 of file rpmiotypes.h.

Referenced by _fnTag(), _GetPass(), _rpmmc_free(), _rpmtsCheck(), _tagGenerate(), _tagName(), _tagValue(), addChangelog(), addFile(), addFileToTag(), addFileToTagAux(), addOrAppendListEntry(), addReqProv(), addSource(), addTE(), archScore(), argiFree(), argvFree(), argvSplit(), armorFormat(), base64Format(), bncdataFormat(), build(), buildSpec(), cdataFormat(), checkForDuplicates(), checkForValidArchitectures(), checkPackageSet(), checkUnpackagedFiles(), Chroot(), closeCallback(), closeSpec(), compare(), compressFilelist(), cpio_doio(), cpioHeaderRead(), createDir(), ctxFini(), db3Acallback(), db3associate(), db3associate_foreign(), db3close(), db3open(), db3stat(), db_init(), dbiFindMatches(), dbiFreeIndexSet(), dbiMireKeys(), dbiTagsInit(), debevrfmtTag(), debevrTag(), debmd5sumsTag(), defaultMachine(), delTE(), dnlFreeIterator(), dodigest(), doIcon(), doPatch(), doSetupMacro(), doUntar(), dsort(), ensureOlder(), expandMacro(), extractRegular(), fdFini(), FDGsqlTag(), FDGxmlTag(), FDGyamlTag(), fiIntersect(), filestatTag(), fillOutMainPackage(), findErases(), findPreambleTag(), Fopen(), formatValue(), fpLookupList(), fpLookupSubdir(), freeAttrRec(), freeFileList(), freeFormat(), freeFSM(), freeGlobs(), freeHardLink(), freeIOSM(), freeItem(), freeItems(), freeNames(), freeSl(), freeSources(), freeSt(), freeTriggerFiles(), fsmCommitLinks(), fsmMakeLinks(), fsmMapPath(), fsmMkdirs(), fsmStage(), fsmTeardown(), fssizesTag(), ftsCacheUpdate(), genCpioListAndHeader(), genSourceRpmName(), getFilesystemList(), getMachineInfo(), getOutputFrom(), getSignid(), getSourceDir(), grabArgs(), grabData(), grepArgCallback(), handleInstInstalledFile(), handleOneScriptTrigger(), handleOneTrigger(), handleOverlappedFiles(), handlePreambleTag(), hCopyTag(), hdr_subscript(), hdrKeyList(), hdrSprintf(), hdrUnload(), headerAddOrAppendEntry(), headerCheck(), headerCopy(), headerCopyTags(), headerFini(), headerLoad(), headerMacrosLoad(), headerMacrosUnload(), headerMap(), headerMergeLegacySigs(), headerModifyEntry(), headerNEVRA(), headerRegenSigHeader(), headerReload(), headerRemoveEntry(), headerScrub(), headerSetBaseURL(), headerSetDigest(), headerSetOrigin(), headerSetParent(), headerSprintf(), headerUnload(), hGetColor(), hGetNVRA(), hLoadTID(), htFini(), httpOpen(), i18nTag(), IDTXfree(), IDTXglob(), IDTXload(), initGlobs(), initSourceHeader(), installArgCallback(), instprefixTag(), iosmCommitLinks(), iosmMakeLinks(), iosmMapPath(), iosmMkdirs(), iosmStage(), iosmTeardown(), isMemberInEntry(), isPart(), jsonFormat(), loadDBT(), localeTag(), lookupPackage(), main(), makeGPGSignature(), makeHDRSignature(), mapFreeIterator(), miFreeHeader(), mireClean(), mireSkip(), mtreeVisitD(), mtreeVisitF(), needswhatTag(), nwlookupTag(), Open(), open_dso(), packageBinaries(), packageSources(), parseBuildInstallClean(), parseChangelog(), parseCVOG(), parseDescription(), parseExpressionBoolean(), parseExpressionString(), parseFiles(), parseForRegexLang(), parseForSimple(), parsePreamble(), parseRCPOT(), parseScript(), parseSimplePart(), parseSpec(), pgpArmorUnwrap(), pgpArmorWrap(), pgpDigClean(), pgpDigFini(), pgpExtractPubkeyFingerprint(), pgpGrabPkts(), pgpMpiSet(), pgpPrtPkts(), pgpPrtUserID(), pgpPubkeyFingerprint(), pkgFini(), pkgUnpackagedSubdirs(), pointRpmEVR(), popMacro(), populateInstallHeader(), PRCOsqlTag(), PRCOxmlTag(), PRCOyamlTag(), prepFetch(), prepFetchVerbose(), printFileInfo(), printNewSpecfile(), printParsedSpecfile(), processBinaryFile(), processBinaryFiles(), processMetadataFile(), processPackageFiles(), processScriptFiles(), processSourceFiles(), providePackageNVR(), queryArgCallback(), rdLead(), rdSignature(), readFile(), readLine(), readLineFromOFI(), Realpath(), rebuildCompatTables(), relocateFileList(), rfileHeaderSprintf(), rpm3to4(), rpmalAllSatisfiesDepend(), rpmalFini(), rpmalFreeIndex(), rpmbcClean(), rpmbcFree(), rpmbcMpiItem(), rpmbcSetDSA(), rpmbcSetRSA(), rpmCheckPassPhrase(), rpmcliAllArgCallback(), rpmcliConfigured(), rpmcliFini(), rpmcliImportPubkey(), rpmcliImportPubkeys(), rpmcliInit(), rpmcliInstall(), rpmcliInstallElementPath(), rpmcliInstallSuggests(), rpmcliQuery(), rpmdbAdd(), rpmdbClose(), rpmdbExportHR_MIB(), rpmdbExportL10N_SQL(), rpmdbNew(), rpmdbRemove(), rpmdbURIPath(), rpmdcParseZeroInstall(), rpmdcPrintFile(), rpmDigestFinal(), rpmds_compare(), rpmdsCompare(), rpmdsCpuinfo(), rpmdsELF(), rpmdsFini(), rpmdsFreePRCO(), rpmdsFromPRCO(), rpmdsGetconf(), rpmdsLdconfig(), rpmdsMerge(), rpmdsNew(), rpmdsNext(), rpmdsNVRMatchesDep(), rpmdsPipe(), rpmdsSysinfo(), rpmdsThis(), rpmecFree(), rpmEVRfree(), rpmExpandNumeric(), rpmfcClassify(), rpmfcExec(), rpmfcExpandRegexps(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmfcSCRIPT(), rpmfd_Fopen(), rpmfi_FClass_get(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiFini(), rpmfiFreeRelocations(), rpmfiNew(), rpmfiOpendir(), rpmFreeFilesystems(), rpmFreeMacros(), rpmFreeRpmrc(), rpmfts_dealloc(), rpmfts_initialize(), rpmGenPath(), rpmGetFilesystemUsage(), rpmgiFini(), rpmgiGlobArgv(), rpmgiInitFilter(), rpmgiLoadReadHeader(), rpmgiNext(), rpmgiOpen(), rpmGlob(), rpmhdrLoadTag(), rpmHeadersIdentical(), rpmheClean(), rpmheRealloc(), rpmHmacInit(), rpmInitMacros(), rpmInstallSourcePackage(), rpmioAllArgCallback(), rpmiobFini(), rpmiobSlurp(), rpmioFreePool(), rpmioInit(), rpmioParse(), rpmioPFree(), rpmioPutPool(), rpmlibMarkers(), rpmLoadMacroFile(), rpmlogClose(), rpmmgFini(), rpmmiAddPattern(), rpmmiFini(), rpmmiInit(), rpmnsArch(), rpmnsClean(), rpmnsProbeSignature(), rpmperlNew(), rpmPlatform(), rpmps_ass_sub(), rpmpsFini(), rpmpsFreeIterator(), rpmpsmFini(), rpmpsmStage(), rpmpsPrint(), rpmpythonNew(), rpmpythonRun(), rpmQueryVerify(), rpmrbLoadClasses(), rpmrbLoadFile(), rpmReadConfigFiles(), rpmReadHeader(), rpmReadHeaders(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmReadRC(), rpmRebuildTargetVars(), rpmrepoCloseMDFile(), rpmrepoDoFinalMove(), rpmrepoDoPkgMetadata(), rpmrepoDoRepoMetadata(), rpmrepoFini(), rpmrepoInitPopt(), rpmrepoMkdir(), rpmrepoOpenMDFile(), rpmrepoReadHeader(), rpmrepoRfileDigest(), rpmrepoTestSetupDirs(), rpmReSign(), rpmrfileXMLWrite(), rpmRollback(), rpmSetMachine(), rpmShowProgress(), rpmShowRC(), rpmSingleHeaderFromFD(), rpmsqlArgv(), rpmsqlFini(), rpmsqlI(), rpmsqlNew(), rpmsqlRun(), rpmsquirrelGetPool(), rpmsxFini(), rpmsxNew(), rpmte_free(), rpmteChain(), rpmteFreeTSI(), rpmteHaveTransScript(), rpmTempFile(), rpmteNew(), rpmts_Check(), rpmts_HdrCheck(), rpmts_IDTXglob(), rpmtsAddInstallElement(), rpmtsAddObsoletes(), rpmtsAddUpgrades(), rpmtsAvailable(), rpmtsCallback(), rpmtsCheckInstalledFiles(), rpmtsClean(), rpmtsEraseDebuginfo(), rpmtsFindPubkey(), rpmtsFini(), rpmtsInitDSI(), rpmtsOpenDB(), rpmtsOpenSDB(), rpmtsPRCO(), rpmtsPrepare(), rpmtsProcess(), rpmtsRebuildDB(), rpmtsRollback(), rpmtsSanityCheck(), rpmtsSetCurrDir(), rpmtsSetRootDir(), rpmtsSetup(), rpmtsSkipFiles(), rpmtsSolve(), rpmVerifySignatures(), rpmVersionCompare(), rpmvfFree(), rpmvtNew(), rpmWriteHeader(), rpmWriteHeaders(), rpmxarFini(), rpmxarPull(), rpmxarStat(), rpmxarSwapBuf(), runImmedTriggers(), runInstScript(), runScript(), runScriptTriggers(), runTriggers(), runTriggersLoop(), saveHardLink(), scpFini(), scpReset(), scpResetAv(), scpResetKeys(), showQueryPackage(), showVerifyPackage(), spec_get_buildroot(), specFini(), spewescapeFormat(), sql_cclose(), sql_cget(), sql_close(), sql_exec(), sql_initDB(), sql_open(), sql_stat(), stashSt(), statFormat(), str2uuid(), strsubFormat(), tag2uuidv1(), tag2uuidv5(), tagClean(), tagLoadATags(), tagStoreFree(), tagValidate(), tarHeaderReadName(), timeCheck(), triggercondsTag(), triggertypeTag(), tv2uuidv1(), unsatisfiedDepend(), urlFind(), urlFini(), urlFreeCache(), urlGetFile(), urlSplit(), uuidFormat(), valueFree(), verifyMD5(), verifySHA1(), vrpmlog(), whatneedsTag(), wnlookupTag(), writeLinkedFile(), writeRPM(), xarSize(), xmlFormat(), XpoptParseArgvString(), and yamlFormat().

§ rpmDigestAlgo()

pgpHashAlgo rpmDigestAlgo ( DIGEST_CTX  ctx)

Return digest algorithm identifier.

Parameters
ctxdigest context
Returns
digest hash algorithm identifier

Definition at line 188 of file digest.c.

References DIGEST_CTX_s::hashalgo, and PGPHASHALGO_NONE.

Referenced by fdFiniDigest(), fdStealDigest(), rpmbcSetDSA(), rpmbcSetECDSA(), rpmbcSetELG(), rpmbcSetRSA(), verifyDSA(), and verifyRSA().

§ rpmDigestASN1()

const char* rpmDigestASN1 ( DIGEST_CTX  ctx)

Return digest ASN1 oid string.

Values from PKCS#1 v2.1 (aka RFC-3447).

Parameters
ctxdigest context
Returns
digest ASN1 oid string

Definition at line 203 of file digest.c.

References DIGEST_CTX_s::asn1.

Referenced by rpmbcSetRSA().

§ rpmDigestDup()

DIGEST_CTX rpmDigestDup ( DIGEST_CTX  octx)

§ rpmDigestF()

rpmDigestFlags rpmDigestF ( DIGEST_CTX  ctx)

Return digest flags.

Parameters
ctxdigest context
Returns
digest flags

Definition at line 193 of file digest.c.

References DIGEST_CTX_s::flags, and RPMDIGEST_NONE.

§ rpmDigestFinal()

int rpmDigestFinal ( DIGEST_CTX  ctx,
void *  datap,
size_t *  lenp,
int  asAscii 
)

§ rpmDigestInit()

DIGEST_CTX rpmDigestInit ( pgpHashAlgo  hashalgo,
rpmDigestFlags  flags 
)

Initialize digest.

Set bit count to 0 and buffer to mysterious initialization constants.

Parameters
hashalgotype of digest
flagsbit(s) to control digest operation
Returns
digest context

Definition at line 244 of file digest.c.

References __adler32(), __adler32_combine(), __crc32(), __crc32_combine(), __crc64(), __crc64_combine(), DIGEST_CTX_s::asn1, DIGEST_CTX_s::blocksize, sum32Param::combine, sum64Param::combine, ctxGetPool(), DIGEST_CTX_s::Digest, DIGEST_CTX_s::digestsize, DPRINTF, DRD_xcalloc, DIGEST_CTX_s::flags, DIGEST_CTX_s::hashalgo, L, md6_Update(), DIGEST_CTX_s::name, noopReset(), DIGEST_CTX_s::param, DIGEST_CTX_s::paramsize, PGPHASHALGO_ADLER32, PGPHASHALGO_ARIRANG_224, PGPHASHALGO_ARIRANG_256, PGPHASHALGO_ARIRANG_384, PGPHASHALGO_ARIRANG_512, PGPHASHALGO_BLAKE_224, PGPHASHALGO_BLAKE_256, PGPHASHALGO_BLAKE_384, PGPHASHALGO_BLAKE_512, PGPHASHALGO_BMW_224, PGPHASHALGO_BMW_256, PGPHASHALGO_BMW_384, PGPHASHALGO_BMW_512, PGPHASHALGO_CHI_224, PGPHASHALGO_CHI_256, PGPHASHALGO_CHI_384, PGPHASHALGO_CHI_512, PGPHASHALGO_CRC32, PGPHASHALGO_CRC64, PGPHASHALGO_CUBEHASH_224, PGPHASHALGO_CUBEHASH_256, PGPHASHALGO_CUBEHASH_384, PGPHASHALGO_CUBEHASH_512, PGPHASHALGO_ECHO_224, PGPHASHALGO_ECHO_256, PGPHASHALGO_ECHO_384, PGPHASHALGO_ECHO_512, PGPHASHALGO_EDONR_224, PGPHASHALGO_EDONR_256, PGPHASHALGO_EDONR_384, PGPHASHALGO_EDONR_512, PGPHASHALGO_FUGUE_224, PGPHASHALGO_FUGUE_256, PGPHASHALGO_FUGUE_384, PGPHASHALGO_FUGUE_512, PGPHASHALGO_GROESTL_224, PGPHASHALGO_GROESTL_256, PGPHASHALGO_GROESTL_384, PGPHASHALGO_GROESTL_512, PGPHASHALGO_HAMSI_224, PGPHASHALGO_HAMSI_256, PGPHASHALGO_HAMSI_384, PGPHASHALGO_HAMSI_512, PGPHASHALGO_HAVAL_5_160, PGPHASHALGO_JH_224, PGPHASHALGO_JH_256, PGPHASHALGO_JH_384, PGPHASHALGO_JH_512, PGPHASHALGO_JLU32, PGPHASHALGO_KECCAK_224, PGPHASHALGO_KECCAK_256, PGPHASHALGO_KECCAK_384, PGPHASHALGO_KECCAK_512, PGPHASHALGO_LANE_224, PGPHASHALGO_LANE_256, PGPHASHALGO_LANE_384, PGPHASHALGO_LANE_512, PGPHASHALGO_LUFFA_224, PGPHASHALGO_LUFFA_256, PGPHASHALGO_LUFFA_384, PGPHASHALGO_LUFFA_512, PGPHASHALGO_MD2, PGPHASHALGO_MD4, PGPHASHALGO_MD5, PGPHASHALGO_MD6_224, PGPHASHALGO_MD6_256, PGPHASHALGO_MD6_384, PGPHASHALGO_MD6_512, PGPHASHALGO_RIPEMD128, PGPHASHALGO_RIPEMD160, PGPHASHALGO_RIPEMD256, PGPHASHALGO_RIPEMD320, PGPHASHALGO_SALSA10, PGPHASHALGO_SALSA20, PGPHASHALGO_SHA1, PGPHASHALGO_SHA224, PGPHASHALGO_SHA256, PGPHASHALGO_SHA384, PGPHASHALGO_SHA512, PGPHASHALGO_SHABAL_224, PGPHASHALGO_SHABAL_256, PGPHASHALGO_SHABAL_384, PGPHASHALGO_SHABAL_512, PGPHASHALGO_SHAVITE3_224, PGPHASHALGO_SHAVITE3_256, PGPHASHALGO_SHAVITE3_384, PGPHASHALGO_SHAVITE3_512, PGPHASHALGO_SIMD_224, PGPHASHALGO_SIMD_256, PGPHASHALGO_SIMD_384, PGPHASHALGO_SIMD_512, PGPHASHALGO_SKEIN_1024, PGPHASHALGO_SKEIN_224, PGPHASHALGO_SKEIN_256, PGPHASHALGO_SKEIN_384, PGPHASHALGO_SKEIN_512, PGPHASHALGO_TIB3_224, PGPHASHALGO_TIB3_256, PGPHASHALGO_TIB3_384, PGPHASHALGO_TIB3_512, PGPHASHALGO_TIGER192, DIGEST_CTX_s::Reset, rpmioFreePoolItem(), rpmioLinkPoolItem(), DIGEST_CTX_s::salt, sum32Digest(), sum32Reset(), sum32Update(), sum64Digest(), sum64Reset(), sum64Update(), sum32Param::update, sum64Param::update, and DIGEST_CTX_s::Update.

Referenced by _tagGenerate(), digestFormat(), dodigest(), fdInitDigest(), headerCheck(), makeHDRSignature(), pgpPubkeyFingerprint(), readFile(), rpmcliImportPubkey(), rpmdcParseZeroInstall(), rpmDigestFinal(), rpmHmacInit(), rpmnsProbeSignature(), rpmReadPackageFile(), rpmrepoRfileDigest(), and unsatisfiedDepend().

§ rpmDigestName()

const char* rpmDigestName ( DIGEST_CTX  ctx)

Return digest name.

Parameters
ctxdigest context
Returns
digest name

Definition at line 198 of file digest.c.

References DIGEST_CTX_s::name.

Referenced by verifyDSA(), verifyMD5(), verifyRSA(), and verifySHA1().

§ rpmDigestUpdate()

int rpmDigestUpdate ( DIGEST_CTX  ctx,
const void *  data,
size_t  len 
)

§ rpmHmacInit()

int rpmHmacInit ( DIGEST_CTX  ctx,
const void *  key,
size_t  keylen 
)

Compute key material and add to digest context.

Parameters
ctxdigest context
keyHMAC key (NULL does digest instead)
keylenHMAC key length(bytes) (0 uses strlen(key))
Returns
0 on success

Definition at line 983 of file digest.c.

References _free(), DIGEST_CTX_s::blocksize, DPRINTF, DRD_xcalloc, DIGEST_CTX_s::hashalgo, HMAC_IPAD, DIGEST_CTX_s::name, RPMDIGEST_NONE, rpmDigestFinal(), rpmDigestInit(), rpmDigestUpdate(), and DIGEST_CTX_s::salt.

Referenced by dodigest(), fdInitHmac(), and rpmdcParseZeroInstall().

§ rpmiobAppend()

rpmiob rpmiobAppend ( rpmiob  iob,
const char *  s,
size_t  nl 
)

§ rpmiobBuf()

rpmuint8_t* rpmiobBuf ( rpmiob  iob)

Return I/O buffer.

Parameters
iobI/O buffer
Returns
I/O buffer (as octets)

Definition at line 103 of file rpmiob.c.

References _rpmiob_debug.

§ rpmiobEmpty()

rpmiob rpmiobEmpty ( rpmiob  iob)

Empty an I/O buffer.

Parameters
iobI/O buffer
Returns
I/O buffer

Definition at line 57 of file rpmiob.c.

References _rpmiob_debug.

Referenced by rpmfcGenerateScriptletDeps().

§ rpmiobFree()

rpmiob rpmiobFree ( rpmiob  iob)

§ rpmiobLen()

size_t rpmiobLen ( rpmiob  iob)

Return I/O buffer len.

Parameters
iobI/O buffer
Returns
I/O buffer length

Definition at line 123 of file rpmiob.c.

References _rpmiob_debug.

Referenced by rpmfcExec(), and rpmvcNew().

§ rpmiobLink()

rpmiob rpmiobLink ( rpmiob  iob)

Reference a I/O buffer instance.

Parameters
iobI/O buffer
Returns
new I/O buffer reference

Referenced by rpmiobNew().

§ rpmiobNew()

rpmiob rpmiobNew ( size_t  len)

§ rpmiobRTrim()

rpmiob rpmiobRTrim ( rpmiob  iob)

Trim trailing white space.

Parameters
iobI/O buffer
Returns
I/O buffer

Definition at line 67 of file rpmiob.c.

References _rpmiob_debug, and xisspace().

Referenced by parseDescription(), parseScript(), rpmfcGenerateScriptletDeps(), and rpmsqlRun().

§ rpmiobStr()

char* rpmiobStr ( rpmiob  iob)

§ rpmiobUnlink()

rpmiob rpmiobUnlink ( rpmiob  iob)

Unreference a I/O buffer instance.

Parameters
iobhash table
Returns
NULL if free'd

§ rpmioParse()

rpmRC rpmioParse ( rpmioP Pptr,
const char *  str 
)

Parse next command out of a string incrementally.

Parameters
*Pptrparser state
strstring to parse
Returns
RPMRC_OK on success

Definition at line 951 of file poptIO.c.

References _free(), rpmioP_s::ac, argvAdd(), argvFree(), rpmioP_s::av, matchchar(), rpmioP_s::next, RPMRC_FAIL, RPMRC_NOTFOUND, RPMRC_OK, rpmioP_s::str, xcalloc(), and xstrdup().

§ rpmioPFree()

rpmioP rpmioPFree ( rpmioP  P)

Destroy a rpmioP object.

Parameters
Pparser state
Returns
NULL

Definition at line 941 of file poptIO.c.

References _free(), argvFree(), rpmioP_s::av, and rpmioP_s::str.

§ xisalnum()

static int xisalnum ( int  c)
inlinestatic

§ xisalpha()

static int xisalpha ( int  c)
inlinestatic

Definition at line 434 of file rpmiotypes.h.

References xislower(), and xisupper().

Referenced by doDefine(), doUndefine(), dpkgEVRctype(), parseBits(), rdToken(), rpmsqlI(), xisalnum(), and xisrpmalpha().

§ xisascii()

static int xisascii ( int  c)
inlinestatic

Definition at line 452 of file rpmiotypes.h.

Referenced by xisgraph(), and xisprint().

§ xisblank()

static int xisblank ( int  c)
inlinestatic

Definition at line 443 of file rpmiotypes.h.

Referenced by rpmsqlI(), and xisspace().

§ xiscntrl()

static int xiscntrl ( int  c)
inlinestatic

Definition at line 449 of file rpmiotypes.h.

§ xisdigit()

static int xisdigit ( int  c)
inlinestatic

§ xisgraph()

static int xisgraph ( int  c)
inlinestatic

Definition at line 458 of file rpmiotypes.h.

References xisascii().

Referenced by xispunct().

§ xislower()

static int xislower ( int  c)
inlinestatic

Definition at line 428 of file rpmiotypes.h.

Referenced by xisalpha(), and xtoupper().

§ xisprint()

static int xisprint ( int  c)
inlinestatic

Definition at line 455 of file rpmiotypes.h.

References xisascii().

Referenced by fmtDBT().

§ xispunct()

static int xispunct ( int  c)
inlinestatic

Definition at line 461 of file rpmiotypes.h.

References xisalnum(), and xisgraph().

Referenced by xisrpmalpha().

§ xisspace()

static int xisspace ( int  c)
inlinestatic

§ xisupper()

static int xisupper ( int  c)
inlinestatic

Definition at line 431 of file rpmiotypes.h.

Referenced by xisalpha(), and xtolower().

§ xstrcasecmp()

int xstrcasecmp ( const char *  s1,
const char *  s2 
)

§ xstrncasecmp()

int xstrncasecmp ( const char *  s1,
const char *  s2,
size_t  n 
)

Locale insensitive strncasecmp(3).

Definition at line 30 of file strcasecmp.c.

References xtolower().

Referenced by findPreambleTag(), isPart(), Link(), matchTok(), pgpHashAlgoStringToNumber(), Rename(), and xtoupper().

§ xstrtolocale()

const char* xstrtolocale ( const char *  str)

Force encoding of string.

Definition at line 15 of file strtolocale.c.

References errno, xmalloc, and xrealloc.

Referenced by localeTag(), parseChangelog(), and xtoupper().

§ xtolower()

static int xtolower ( int  c)
inlinestatic

§ xtoupper()

static int xtoupper ( int  c)
inlinestatic

Definition at line 468 of file rpmiotypes.h.

References rpmiobUnlink, xislower(), xstrcasecmp(), xstrncasecmp(), and xstrtolocale().

Referenced by _tagCanonicalize(), and rpmsqlI().

Variable Documentation

§ _rpmiob_chunk

size_t _rpmiob_chunk

Definition at line 11 of file rpmiob.c.

Referenced by rpmiobAppend(), and rpmiobNew().