Register crypto modules. More...
Include dependency graph for crypt_mod.c:Go to the source code of this file.
Data Structures | |
| struct | CryptModule |
| A crypto plugin module. More... | |
Functions | |
| STAILQ_HEAD (CryptModuleList, CryptModule) | |
| void | crypto_module_register (const struct CryptModuleSpecs *specs) |
| Register a new crypto module. | |
| const struct CryptModuleSpecs * | crypto_module_lookup (int identifier) |
| Lookup a crypto module by name. | |
| void | crypto_module_cleanup (void) |
| Clean up the crypto modules. | |
Variables | |
| static struct CryptModuleList | CryptModules = STAILQ_HEAD_INITIALIZER(CryptModules) |
| Linked list of crypto modules, e.g. CryptModSmimeClassic, CryptModPgpGpgme. | |
Register crypto modules.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file crypt_mod.c.
| STAILQ_HEAD | ( | CryptModuleList | , |
| CryptModule | ) |
| void crypto_module_register | ( | const struct CryptModuleSpecs * | specs | ) |
Register a new crypto module.
| specs | API functions |
Definition at line 54 of file crypt_mod.c.
Here is the caller graph for this function:| const struct CryptModuleSpecs * crypto_module_lookup | ( | int | identifier | ) |
Lookup a crypto module by name.
| identifier | Name, e.g. APPLICATION_PGP |
| ptr | Crypto module |
This function is usually used via the CRYPT_MOD_CALL[_CHECK] macros.
Definition at line 68 of file crypt_mod.c.
Here is the caller graph for this function:| void crypto_module_cleanup | ( | void | ) |
Clean up the crypto modules.
Definition at line 84 of file crypt_mod.c.
Here is the caller graph for this function:
|
static |
Linked list of crypto modules, e.g. CryptModSmimeClassic, CryptModPgpGpgme.
Definition at line 48 of file crypt_mod.c.