Panu Matilainen
d50839b8b3
Lose unused pgpMpiHex()
2008-01-03 12:37:03 +02:00
Panu Matilainen
a9490bf57a
Gah, nss doesn't use size_t for lengths...
2008-01-02 14:44:58 +02:00
Panu Matilainen
2a27a8fcdb
More assorted int -> size_t uses
2008-01-02 14:10:25 +02:00
Panu Matilainen
8e00018c88
Fix some const issues in macros
2007-12-19 12:49:52 +02:00
Panu Matilainen
d4676384db
Hum, NSS needs to be shut down too
...
- some ~80 bytes are still leaked apparently from somewhere within nss/nspr
2007-12-19 18:53:14 +02:00
Panu Matilainen
78ad426f04
Remove bogus const from rpmGlob argv return type
...
- it's malloced and must be freed by caller
2007-12-18 10:17:18 +02:00
Panu Matilainen
834a79e615
Use constfree for cleaning up pgp digest contents
...
- the contents are exposed within rpm (although not public interfaces)
but pgpCleanDig() should be used to free the struct
- pgpDig and pgpDigParams need encapsulation + api...
2007-12-17 12:37:01 +02:00
Panu Matilainen
acdbac335e
pgpReadPkts returns malloced memory, unconstify
2007-12-16 23:05:21 +02:00
Panu Matilainen
c41f61369e
Unconstify macro contents, fully contained within macro module
2007-12-16 21:28:37 +02:00
Panu Matilainen
4a72c2a3f6
More const removals
...
- both username cache and log records are fully contained within their
modules...
2007-12-16 21:21:31 +02:00
Panu Matilainen
14284725e6
Remove const from rpmMkTempFile file name parameter
...
- the temp name is malloced and needs to be freed by caller
2007-12-16 16:25:09 +02:00
Panu Matilainen
e8ffcb26b5
Further bogus const removals...
2007-12-15 17:15:39 +02:00
Panu Matilainen
3b6a6c9030
Fix incorrect rpmCleanPath() retval comment
2007-12-15 17:08:18 +02:00
Panu Matilainen
23777730c2
Use _constfree() for freeing urlinfo contents
2007-12-15 13:43:40 +02:00
Panu Matilainen
1a0a12cf15
Remove bogus const from rpmGenPath() temporary targets
2007-12-15 11:03:46 +02:00
Panu Matilainen
b6a663ec0a
Remove bogus const from rpmGetPath() temporary targets
2007-12-15 10:39:15 +02:00
Panu Matilainen
dce66192f2
Remove bogus const from rpmGenPath and rpmGetPath return type
...
- both return malloced strings you're supposed to free
2007-12-15 09:39:32 +02:00
Panu Matilainen
f5a712db5b
Remove bogus consts..
2007-12-14 15:50:17 +02:00
Panu Matilainen
8d66d5fe4a
Bunch of const char* corrections
...
- functions returning string constants as char * etc...
2007-12-14 15:17:59 +02:00
Panu Matilainen
7d817f06b1
Bunch of silly ssize_t casts
...
- cuts down the amount of spurious warnings from inlined code...
2007-12-14 13:39:52 +02:00
Panu Matilainen
0c8401abff
Yet more type-pedantry...
...
- use rpm_tag_t for signature tag types too
- size_t, not rpm_count_t in signature generation
- add couple of explicit casts to rpmpgp.h to avoid spurious noise from
inlined functions
2007-12-14 12:54:35 +02:00
Panu Matilainen
8946859700
More size_t type pedantry
2007-12-14 11:38:20 +02:00
Panu Matilainen
4c91a3b6ad
More misc size_t issues
2007-12-14 10:30:46 +02:00
Panu Matilainen
4714ced24c
Couple of more size_t uses + related format string fixes
2007-12-14 09:35:06 +02:00
Panu Matilainen
c76674a257
Big bunch of int -> size_t corrections for various signature items
2007-12-13 21:18:37 +02:00
Panu Matilainen
c68860f056
OS X Leopard fixes from Giulio Eulisse
2007-12-11 08:51:54 +02:00
Panu Matilainen
9ce13e09ef
Switch to <rpm/foo.h> style for public headers
...
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Panu Matilainen
80f76a471c
Add getter methods for rpmlogRec items (message + level)
2007-12-07 14:00:34 +02:00
Panu Matilainen
037ceff668
Rename RPMLOG_CONT to RPMLOG_DEFAULT to make purpose clearer (hopefully ;)
2007-12-07 13:31:31 +02:00
Panu Matilainen
a5f65886f8
Logging enhancements
...
- add parameters to rpmlogCallback: current log record pointer +
optional user data
- callback return flags to enable/disable default logging behavior and
to perform exit() after cleaning up
- add method for retrieving prefix string for a given message priority
- move default logging behavior out of rpmlog() proper
2007-12-07 13:16:45 +02:00
Panu Matilainen
ca9ff17a4d
Make rpmLogRec opaque
2007-12-07 11:43:06 +02:00
Panu Matilainen
e98903dbb1
Fix misleading indentation
2007-12-07 11:34:33 +02:00
Panu Matilainen
8769e540f1
Don't do tilde expansion if HOME not set
...
- If you dont have a home, glob() will go out of its way to give you one,
even a wrong one. This isn't good when daemons etc have purposefully
unset HOME...
2007-12-07 11:33:18 +02:00
Panu Matilainen
882f390585
base64.h missing from librpmio sources
2007-12-05 11:27:50 +02:00
Panu Matilainen
dbdbe8010c
Eliminate debug junk from the API
...
- add some helper macros to accomplish the same, easy to enable / disable
as needed
2007-12-04 11:25:46 +02:00
Panu Matilainen
6d37b9782d
Fix couple of doxygen file paths, remove obsolete comment
2007-12-03 18:39:56 +02:00
Panu Matilainen
9cbf0349b8
Use regular POSIX functions instead of "RPC" clones
...
- we only care about local files
2007-12-03 16:33:18 +02:00
Panu Matilainen
89ecfb96d0
Include sanity
...
- don't pull in rpmio into rpmpgp.h
- make rpmpgp.h standalone (needs rpmints and stdio)
- rpmfileutil needs rpmio (makes sense, huh...)
2007-12-01 12:47:30 +02:00
Panu Matilainen
656732848a
Make rpmDoDigest() honor algorithm parameter
2007-12-01 12:32:30 +02:00
Panu Matilainen
fc53d307ad
Add separate public header for callback declarations
...
- rpmmessages is empty, lose it
- adjust includes
2007-12-01 10:08:13 +02:00
Panu Matilainen
7fc7ac2161
Lose url callback mechanism
...
- not used and cant support it with external helper anyhow
2007-12-01 09:38:33 +02:00
Panu Matilainen
89527785bb
Move logging related macros rpmlog, adjust includes
2007-11-30 23:08:38 +02:00
Panu Matilainen
95953fe610
rpmurl and argv doxygen groupings
2007-11-30 22:13:15 +02:00
Panu Matilainen
e01888a403
rpmpgp doxygen tagging
2007-11-30 21:58:18 +02:00
Panu Matilainen
976f0f891c
rpmrpc doxygen groupings..
2007-11-30 21:47:27 +02:00
Panu Matilainen
7ab750975b
One more pgpKeyID_t use
2007-11-26 14:48:29 +02:00
Panu Matilainen
a798f725eb
Define and use pgpTime_t for pgp creation time(s)
2007-11-26 14:42:14 +02:00
Panu Matilainen
399dca5c05
Define and use pgpKeyID_t for pgp key id's
2007-11-26 14:19:38 +02:00
Panu Matilainen
7ac39db1f4
Fix "byte" usage in test programs too
2007-11-26 13:51:44 +02:00
Ralf Corsépius
95c55a1af9
Type pedantery.
2007-11-26 10:53:47 +01:00
Ralf Corsépius
96e7f513cd
Eliminate type "byte"
2007-11-26 10:42:39 +01:00
Panu Matilainen
e6b0dfd155
Add doxygen group for rpmstring, include in librpm + hacking docs
2007-11-23 15:20:46 +02:00
Panu Matilainen
31ad46a64b
Add doxygen group for rpmfileutil, include in librpm + hacking docs
2007-11-23 15:11:21 +02:00
Panu Matilainen
43d1baef0f
doxygen groupings for rpmsw, add to librpm + hacking dox
2007-11-23 14:51:30 +02:00
Panu Matilainen
bdce039f85
Bunch of rpmio doxygen groupings
2007-11-23 14:48:13 +02:00
Panu Matilainen
bd01557f27
Add doxygen group for rpmsq, include in librpm + hacking docs
2007-11-23 14:45:16 +02:00
Panu Matilainen
7bba4e7cb1
Add doxygen group for rpmlog, include in librpm + hacking docs
2007-11-23 14:43:01 +02:00
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