ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/ermyth/modules/crypto/posix.C
Revision: 1.5
Committed: Wed Sep 5 11:23:13 2007 UTC (19 years, 1 month ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.4: +3 -3 lines
Log Message:
removed GPLed code and put license back to BSD

File Contents

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