#include <cat/gen.h>
int catgen_loadhostpsd(cat_session *sess, int defer);
If the defer argument is non-zero, the opening of the Agent Host Virtual Card is delayed until the data from it is needed.
To minimize the overhead of data allocation and the cryptographic operations involved in opening a Virtual Card, the catgen_loadhostpsd function maintains a cache of open Agent Host Virtual Cards.
If the function is called with a NULL session argument, the Agent Host Virtual Card will only be read into the cache. In this case, the defer flag should not be set.
The Agent Host Virtual Card is read from the file specified by the configuration parameter .global.hostpsd.file.
The size of the Virtual Card cache can be defined by parameter .global.hostpsd.maxcachenum. When set, this indicates the largest number of Agent Host Virtual Cards that can be cached for each Agent process. The default value is 64.