~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to win32/crypt_win32.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   +----------------------------------------------------------------------+
 
3
   | PHP Version 5                                                        |
 
4
   +----------------------------------------------------------------------+
 
5
   | Copyright (c) 1997-2004 The PHP Group                                |
 
6
   +----------------------------------------------------------------------+
 
7
   | This source file is subject to version 3.0 of the PHP license,       |
 
8
   | that is bundled with this package in the file LICENSE, and is        |
 
9
   | available through the world-wide-web at the following url:           |
 
10
   | http://www.php.net/license/3_0.txt.                                  |
 
11
   | If you did not receive a copy of the PHP license and are unable to   |
 
12
   | obtain it through the world-wide-web, please send a note to          |
 
13
   | license@php.net so we can mail you a copy immediately.               |
 
14
   +----------------------------------------------------------------------+
 
15
   | Author:                                                              |
 
16
   +----------------------------------------------------------------------+
 
17
 */
 
18
 
 
19
/* $Id: crypt_win32.h,v 1.6 2004/01/08 17:33:28 sniper Exp $ */
 
20
 
 
21
/* This code is distributed under the PHP license with permission from
 
22
   the author Jochen Obalek <jochen.obalek@bigfoot.de> */
 
23
 
 
24
/* encrypt.h - API to 56 bit DES encryption via  calls
 
25
               encrypt(3), setkey(3) and crypt(3)
 
26
   Copyright (C) 1991 Jochen Obalek
 
27
 
 
28
   This program is free software; you can redistribute it and/or modify
 
29
   it under the terms of the GNU General Public License as published by
 
30
   the Free Software Foundation; either version 2, or (at your option)
 
31
   any later version.
 
32
 
 
33
   This program is distributed in the hope that it will be useful,
 
34
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
35
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
36
   GNU General Public License for more details.
 
37
 
 
38
   You should have received a copy of the GNU General Public License
 
39
   along with this program; if not, write to the Free Software
 
40
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
41
 
 
42
#ifndef _ENCRYPT_H_
 
43
#define _ENCRYPT_H_
 
44
 
 
45
#ifdef __cplusplus
 
46
extern "C"
 
47
{
 
48
#endif
 
49
 
 
50
#include <_ansi.h>
 
51
 
 
52
void _EXFUN(encrypt, (char *block, int edflag));
 
53
void _EXFUN(setkey, (char *key));
 
54
char * _EXFUN(crypt, (const char *key, const char *salt));
 
55
 
 
56
#ifdef __cplusplus
 
57
}
 
58
#endif
 
59
 
 
60
#endif /* _ENCRYPT_H_ */