[xmlsec] [Patch] Key / Certificate loading from memory

Joachim Bauch bauch@struktur.de
Thu, 07 Aug 2003 14:18:44 +0200


------------MaBCvq7mZ3gTMBWIKpPdkx
Content-Type: text/plain; charset=utf-8; format=flowed

Hi Aleksey,

here is the updated patch:
- can load keys from memory
- can load certificates from memory
- added "xmlSecOpenSSLAppKeyLoadBio"
- fixes memory leak in "xmlSecOpenSSLAppKeyCertLoad"

The code for loading of pkcs12 files still needs to be done, but I don't
have any more time for it today. Perhaps I can manage to write it tomorrow.

Joachim

-- 
Joachim Bauch

struktur AG             Fon.:  +49 (0)711 896656 69
Junghansstr. 5          Fax.:  +49 (0)711 896656 10
D-70469 Stuttgart       eMail: bauch@struktur.de                    solutions for
Germany                 Web:   http://www.struktur.de            digital business

Download icoya OpenContent 1.3 for FREE!    visit http://www.icoya.de/iOC4free <-
------------MaBCvq7mZ3gTMBWIKpPdkx
Content-Disposition: attachment;
	filename="load_from_memory.diff.gz"
Content-Type: application/x-gzip;
	name="load_from_memory.diff.gz"
Content-Transfer-Encoding: Base64

H4sICAVCMj8AA2xvYWRfZnJvbV9tZW1vcnkuZGlmZgDtWntz28YR/xua0Xe4
KE1CESDFhyjTVNWIlqlUtSxpSCl12mYwIHCkUJEABwApOxl/9+69gMMblGV7
mpYzFk1gb28fv33cAj+ihWtY+sxzl/oSL13vQ9OyZ7PdnR+zbzTnv+3uXDgW
fj9AtmMu1hY+eL9c+Ng8cFfY8f3FgbFaNe93d04+/bO7Mz6boJm9wAN0YG78
g7njLsP9irbXNrs7Hg48G29sZ448+PJt10HtZru9u0MUQY01anjkN+ICNxqN
QpWUThv9bb1AnVari1rdQbszODxEjRZ8FMZXVdViDi/QcD1nDGB1+3DQO2IM
dndOT1Gj19OOkAp/QajT090dpIgPMl3HD5B5b3iovnq0tNjNFV7qK8P3H13P
0s0ppTgzFoupYT7EKTeubdWRdPsseL9/DJK/e3s5GZ3pZ+Nfbm6v9dG7m+vx
LQIdJth8gz/cBJ7CflyDPpPJ5X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