Make base64 encoding/decoding part of rpmio public API
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 9 Nov 2011 13:04:13 +0000 (15:04 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 9 Nov 2011 13:16:28 +0000 (15:16 +0200)
commit70f063cb773bedb7d336429d9bc8ed1d4e5d18f4
tree6d525fdbb1e92051dda4b05e5c23fc7f2e531f71
parent6bced5bc08c3c8291fc7488c35e1703cba0f9ef6
Make base64 encoding/decoding part of rpmio public API

- Base64 is present in headers and all, it's only reasonable that
  our API users have access to this functionality without having
  to link to other libraries. Even if we didn't want to carry the
  implementation forever in our codebase, we should provide a wrapping
  for this (much like the other crypto stuff) for the reason stated above.
- A bigger issue is that our dirty little (badly hidden) secret was using
  non-namespaced function names, clashing with at least beecrypt. And we
  couldn't have made these internal-only symbols even on platforms that
  support it, because they are used all over the place outside rpmio.
  So... rename the b64 functions to rpmLikeNamingStyle and make 'em public.
  No functional changes, just trivial renaming despite touching numerous
  places.
14 files changed:
Makefile.am
build/files.c
build/policies.c
lib/formats.c
lib/rpmts.c
plugins/sepolicy.c
preinstall.am
rpmio/Makefile.am
rpmio/base64.c
rpmio/digest.h
rpmio/rpmbase64.h [moved from rpmio/base64.h with 81% similarity]
rpmio/rpmkeyring.c
rpmio/rpmlua.c
rpmio/rpmpgp.c