Register crypto modules. More...
#include "config.h"#include "mutt/lib.h"#include "core/lib.h"#include "crypt_mod.h"#include "lib.h"#include "module_data.h"
Include dependency graph for crypt_mod.c:Go to the source code of this file.
Functions | |
| void | crypto_module_register (const struct CryptModuleSpecs *specs) |
| Register a new crypto module. | |
| const struct CryptModuleSpecs * | crypto_module_lookup (struct NcryptModuleData *mod_data, int identifier) |
| Lookup a crypto module by name. | |
| void | crypto_module_cleanup (struct NcryptModuleData *mod_data) |
| Clean up the crypto modules. | |
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.
| void crypto_module_register | ( | const struct CryptModuleSpecs * | specs | ) |
Register a new crypto module.
| specs | API functions |
Definition at line 41 of file crypt_mod.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const struct CryptModuleSpecs * crypto_module_lookup | ( | struct NcryptModuleData * | mod_data, |
| int | identifier ) |
Lookup a crypto module by name.
| mod_data | Ncrypt module data |
| identifier | Name, e.g. APPLICATION_PGP |
| ptr | Crypto module |
This function is usually used via the CRYPT_MOD_CALL[_CHECK] macros.
Definition at line 57 of file crypt_mod.c.
Here is the caller graph for this function:| void crypto_module_cleanup | ( | struct NcryptModuleData * | mod_data | ) |
Clean up the crypto modules.
| mod_data | Ncrypt module data |
Definition at line 74 of file crypt_mod.c.
Here is the caller graph for this function: