Bug#536502: [PATCH] Implement runtime loading of RSA public keys

2010-01-25 Thread Luis R. Rodriguez
On Sat, Jan 23, 2010 at 4:30 AM, Paul Fertser wrote: > On Sat, Jan 23, 2010 at 02:54:14PM +0300, Paul Fertser wrote: >> +     if (!ok && (pubkey_dir = opendir(PUBKEY_DIR))) { >> +             while (!ok && (nextfile = readdir(pubkey_dir))) { >> +                     if ((keyfile = fopen(nextfile->

Bug#536502: [PATCH] Implement runtime loading of RSA public keys

2010-01-23 Thread Paul Fertser
On Sat, Jan 23, 2010 at 02:54:14PM +0300, Paul Fertser wrote: > + if (!ok && (pubkey_dir = opendir(PUBKEY_DIR))) { > + while (!ok && (nextfile = readdir(pubkey_dir))) { > + if ((keyfile = fopen(nextfile->d_name, "rb"))) { Duh, of course it's wrong but i managed

Bug#536502: [PATCH] Implement runtime loading of RSA public keys

2010-01-23 Thread Paul Fertser
This patch allows crda to load and use additional keys from a pre-configured location for the database signature verification. This provides a convenient way for distro maintainers and card manufacturers to supply a custom regulatory database along with their public keys, without the need to recomp