ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/ermyth/modules/crypto/posix.C
Revision: 1.6
Committed: Sun Sep 16 18:54:43 2007 UTC (19 years, 2 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

# User Rev Content
1 pippijn 1.6 /**
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 pippijn 1.4 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
10 pippijn 1.5 * Rights to this code are as documented in doc/pod/license.pod.
11 pippijn 1.1 *
12 pippijn 1.6 * $Id: posix.C,v 1.5 2007-09-05 11:23:13 pippijn Exp $
13 pippijn 1.1 */
14    
15     #include "atheme.h"
16 pippijn 1.4 #include <ermyth/crypto.h>
17 pippijn 1.1
18 pippijn 1.6 static char const rcsid[] = "$Id: posix.C,v 1.5 2007-09-05 11:23:13 pippijn Exp $";
19 pippijn 1.1
20 pippijn 1.4 namespace crypto
21 pippijn 1.1 {
22 pippijn 1.4 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 pippijn 1.1 }
33    
34 pippijn 1.4 #define FACREG_TYPE crypto::posix
35     #define FACREG_TYPE_NAME "posix"
36     #define FACREG_INTERFACE_TYPE crypto::handler
37     #include <ermyth/factory_reg.h>