/
githubmirror
/
xmlsec
Обзор
Документация
Войти
/
githubmirror
/
xmlsec
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
1.3.10
docs/api/xmlsec-base64.html
599 строк
25 KB
lsh123
Update docs (#1082)
18 мар 2026, 04:43
Не верифицирован
18 мар 2026, 04:43
ff1e861
Код
Авторство
О чём код?
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>base64: XML Security Library Reference Manual</title> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> <link rel="home" href="index.html" title="XML Security Library Reference Manual"> <link rel="up" href="xmlsec-ref.html" title="XML Security Core Library API Reference."> <link rel="prev" href="xmlsec-app.html" title="app"> <link rel="next" href="xmlsec-bn.html" title="bn"> <meta name="generator" content="GTK-Doc V1.34.0 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body><table width="100%" valign="top"><tr valign="top"> <td valign="top" align="left" width="210"> <img src="../images/logo.gif" alt="XML Security Library" border="0"><p></p> <ul> <li><a href="../index.html">Home</a></li> <li><a href="../download.html">Download</a></li> <ul><li><a href="../https://github.com/lsh123/xmlsec">GitHub</a></li></ul> <li><a href="../news.html">News</a></li> <li><a href="../documentation.html">Documentation</a></li> <ul> <li><a href="../faq.html">FAQ</a></li> <li><a href="../api/xmlsec-notes.html">Tutorial</a></li> <li><a href="../api/xmlsec-reference.html">API reference</a></li> <li><a href="../api/xmlsec-examples.html">Examples</a></li> </ul> <li><a href="../xmldsig.html">XML Digital Signature</a></li> <li><a href="../xmlenc.html">XML Encryption</a></li> <li><a href="../c14n.html">XML Canonicalization</a></li> <li><a href="../bugs.html">Reporting Bugs</a></li> <li><a href="mailing-list.html">Mailing list</a></li> <li><a href="../related.html">Related</a></li> <li><a href="../authors.html">Authors</a></li> </ul> <table width="100%"> <tr> <td width="15"></td> <td><a href="http://xmlsoft.org/"><img src="../images/libxml2-logo.png" alt="LibXML2" border="0"></a></td> </tr> <tr> <td width="15"></td> <td><a href="http://xmlsoft.org/XSLT"><img src="../images/libxslt-logo.png" alt="LibXSLT" border="0"></a></td> </tr> <tr> <td width="15"></td> <td><a href="http://www.openssl.org/"><img src="../images/openssl-logo.png" alt="OpenSSL" border="0"></a></td> </tr> <!--Links - start--><!--Links - end--> </table> </td> <td valign="top"><table width="80%" valign="top" style="margin-left:10px;"><tr><td valign="top" align="left" id="xmlsecContent"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> <td width="100%" align="left" class="shortcuts"> <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> <a href="#xmlsec-base64.description" class="shortcut">Description</a></span> </td> <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> <td><a accesskey="u" href="xmlsec-ref.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> <td><a accesskey="p" href="xmlsec-app.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="xmlsec-bn.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> </tr></table> <div class="refentry"> <a name="xmlsec-base64"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="xmlsec-base64.top_of_page"></a>base64</span></h2> <p>base64 — Base64 encoding/decoding functions and base64 transform implementation.</p> </td> <td class="gallery_image" valign="top" align="right"></td> </tr></table></div> <div class="refsect1"> <a name="xmlsec-base64.stability-level"></a><h2>Stability Level</h2> <acronym title="The intention of a Stable interface is to enable arbitrary third parties to develop applications to these interfaces, release them, and have confidence that they will run on all minor releases of the product (after the one in which the interface was introduced, and within the same major release). Even at a major release, incompatible changes are expected to be rare, and to have strong justifications. "><span class="acronym">Stable</span></acronym>, unless otherwise indicated </div> <div class="refsect1"> <a name="xmlsec-base64.functions"></a><h2>Functions</h2> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> </colgroup> <tbody> <tr> <td class="function_type"> <font><span class="returnvalue">int</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64GetDefaultLineSize" title="xmlSecBase64GetDefaultLineSize ()">xmlSecBase64GetDefaultLineSize</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">void</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64SetDefaultLineSize" title="xmlSecBase64SetDefaultLineSize ()">xmlSecBase64SetDefaultLineSize</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">xmlSecBase64CtxPtr</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64CtxCreate" title="xmlSecBase64CtxCreate ()">xmlSecBase64CtxCreate</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">void</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64CtxDestroy" title="xmlSecBase64CtxDestroy ()">xmlSecBase64CtxDestroy</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">int</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64CtxInitialize" title="xmlSecBase64CtxInitialize ()">xmlSecBase64CtxInitialize</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">void</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64CtxFinalize" title="xmlSecBase64CtxFinalize ()">xmlSecBase64CtxFinalize</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">int</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64CtxUpdate-ex" title="xmlSecBase64CtxUpdate_ex ()">xmlSecBase64CtxUpdate_ex</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">int</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64CtxFinal-ex" title="xmlSecBase64CtxFinal_ex ()">xmlSecBase64CtxFinal_ex</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">xmlChar</span></font> * </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64Encode" title="xmlSecBase64Encode ()">xmlSecBase64Encode</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">int</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64Decode-ex" title="xmlSecBase64Decode_ex ()">xmlSecBase64Decode_ex</a> <span class="c_punctuation">()</span> </td> </tr> <tr> <td class="function_type"> <font><span class="returnvalue">int</span></font> </td> <td class="function_name"> <a class="link" href="xmlsec-base64.html#xmlSecBase64DecodeInPlace" title="xmlSecBase64DecodeInPlace ()">xmlSecBase64DecodeInPlace</a> <span class="c_punctuation">()</span> </td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="xmlsec-base64.other"></a><h2>Types and Values</h2> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> </colgroup> <tbody><tr> <td class="define_keyword">#define</td> <td class="function_name"><a class="link" href="xmlsec-base64.html#XMLSEC-BASE64-LINESIZE:CAPS" title="XMLSEC_BASE64_LINESIZE">XMLSEC_BASE64_LINESIZE</a></td> </tr></tbody> </table></div> </div> <div class="refsect1"> <a name="xmlsec-base64.description"></a><h2>Description</h2> <p></p> </div> <div class="refsect1"> <a name="xmlsec-base64.functions_details"></a><h2>Functions</h2> <div class="refsect2"> <a name="xmlSecBase64GetDefaultLineSize"></a><h3>xmlSecBase64GetDefaultLineSize ()</h3> <pre class="programlisting"><font><span class="returnvalue">int</span></font> xmlSecBase64GetDefaultLineSize (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> <p>Gets the current default line size.</p> <div class="refsect3"> <a name="xmlSecBase64GetDefaultLineSize.returns"></a><h4>Returns</h4> <p> the current default line size.</p> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64SetDefaultLineSize"></a><h3>xmlSecBase64SetDefaultLineSize ()</h3> <pre class="programlisting"><font><span class="returnvalue">void</span></font> xmlSecBase64SetDefaultLineSize (<em class="parameter"><code><font><span class="type">int</span></font> columns</code></em>);</pre> <p>Sets the current default line size.</p> <div class="refsect3"> <a name="xmlSecBase64SetDefaultLineSize.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody><tr> <td class="parameter_name"><p>columns</p></td> <td class="parameter_description"><p>number of columns</p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64CtxCreate"></a><h3>xmlSecBase64CtxCreate ()</h3> <pre class="programlisting"><font><span class="returnvalue">xmlSecBase64CtxPtr</span></font> xmlSecBase64CtxCreate (<em class="parameter"><code><font><span class="type">int</span></font> encode</code></em>, <em class="parameter"><code><font><span class="type">int</span></font> columns</code></em>);</pre> <p>Allocates and initializes new base64 context.</p> <div class="refsect3"> <a name="xmlSecBase64CtxCreate.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody> <tr> <td class="parameter_name"><p>encode</p></td> <td class="parameter_description"><p>the encode/decode flag (1 - encode, 0 - decode)</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>columns</p></td> <td class="parameter_description"><p>the max line length.</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <div class="refsect3"> <a name="xmlSecBase64CtxCreate.returns"></a><h4>Returns</h4> <p> a pointer to newly created <font><span class="type">xmlSecBase64Ctx</span></font> structure or NULL if an error occurs.</p> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64CtxDestroy"></a><h3>xmlSecBase64CtxDestroy ()</h3> <pre class="programlisting"><font><span class="returnvalue">void</span></font> xmlSecBase64CtxDestroy (<em class="parameter"><code><font><span class="type">xmlSecBase64CtxPtr</span></font> ctx</code></em>);</pre> <p>Destroys base64 context.</p> <div class="refsect3"> <a name="xmlSecBase64CtxDestroy.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody><tr> <td class="parameter_name"><p>ctx</p></td> <td class="parameter_description"><p>the pointer to <font><span class="type">xmlSecBase64Ctx</span></font> structure.</p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64CtxInitialize"></a><h3>xmlSecBase64CtxInitialize ()</h3> <pre class="programlisting"><font><span class="returnvalue">int</span></font> xmlSecBase64CtxInitialize (<em class="parameter"><code><font><span class="type">xmlSecBase64CtxPtr</span></font> ctx</code></em>, <em class="parameter"><code><font><span class="type">int</span></font> encode</code></em>, <em class="parameter"><code><font><span class="type">int</span></font> columns</code></em>);</pre> <p>Initializes new base64 context.</p> <div class="refsect3"> <a name="xmlSecBase64CtxInitialize.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody> <tr> <td class="parameter_name"><p>ctx</p></td> <td class="parameter_description"><p>the pointer to <font><span class="type">xmlSecBase64Ctx</span></font> structure,</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>encode</p></td> <td class="parameter_description"><p>the encode/decode flag (1 - encode, 0 - decode)</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>columns</p></td> <td class="parameter_description"><p>the max line length.</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <div class="refsect3"> <a name="xmlSecBase64CtxInitialize.returns"></a><h4>Returns</h4> <p> 0 on success and a negative value otherwise.</p> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64CtxFinalize"></a><h3>xmlSecBase64CtxFinalize ()</h3> <pre class="programlisting"><font><span class="returnvalue">void</span></font> xmlSecBase64CtxFinalize (<em class="parameter"><code><font><span class="type">xmlSecBase64CtxPtr</span></font> ctx</code></em>);</pre> <p>Frees all the resources allocated by <em class="parameter"><code>ctx</code></em> .</p> <div class="refsect3"> <a name="xmlSecBase64CtxFinalize.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody><tr> <td class="parameter_name"><p>ctx</p></td> <td class="parameter_description"><p>the pointer to <font><span class="type">xmlSecBase64Ctx</span></font> structure,</p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64CtxUpdate-ex"></a><h3>xmlSecBase64CtxUpdate_ex ()</h3> <pre class="programlisting"><font><span class="returnvalue">int</span></font> xmlSecBase64CtxUpdate_ex (<em class="parameter"><code><font><span class="type">xmlSecBase64CtxPtr</span></font> ctx</code></em>, <em class="parameter"><code>const <a class="link" href="xmlsec-xmlsec.html#xmlSecByte" title="xmlSecByte"><span class="type">xmlSecByte</span></a> *in</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> inSize</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecByte" title="xmlSecByte"><span class="type">xmlSecByte</span></a> *out</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> outSize</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> *outWritten</code></em>);</pre> <p>Encodes or decodes the next piece of data from input buffer.</p> <div class="refsect3"> <a name="xmlSecBase64CtxUpdate-ex.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody> <tr> <td class="parameter_name"><p>ctx</p></td> <td class="parameter_description"><p>the pointer to <font><span class="type">xmlSecBase64Ctx</span></font> structure</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>in</p></td> <td class="parameter_description"><p>the input buffer</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>inSize</p></td> <td class="parameter_description"><p>the input buffer size</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>out</p></td> <td class="parameter_description"><p>the output buffer</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>outSize</p></td> <td class="parameter_description"><p>the output buffer size</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>outWritten</p></td> <td class="parameter_description"><p>the pointer to store the number of bytes written into the output</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <div class="refsect3"> <a name="xmlSecBase64CtxUpdate-ex.returns"></a><h4>Returns</h4> <p> 0 on success and a negative value otherwise.</p> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64CtxFinal-ex"></a><h3>xmlSecBase64CtxFinal_ex ()</h3> <pre class="programlisting"><font><span class="returnvalue">int</span></font> xmlSecBase64CtxFinal_ex (<em class="parameter"><code><font><span class="type">xmlSecBase64CtxPtr</span></font> ctx</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecByte" title="xmlSecByte"><span class="type">xmlSecByte</span></a> *out</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> outSize</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> *outWritten</code></em>);</pre> <p>Encodes or decodes the last piece of data stored in the context and finalizes the result.</p> <div class="refsect3"> <a name="xmlSecBase64CtxFinal-ex.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody> <tr> <td class="parameter_name"><p>ctx</p></td> <td class="parameter_description"><p>the pointer to <font><span class="type">xmlSecBase64Ctx</span></font> structure</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>out</p></td> <td class="parameter_description"><p>the output buffer</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>outSize</p></td> <td class="parameter_description"><p>the output buffer size</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>outWritten</p></td> <td class="parameter_description"><p>the pointer to store the number of bytes written into the output</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <div class="refsect3"> <a name="xmlSecBase64CtxFinal-ex.returns"></a><h4>Returns</h4> <p> 0 on success and a negative value otherwise.</p> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64Encode"></a><h3>xmlSecBase64Encode ()</h3> <pre class="programlisting"><font><span class="returnvalue">xmlChar</span></font> * xmlSecBase64Encode (<em class="parameter"><code>const <a class="link" href="xmlsec-xmlsec.html#xmlSecByte" title="xmlSecByte"><span class="type">xmlSecByte</span></a> *in</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> inSize</code></em>, <em class="parameter"><code><font><span class="type">int</span></font> columns</code></em>);</pre> <p>Encodes the data from input buffer and allocates the string for the result. The caller is responsible for freeing returned buffer using <font><code class="function">xmlFree()</code></font> function.</p> <div class="refsect3"> <a name="xmlSecBase64Encode.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody> <tr> <td class="parameter_name"><p>in</p></td> <td class="parameter_description"><p>the input buffer.</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>inSize</p></td> <td class="parameter_description"><p>the input buffer size.</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>columns</p></td> <td class="parameter_description"><p>the output max line length (if 0 then no line breaks would be inserted)</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <div class="refsect3"> <a name="xmlSecBase64Encode.returns"></a><h4>Returns</h4> <p> newly allocated string with base64 encoded data or NULL if an error occurs.</p> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64Decode-ex"></a><h3>xmlSecBase64Decode_ex ()</h3> <pre class="programlisting"><font><span class="returnvalue">int</span></font> xmlSecBase64Decode_ex (<em class="parameter"><code>const <font><span class="type">xmlChar</span></font> *str</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecByte" title="xmlSecByte"><span class="type">xmlSecByte</span></a> *out</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> outSize</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> *outWritten</code></em>);</pre> <p>Decodes input base64 encoded string and puts result into the output buffer.</p> <div class="refsect3"> <a name="xmlSecBase64Decode-ex.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody> <tr> <td class="parameter_name"><p>str</p></td> <td class="parameter_description"><p>the input buffer with base64 encoded string</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>out</p></td> <td class="parameter_description"><p>the output buffer</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>outSize</p></td> <td class="parameter_description"><p>the output buffer size</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>outWritten</p></td> <td class="parameter_description"><p>the pointer to store the number of bytes written into the output.</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <div class="refsect3"> <a name="xmlSecBase64Decode-ex.returns"></a><h4>Returns</h4> <p> 0 on success and a negative value otherwise.</p> </div> </div> <hr> <div class="refsect2"> <a name="xmlSecBase64DecodeInPlace"></a><h3>xmlSecBase64DecodeInPlace ()</h3> <pre class="programlisting"><font><span class="returnvalue">int</span></font> xmlSecBase64DecodeInPlace (<em class="parameter"><code><font><span class="type">xmlChar</span></font> *str</code></em>, <em class="parameter"><code><a class="link" href="xmlsec-xmlsec.html#xmlSecSize" title="xmlSecSize"><span class="type">xmlSecSize</span></a> *outWritten</code></em>);</pre> <p>Decodes input base64 encoded string from <em class="parameter"><code>str</code></em> "in-place" (i.e. puts results into <em class="parameter"><code>str</code></em> buffer).</p> <div class="refsect3"> <a name="xmlSecBase64DecodeInPlace.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table class="informaltable" width="100%" border="0"> <colgroup> <col> <col> <col> </colgroup> <tbody> <tr> <td class="parameter_name"><p>str</p></td> <td class="parameter_description"><p>the input/output buffer</p></td> <td class="parameter_annotations"> </td> </tr> <tr> <td class="parameter_name"><p>outWritten</p></td> <td class="parameter_description"><p>the pointer to store the number of bytes written into the output.</p></td> <td class="parameter_annotations"> </td> </tr> </tbody> </table></div> </div> <div class="refsect3"> <a name="xmlSecBase64DecodeInPlace.returns"></a><h4>Returns</h4> <p> 0 on success and a negative value otherwise.</p> </div> </div> </div> <div class="refsect1"> <a name="xmlsec-base64.other_details"></a><h2>Types and Values</h2> <div class="refsect2"> <a name="XMLSEC-BASE64-LINESIZE:CAPS"></a><h3>XMLSEC_BASE64_LINESIZE</h3> <pre class="programlisting">#define XMLSEC_BASE64_LINESIZE 64 </pre> <p>The default maximum base64 encoded line size.</p> </div> </div> </div> <div class="footer"> <hr>Generated by GTK-Doc V1.34.0</div> </td></tr></table></td> </tr></table></body> </html>