[xmlsec] using public key without loading from file
Simon Meiklejohn
Simon.Meiklejohn at perform-sol.com
Thu May 26 16:18:23 PDT 2005
Thanks for that, just what I need.
Simon
>>
You may want to look at xmlSecCryptoAppKeyLoadMemory(), e.g.
dsigCtx->signKey =
xmlSecCryptoAppKeyLoadMemory(pubkey, strlen(pubkey),
xmlSecKeyDataFormatPem, NULL, NULL, NULL);
assuming you have your key in
char *pubkey =
"-----BEGIN PUBLIC KEY-----\n\
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMYkh5vHrw5uBp4BFZgyLKnbko\n\
qfQqiZuOfUdwTfg+i5J9rPpkEiX3TDIkLiDqV+GTbgOjip2psKMNkcQmdHZhUcVd\n\
qRZIxAe3EEqEHDh1gk+Pw565zfyLs7s02InN6NAm7YmzVczPe/84TI0ZDfm6b5Al\n\
0wLFXTLqm+QAYsG/BQIDAQAB\n\
-----END PUBLIC KEY-----";
<<
More information about the xmlsec
mailing list