silc_pkcs_public_key_get_pkcs

SYNOPSIS

    void *silc_pkcs_public_key_get_pkcs(SilcPKCSType type,
                                        SilcPublicKey public_key);

DESCRIPTION

Returns the internal PKCS `type' specific public key context from the `public_key'. The caller needs to explicitly type cast it to correct type. Returns NULL on error.

For SILC_PKCS_SILC the returned context is SilcSILCPublicKey. For SILC_PKCS_SSH2 the returned context is SilcSshPublicKey.