silc_base_decode

SYNOPSIS

    unsigned char *silc_base_decode(SilcStack stack,
                                    unsigned char *base64,
                                    SilcUInt32 base64_len,
                                    SilcUInt32 *ret_len);

DESCRIPTION

Decodes Base 64 (PEM) into data. Returns the decoded data. Returns NULL if the data is not valid Base 64 encoded data.

If `stack' is non-NULL the returned buffer is allocated from `stack'.