silc_pkcs_load_private_key

SYNOPSIS

    SilcBool silc_pkcs_load_private_key(const char *filename,
                                        const unsigned char *passphrase,
                                        SilcUInt32 passphrase_len,
                                        SilcPKCSType type,
                                        SilcPrivateKey *ret_private_key);

DESCRIPTION

Loads private key from file and allocates new private key. Returns TRUE if loading was successful. The `passphrase' is used as decryption key of the private key file, in case it is encrypted. If `type' is SILC_PKCS_ANY this attempts to automatically detect the private key type. If `type' is some other PKCS type, the key is expected to be of that type.