silc_pkcs_load_public_key

SYNOPSIS

    SilcBool silc_pkcs_load_public_key(const char *filename,
                                       SilcPKCSType type,
                                       SilcPublicKey *ret_public_key);

DESCRIPTION

Loads public key from file and allocates new public key. Returns TRUE if loading was successful. If `type' is SILC_PKCS_ANY this attempts to automatically detect the public key type. If `type' is some other PKCS type, the key is expected to be of that type.