This sample shows how PEM encoding/decoding can be implemented for a proprietary type.
Source : custom_pem.c
The Cryptology ePrint Archive provides rapid access to recent research in cryptology. It's hosted by the International Association for Cryptologic Research. The latest articles can be accessed by clicking here.