OSDN Git Service

Load crypto plugins from additional shared libraries
authorJeff Tinker <jtinker@google.com>
Fri, 22 Mar 2013 22:26:39 +0000 (15:26 -0700)
committerJeff Tinker <jtinker@google.com>
Fri, 22 Mar 2013 22:26:39 +0000 (15:26 -0700)
commitbafb682ec7f51486e751fea954169deb91846063
tree88d3be30ac8e26843929fcda2fb3d2535c313ea4
parent9e36b5a5c630c303b5007fdeb5c0df83b953adf4
Load crypto plugins from additional shared libraries

Currently crypto plugins are expected to be in libdrmdecrypt.so.
When there are multiple plugins supporting different schemes,
this approach requires source code integration across
vendors which is unmanagable.  Also, for integration with
MediaDrm where the crypto keys are obtained from a drm server,
the MediaCrypto plugin needs to interoperate with the MediaDrm
plugin. This change allows {MediaCrypto, MediaDrm} pairs that
are logically related to be implemented in a common shared
library.

Change-Id: I7f6638f29171f91609fc2d944396365568630b56
include/media/ICrypto.h
media/libmedia/ICrypto.cpp
media/libmediaplayerservice/Crypto.cpp
media/libmediaplayerservice/Crypto.h