Implement runtime loading of RSA public keys
authorPaul Fertser <fercerpav@gmail.com>
Sat, 23 Jan 2010 11:34:14 +0000 (14:34 +0300)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 25 Jan 2010 17:40:49 +0000 (09:40 -0800)
commit7429427a13c6ae244df6f60b811d6d1152e1d451
tree2fdecfca27e648aa2af0f7cdc8f1af17d038e402
parent5351898d6b33d642026a5e57a9a457939e58bf5e
Implement runtime loading of RSA public keys

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 recompile crda.

Implemented for USE_OPENSSL=1 case only because libgcrypt lacks PEM parser.

Default location for public keys in PEM format is
/etc/wireless-regdb/pubkeys and can be changed by specifying
RUNTIME_PUBKEY_DIR at the make command line.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Makefile
reglib.c