Commit Graph

711 Commits

Author SHA1 Message Date
Panu Matilainen a1cab56e70 Add doxygen group for macros, include in librpm + hacking docs 2007-11-23 14:39:51 +02:00
Ralf Corsépius b1c0f900aa Reflect changes to include files. 2007-11-23 11:41:38 +01:00
Ralf Corsépius 8ef0ca213f Expand private include file names to be relative to $(top_srcdir) 2007-11-23 11:41:29 +01:00
Panu Matilainen dae44a0f38 Export FD statistics enums + fdOp() method 2007-11-23 12:00:22 +02:00
Panu Matilainen c10e5da8a0 librpmio needs elf include+lib now, librpmdb doesn't 2007-11-23 10:32:10 +02:00
Panu Matilainen 7b2a9b3c24 Move rpmGlob() from macros to rpmfileutil.h
- macros is all just macros now
- internal copy of popt stuff needs to go...
2007-11-23 10:27:29 +02:00
Panu Matilainen 2c6905dd9f Move rpmGetPath and rpmGenPath to rpmfileutil.h 2007-11-23 10:20:19 +02:00
Panu Matilainen 178e32a0ba Move rpmCleanPath from macros to rpmfileutil.h 2007-11-23 10:10:19 +02:00
Panu Matilainen ff77bfa2a1 Move file compression stuff from rpmmacro.h to rpmfileutil.h 2007-11-23 10:05:49 +02:00
Panu Matilainen c1bcd63301 Move rpmioMkpath from rpmio.h to rpmfileutil.h 2007-11-23 09:58:02 +02:00
Panu Matilainen d10acc7c2a Move makeTempFile() from misc.h to rpmfileutil.h
- probably not very useful outside rpm but used all over the tree,
- rename to rpmMkTempFile() for namespacing since we're exporting it now
2007-11-22 16:28:30 +02:00
Panu Matilainen e063854e11 Calculating file checksums aint legacy activity
- move the checksumming into librpmio
- rename domd5() to rpmDoDigest() with future expansion for specifying
  digest algorithm type (ignored for now)
- rearrange parameters to leave return types last
- one less rpmio_internal outside rpmio/, whee...
- used all over the rpm tree, and it knows about handling prelinked files
  so potentially useful for outside users, might as well export it
- new public header rpmfilutil.h for collecting this sort of stuff
2007-11-22 16:06:11 +02:00
Panu Matilainen b32cca3480 Move pgpDig typedefs to a more obvious place.. 2007-11-22 14:48:07 +02:00
Panu Matilainen 4ad615daf5 Move the xstr*() string variants from rpmio.h to rpmstring.h 2007-11-23 08:32:08 +02:00
Panu Matilainen 115d698252 Move string helpers from lib/misc.h to rpmio/rpmstring.h
- splitString, freeSplitString, stripTrailingChar
2007-11-23 08:21:23 +02:00
Panu Matilainen d6990c3ab1 Move stringbuf into librpmio, rename header
- rename header to more generic rpmstring.h for collecting misc string
  helper functions
2007-11-23 08:11:42 +02:00
Ralf Corsépius abeea80a38 Use #include <x.h> syntax to include public headers. 2007-11-23 06:46:19 +01:00
Ralf Corsépius 94d2343931 Add -I$(top_builddir)/include/rpm to AM_CPPFLAGS. 2007-11-22 16:17:20 +01:00
Panu Matilainen 17ef8a3082 Lose rpmerr.h for good 2007-11-19 16:32:15 +02:00
Panu Matilainen 43c5de66fb Replace all RPMERR_* etc uses with corresponding RPMLOG_* levels 2007-11-19 16:25:24 +02:00
Panu Matilainen db4e34966e Split digest-stuff out of rpmio_internal to separate header 2007-11-16 17:37:54 +02:00
Panu Matilainen 3587db8c4e Eliminate copy-paste fd digest stealing, stuff into rpmio_internal 2007-11-16 17:18:55 +02:00
Panu Matilainen 157759299d Eliminate need for rpmio_internal.h in rpmdb.c
- adds new pgpExtractPubkeyFingerprint() API function

