pem.c: add _libssh2_pem_parse_memory to parse PEM from memory

Requirement to implement 18cfec8336e for Libgcrypt and WinCNG.
2 files changed