Updated: October 28, 2024 |
Initialize a library
#include <qcrypto/qcrypto.h>
int qcrypto_init(unsigned flags, const char *name)
The qcrypto_init() function adds the plugin with a tag value that matches __progname. When a user requests an algorithm, this entry is searched for a matching tag first, before the contents of the qcrypto library configuration file.
If a process calls qcrypto_init() multiple times, to successfully unload all plugins it must call qcrypto_uninit() the same number of times.
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.