]> git.8kb.co.uk Git - pgpool-ii/pgpool-ii_2.2.5/blob - md5.h
Attempt to send a proper failure message to frontend when authentication
[pgpool-ii/pgpool-ii_2.2.5] / md5.h
1 /*-------------------------------------------------------------------------
2  *
3  * md5.h
4  *        Interface to md5.c
5  *
6  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * $Header: /cvsroot/pgpool/pgpool-II/md5.h,v 1.1.1.1 2006/09/08 03:36:04 t-ishii Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13
14 /*
15  *  This file is imported from PostgreSQL 8.1.3.
16  *  Modified by Taiki Yamaguchi <yamaguchi@sraoss.co.jp>
17  */
18
19 #ifndef MD5_H
20 #define MD5_H
21
22 #define MD5_PASSWD_LEN 32
23
24 extern int pool_md5_hash(const void *buff, size_t len, char *hexsum);
25 extern int pool_md5_encrypt(const char *passwd, const char *salt, size_t salt_len, char *buf);
26
27 #endif