[xmlsec] How load RSA key from RAM?

Martin Salo Martin.Salo at gmx.net
Fri Aug 17 09:52:04 PDT 2007


Thanks, now it works. :)

// Place the file into the string. Dont forget to replace every newline by '\n'!
const char *cRsaKey2048Private ="-----BEGIN RSA PRIVATE KEY-----\nMIIA01 ... \n-----END RSA PRIVATE KEY-----"

oKey = xmlSecCryptoAppKeyLoadMemory(
	BAD_CAST cRsaKey2048Private,
	strlen(cRsaKey2048Private),
	xmlSecKeyDataFormatPem,
	0, 0, 0);

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail



More information about the xmlsec mailing list