~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/md5/md5.cc

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   along with this program; if not, write to the Free Software
15
15
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
16
16
 
17
 
#include "config.h"
 
17
#include <config.h>
18
18
 
19
19
#include <cstdio>
20
20
#include <cstddef>
21
21
 
22
22
#include <gcrypt.h>
23
23
 
 
24
#include <drizzled/charset.h>
 
25
#include <drizzled/charset_info.h>
 
26
#include <drizzled/function/str/strfunc.h>
 
27
#include <drizzled/item/func.h>
24
28
#include <drizzled/plugin/function.h>
25
 
#include <drizzled/item/func.h>
26
 
#include "drizzled/charset.h"
27
 
#include <drizzled/function/str/strfunc.h>
28
29
 
29
30
using namespace std;
30
31
using namespace drizzled;
96
97
  /* Initialize libgcrypt */
97
98
  if (not gcry_check_version(GCRYPT_VERSION))
98
99
  {
99
 
    errmsg_printf(ERRMSG_LVL_ERROR, _("libgcrypt library version mismatch\n"));
 
100
    errmsg_printf(error::ERROR, _("libgcrypt library version mismatch"));
100
101
    return 1;
101
102
  }
102
103
  /* Disable secure memory.  */
119
120
  "UDF for computing md5sum",
120
121
  PLUGIN_LICENSE_GPL,
121
122
  initialize, /* Plugin Init */
122
 
  NULL,   /* system variables */
 
123
  NULL,   /* depends */
123
124
  NULL    /* config options */
124
125
}
125
126
DRIZZLE_DECLARE_PLUGIN_END;