Ported from rpm5.org work of Jeff Johnson
2007-11-16 14:16:56 +02:00
Panu Matilainen 3a168d6927 Remember to initialize crypto in various test programs.. 2007-11-15 14:03:19 +02:00
Panu Matilainen 589b54af90 Initialize NSS early (rhbz#382091)
- add new rpmInitCrypto() API for directly initializing any crypto
- call it from rpmReadConfig() to ensure it's always initialized early on
2007-11-15 11:08:53 +02:00
Panu Matilainen 905ea76db4 Fix base64 decoder related crash (rhbz#380911)
The base64 decoder code incorrectly assumed that char is a signed type.
Patch from Tomas Mraz
2007-11-14 21:52:42 +02:00
Panu Matilainen 7d032c3505 Minimal protection for rpmsqElem internals 2007-11-08 15:59:45 +02:00
Panu Matilainen 4471d9c371 Move tufdio under rpmio/ where it belongs.. 2007-11-07 11:41:06 +02:00
Panu Matilainen d8741ebc13 Silence bunch of compiler warnings from test programs 2007-11-07 11:00:51 +02:00
Panu Matilainen d8babb5a86 Remove .splintrc's in the tree 2007-11-07 09:01:38 +02:00
Peter Jones bb6aaf184e Merge 2007-11-02 09:25:33 -04:00
Peter Jones 51f5b6caa8 - Fix segfault in %{lua:...}'s rpm_print
- Don't automatically print a newline in rpm_print
2007-11-02 09:23:05 -04:00
Panu Matilainen 0781adb1cb Eliminate macro struct internals from the API 2007-11-02 10:40:45 +02:00
Panu Matilainen cefa324b3a Meh, actually add the base64 files.. 2007-11-02 10:24:42 +02:00
Panu Matilainen 1a32f9959e Remove tinv 2007-11-02 10:18:23 +02:00
Panu Matilainen 524262f6f8 Resurrect tax from NSS switchover 2007-11-02 10:11:54 +02:00
Panu Matilainen 8afe81c214 Use NSS instead of beecrypt for encryption (Tomas Mraz) 2007-11-02 10:02:40 +02:00
Ralf Corsépius 41d0a9fd3e Don't build stubs.c.
Link against ../misc/libmisc.la.
2007-10-30 12:16:21 +01:00
Ralf Corsépius 002b3ca2f9 Include <assert.h>. 2007-10-30 03:27:07 +01:00
Ralf Corsépius 88b0c2bbb5 Remove URLMAGIC, URLSANE.
Remove include <assert.h>.
2007-10-30 02:57:14 +01:00
Ralf Corsépius d2384456f7 Add URLMAGIC, URLSANE.
Remove URLDBG (unused).
Include <assert.h>.
2007-10-30 02:56:34 +01:00
Panu Matilainen bdd3cd3ed6 Macros don't need rpmio_internal 2007-10-29 12:55:43 +02:00
Panu Matilainen 46e669f06e Remove bunch of long-dead macro debug stuff 2007-10-29 09:30:45 +02:00
Panu Matilainen 3357b1fc76 Export rpmio fdGetFILE() 2007-10-29 09:20:59 +02:00
Panu Matilainen da6a613eb3 Remove leftover comment 2007-10-29 09:11:37 +02:00
Ralf Corsépius 7134487e28 Eliminate BSD-types. 2007-10-28 09:53:01 +01:00
Ralf Corsépius 6a10fc8814 Eliminate u_short, USHRT_MAX. 2007-10-28 07:30:58 +01:00
Ralf Corsépius 9735f83012 Include "rpmio_internal.h" instead of <rpmio_internal.h>. 2007-10-28 06:43:19 +01:00
Ralf Corsépius 227633a3e0 Include "rpmio.h" instead of <rpmio.h>. 2007-10-28 06:43:16 +01:00
Ralf Corsépius 2e1f554c2a Include "rpmhook.h" instead of <rpmhook.h>. 2007-10-28 06:43:13 +01:00
Ralf Corsépius d7c7203182 Include "rpmerr.h" instead of <rpmerr.h>. 2007-10-28 06:43:10 +01:00
Ralf Corsépius 12ef6e8d3a Include "fts.h" instead of <fts.h>. 2007-10-28 06:43:07 +01:00
Ralf Corsépius f507baed1f Include "argv.h" instead of <argv.h>. 2007-10-28 06:43:04 +01:00
Ralf Corsépius b1f8da9252 Include "rpmlua.h" instead of <rpmlua.h>. 2007-10-28 06:36:11 +01:00
Ralf Corsépius e36a2ac8da Include "rpmmacro.h" instead of <rpmmacro.h>. 2007-10-28 06:32:05 +01:00
Ralf Corsépius 942da02937 Include "rpmmessages.h" instead of <rpmmessages.h>. 2007-10-28 06:17:49 +01:00
Ralf Corsépius 454f5ddff8 Include "rpmpgp.h" instead of <rpmpgp.h>. 2007-10-28 06:14:27 +01:00
Ralf Corsépius 7075f64050 Include "rpmsq.h" instead of <rpmsq.h>. 2007-10-28 06:11:57 +01:00
Ralf Corsépius 562c47ce8b Include "rpmsw.h" instead of <rpmsw.h>. 2007-10-28 06:08:20 +01:00
Ralf Corsépius 26a9e83608 Include "rpmurl.h" instead of <rpmurl.h>. 2007-10-28 06:05:12 +01:00
Ralf Corsépius 4275322229 Remove HAVE_VA_LIST_AS_ARRAY. 2007-10-27 04:13:07 +02:00
Panu Matilainen 3b7a6a5a95 Remove bunch of unnecessary rpmio_internal includes 2007-10-22 16:51:41 +03:00
Ralf Corsépius ea2968b6b3 Cleanup CPPFLAGS. 2007-10-17 16:41:59 +02:00
Ralf Corsépius 8a4f770435 Expand AM_CPPFLAGS. 2007-10-17 15:08:01 +02:00
Ralf Corsépius 0f681e6625 Add tput. 2007-10-17 14:31:06 +02:00
Ralf Corsépius 5dd1a5baa5 Move pkginc_HEADERS to toplevel Makefile.am 2007-10-10 10:08:26 +02:00
Ralf Corsépius 272d591973 Add support for lzma compressed "Sources". 2007-10-10 08:39:01 +02:00
Panu Matilainen 01d5c13a42 Make rpmerr.h private, include directly where needed. 2007-10-09 15:33:49 +03:00
Panu Matilainen 275835643b Remove rpmError() and rpmMessage() retrofitting 2007-10-09 15:02:57 +03:00
Panu Matilainen 6bdd2384c4 More RPMMESS -> RPMLOG verbosity fixes 2007-10-09 15:01:52 +03:00
Panu Matilainen c52905d334 Replace all uses of RPMMESS_ERROR with RPMLOG_ERR 2007-10-09 14:49:02 +03:00
Panu Matilainen 9d9aa852ca Replace all uses of RPMMESS_DEBUG with RPMLOG_DEBUG 2007-10-09 14:48:04 +03:00
Panu Matilainen 4ce9fc1a17 Replace all rpmMessage() uses with rpmlog() 2007-10-09 14:14:30 +03:00
Panu Matilainen d709195c3a Replace all rpmError() uses with rpmlog() 2007-10-09 14:06:06 +03:00
Panu Matilainen 210e1ac826 Hide rpmio vectors from API, only internal needs 2007-10-09 13:33:39 +03:00
Panu Matilainen adb4ca9ecd Remove timedRead() define 2007-10-09 13:27:47 +03:00
Panu Matilainen 72d2b41cb6 Remember to remove fdFgets() definition too.. 2007-10-09 12:52:09 +03:00
Panu Matilainen 2ad02a60b9 Rename __fd*() to fd*() for consistency now that the names are free 2007-10-09 12:48:04 +03:00
Panu Matilainen 0e8db956e3 Remove unused legacy rpmio fd*() interfaces
- fdFileno(), fdOpen(), fdRead(), fdWrite(), fdClose() gone...
2007-10-09 12:42:27 +03:00
Panu Matilainen 351c1f35f7 Remove unused rpmio fdFdopen() function 2007-10-09 12:28:59 +03:00
Panu Matilainen c961e7a5f8 Remove unused rpmio fdFgets() function 2007-10-09 12:28:08 +03:00
Panu Matilainen cabd0b9ffd Remove bunch of deprecated and unused rpmlog functions 2007-10-09 11:55:00 +03:00
Ralf Corsépius 6ea5c0023f Use enums instead of ints for processing isCompressed ret-val. 2007-10-09 10:02:49 +02:00
Ralf Corsépius 98dc9ce7bb Make header files self-contained. 2007-10-08 10:35:28 +02:00
Ralf Corsépius d6ffa9891f 'Adjust extern C {} blocks.' 2007-10-08 10:05:06 +02:00
Ralf Corsépius b97dbc7fd3 Use 'file' instead of '<file>' to work around include path issues. 2007-10-08 07:38:19 +02:00
Ralf Corsépius 32c98f766e Fix minor typo. 2007-10-05 07:21:20 +02:00
Ralf Corsépius 4d5be35b6a Add __fdFileno, fdFileno. 2007-10-05 07:11:33 +02:00
Ralf Corsépius dfc6fae6be Remove fdFileno. 2007-10-05 07:11:02 +02:00
Ralf Corsépius d4bea657c4 Make fdFileno an external function. 2007-10-05 07:10:36 +02:00
Ralf Corsépius 9cf8f9c31a Stop checking for machine/types.h (Private header of some OSes not supposed to be used). 2007-10-04 08:55:07 +02:00
Ralf Corsépius 67e8f946fe Fix minor typo. 2007-10-01 18:44:29 +02:00
Panu Matilainen 8c7b929a14 Never glob non-local paths in rpmGlob() 2007-10-01 14:29:10 +03:00
Ralf Corsépius 343effc65f Remove (unused). 2007-10-01 13:17:15 +02:00
Ralf Corsépius b813710a4c Take out __FILE__, __LINE__ from DBGREFS. 2007-09-22 07:58:56 +02:00
Ralf Corsépius 07e383ce0d Add fdLink, fdFree, fdNew functions. 2007-09-21 17:02:45 +02:00
Ralf Corsépius 0e3ce6c9a8 Remove fdLink, fdFree, fdNew defines. 2007-09-21 17:02:33 +02:00
Ralf Corsépius 273ddaf0a9 Remove fdClose, fdOpen, fdRead, fdWrite defines. 2007-09-21 16:51:15 +02:00
Ralf Corsépius 868ff87bc0 Add fdClose, fdOpen, fdRead, fdWrite functions. 2007-09-21 16:50:59 +02:00
Ralf Corsépius e152864a76 Eliminate fdClose/__fdClose preprocessor games. 2007-09-21 16:22:23 +02:00
Ralf Corsépius 14a28ee82d Eliminate fdWrite/__fdWrite preprocessor games. 2007-09-21 16:20:52 +02:00
Ralf Corsépius 9b929ba294 Eliminate fdRead/__fdRead preprocessor games. 2007-09-21 16:10:32 +02:00
Ralf Corsépius 9ed70bbbc0 Eliminate fdOpen/__fdOpen preprocessor games. 2007-09-21 16:08:39 +02:00
Ralf Corsépius 97f6e790bb Add another HAVE_ZLIB_H conditional. 2007-09-21 05:59:26 +02:00
Panu Matilainen 83f0947586 Rename MacroContext and -Entry to rpmMacro* for namespacing 2007-09-20 15:52:03 +03:00
Panu Matilainen 154a7f7603 Move _free() into system.h for now
- get rid of dozen _free() definitions
- get _free() out of public headers
2007-09-20 15:37:48 +03:00
Ralf Corsépius 7cd1cf9941 Conditionalize zlib conditional pieces of code on HAVE_ZLIB_H. 2007-09-20 10:37:48 +02:00
Ralf Corsépius 8fa3c5becf Remove splint remnants. 2007-09-20 07:36:41 +02:00
Ralf Corsépius 7871bb4547 Add dependency on libbz2. 2007-09-20 06:53:59 +02:00
Ralf Corsépius 19f8c80d56 Adjust pktlen to pgpReadPkt's expectations. 2007-09-19 15:03:39 +02:00
Ralf Corsépius 90688278db Change main() to using char *argv[]. 2007-09-18 05:53:37 +02:00
Panu Matilainen a002ceebac Make fts.h a private header 2007-09-17 17:20:11 +03:00
Panu Matilainen adbab38737 ugid.h is private header really 2007-09-17 14:50:25 +03:00
Panu Matilainen 53d8adadd3 Oops, unbreak file opens.. 2007-09-17 11:59:45 +03:00
Panu Matilainen b2517d9967 Remove unneeded socket/inet includes 2007-09-17 10:45:42 +03:00
Panu Matilainen cc68353128 Remove url caching, don't need it... 2007-09-17 10:31:18 +03:00
Panu Matilainen c07bda47cf Remove url/transport items from rpmio file handle structs and uses 2007-09-17 09:48:08 +03:00
Panu Matilainen 94e953382d Remove transport-related items from urlinfo and uses 2007-09-17 09:32:25 +03:00
Ralf Corsépius af12132150 Kick unused defines. 2007-09-14 13:14:43 +02:00
Panu Matilainen 9f325855d7 Rip out internal http and ftp transports. 2007-09-12 12:23:55 +03:00
Panu Matilainen 65012c4253 Use configurable helper application to deal with urls.
- hijack ufdOpen() operation to call an external helper (if configured)
  to fetch any remote url's, return fd to local temporary file
2007-09-12 11:51:52 +03:00
Panu Matilainen d36716c25c Remove NEON and related hacks 2007-09-12 10:55:55 +03:00
Panu Matilainen 56fc5ee340 Remove now unused DAV RPC code. 2007-09-12 10:11:06 +03:00
Panu Matilainen d7c9ba4425 Remove now unused FTP RPC code. 2007-09-12 09:45:11 +03:00
Panu Matilainen cf9d90aedb Only deal with local files in "rpc" 2007-09-12 09:38:04 +03:00
Ralf Corsépius e9f3a5c89d Remove splint tags. 2007-09-11 19:23:32 +02:00
Ralf Corsépius f982bbaa79 Remove splint tags. 2007-09-11 16:48:54 +02:00
Ralf Corsépius eb33fb5100 Use _LDADD instead of _LDFLAGS.
Remove unused *_LDFLAGS.
2007-09-11 01:00:04 +02:00
Ralf Corsépius a079d14651 #include <popt.h> instead of "popt.h". 2007-09-04 14:30:01 +02:00
Panu Matilainen 2dfdf33eef Fix build and a few compiler warnings with --with-neon 2007-09-04 13:58:11 +03:00
Ralf Corsépius 7d9e2c4f30 Add httpTimeoutSecs for WITH_NEON. 2007-09-04 12:03:18 +02:00
Ralf Corsépius bc5bbd543f Remove __LCLINT__-ifdef'ed blocks. 2007-09-03 13:29:05 +02:00
Ralf Corsépius b977d7aa31 Remove lint-support. 2007-09-03 10:17:40 +02:00
Ralf Corsépius 9e3809e36e Eliminate clean-local: 2007-08-31 16:27:10 +02:00
Ralf Corsépius 8b28fa70cc Add RPMCONFIGDIR to CPPFLAGS. 2007-08-31 14:38:41 +02:00
Panu Matilainen 8d0ad625b9 Don't read *.rpmnew etc macro files 2007-08-30 13:02:12 +03:00
Ralf Corsépius 3a35a549e5 Use check_PROGRAMS instead of EXTRA_PROGRAMS for t*programs. 2007-08-27 16:06:05 +02:00
Ralf Corsépius 6749666f61 Comment out Glob_error. 2007-08-27 16:03:46 +02:00
Ralf Corsépius 2cb8ee9acc Adjust paths to beecrypt headers. 2007-08-27 15:59:39 +02:00
Ralf Corsépius 767742d634 Adjust paths to beecrypt headers. 2007-08-27 15:55:48 +02:00
Ralf Corsépius 1cfcb427ff Eliminate noinst_HEADERS. 2007-08-27 12:26:21 +02:00
Panu Matilainen de9061b214 Fix monday morning thinkos wrt macro buffer changes.
The expanded size is of course not known beforehand.. check for size
before copying instead.
2007-08-27 11:01:39 +03:00
Panu Matilainen fbf52996b8 Automated merge with ssh://login.linux.duke.edu//home/groups/rpm/hg/rpm 2007-08-27 09:56:38 +03:00
Panu Matilainen 40d25ee3ea Fix potential buffer overflow in macro primitive execution
Use dynamic buffer, we know the needed size here...
2007-08-27 09:55:42 +03:00
Panu Matilainen ad7c8e98c9 Fix potential buffer overflow in macro findEntry()
Avoid static buffer, we know the size...
2007-08-27 09:51:52 +03:00
Panu Matilainen 0e74bc98be Fix potential buffer overflow by using dynamic buffer size. 2007-08-27 09:48:00 +03:00
Panu Matilainen ca7b28eb35 Fix buffer overflow in macro shell escaping (#253971)
We know the required buffer size here, no point in using static buffer.
2007-08-27 09:45:53 +03:00
Ralf Corsépius e68817bd47 Remove tdigest. 2007-08-27 08:17:43 +02:00
Ralf Corsépius 02fe593950 Remove (Unused junk). 2007-08-27 08:17:10 +02:00
Ralf Corsépius 75ae38e37c Remove INCPATH. 2007-08-22 11:54:31 +02:00