Revision 5483a1ba

View differences:

include/PoolObjectSQL.h
106 106

  
107 107
    /**
108 108
     * Function to print the object into a string in XML format
109
     * base64 encoded
110
     *  @param xml the resulting XML string
111
     *  @return a reference to the generated string
112
     */
113
    virtual string& to_xml64(string &xml64);
114

  
115
    /**
116
     * Function to print the object into a string in XML format
109 117
     *  @param xml the resulting XML string
110 118
     *  @return a reference to the generated string
111 119
     */
src/pool/PoolObjectSQL.cc
15 15
/* -------------------------------------------------------------------------- */
16 16

  
17 17
#include "PoolObjectSQL.h"
18
#include "SSLTools.h"
19

  
20
/* -------------------------------------------------------------------------- */
21
/* -------------------------------------------------------------------------- */
22

  
23
string& PoolObjectSQL::to_xml64(string &xml64)
24
{
25
    string *str64;
26
    
27
    to_xml(xml64);
28

  
29
    str64 = SSLTools::base64_encode(xml64);
30
   
31
    xml64 = *str64;
32

  
33
    delete str64;
34

  
35
    return xml64;
36
}
18 37

  
19 38
/* -------------------------------------------------------------------------- */
20 39
/* -------------------------------------------------------------------------- */

Also available in: Unified diff