silc_ssh_public_key_encode

SYNOPSIS

    unsigned char *silc_ssh_public_key_encode(SilcStack stack,
                                              SilcSshPublicKey public_key,
                                              SilcUInt32 *ret_key_len);

DESCRIPTION

Encodes SSH Public key and returns the encoded buffer. Caller must free the returned buffer.

This encodes SSH2 protocol compliant raw public key.

If the `stack' is non-NULL the returned buffer is allocated from the `stack'. This call will consume `stack' so caller should push the stack before calling and then later pop it.