> How I can to redirect errors of cryptolibrary from stdout > to memory string? > http://www.aleksey.com/xmlsec/api/xmlsec-errors.html#XMLSECERRORSDEFAULTCALLBACK And there are similar callbacks for LibXML2. Aleksey