ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/modules/crypto/posix.C
Revision: 1.6
Committed: Sun Sep 16 18:54:43 2007 UTC (16 years, 8 months ago) by pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +10 -5 lines
Log Message:
#defines to enum

File Contents

# Content
1 /**
2 * posix.C: POSIX-style crypt(3) wrapper.
3 *
4 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
5 * Rights to this code are as documented in COPYING.
6 *
7 *
8 * Portions of this file were derived from sources bearing the following license:
9 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
10 * Rights to this code are as documented in doc/pod/license.pod.
11 *
12 * $Id: posix.C,v 1.5 2007-09-05 11:23:13 pippijn Exp $
13 */
14
15 #include "atheme.h"
16 #include <ermyth/crypto.h>
17
18 static char const rcsid[] = "$Id: posix.C,v 1.5 2007-09-05 11:23:13 pippijn Exp $";
19
20 namespace crypto
21 {
22 struct posix : handler
23 {
24 virtual char const *crypt (char const * const key, char const * const salt);
25 };
26
27 char const *
28 posix::crypt (char const * const key, char const * const salt)
29 {
30 return crypt (key, salt);
31 }
32 }
33
34 #define FACREG_TYPE crypto::posix
35 #define FACREG_TYPE_NAME "posix"
36 #define FACREG_INTERFACE_TYPE crypto::handler
37 #include <ermyth/factory_reg.h>