steffen: server/kolab-horde-framework/kolab-horde-framework/Crypt/Crypt pgp.php, NONE, 1.1 smime.php, NONE, 1.1
cvs at intevation.de
cvs at intevation.de
Fri Oct 14 16:33:06 CEST 2005
- Previous message: steffen: server/kolab-horde-framework/kolab-horde-framework/Data/tests csv_importFile_01.phpt, NONE, 1.1 simple_dos.csv, NONE, 1.1 simple_unix.csv, NONE, 1.1
- Next message: steffen: server/kolab-horde-framework/kolab-horde-framework/DataTree DataTree.php, NONE, 1.1 package.xml, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: steffen
Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/Crypt/Crypt
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/Crypt/Crypt
Added Files:
pgp.php smime.php
Log Message:
Separated Horde Framework from kolab-resource-handlers
--- NEW FILE: pgp.php ---
<?php
require_once 'Horde/Crypt.php';
/* Armor Header Lines - From RFC 2440
An Armor Header Line consists of the appropriate header line text
surrounded by five (5) dashes ('-', 0x2D) on either side of the
header line text. The header line text is chosen based upon the
type of data that is being encoded in Armor, and how it is being
encoded. Header line texts include the following strings:
All Armor Header Lines are prefixed with 'PGP'.
The Armor Tail Line is composed in the same manner as the Armor
Header Line, except the string "BEGIN" is replaced by the string
"END." */
/** @constant PGP_ARMOR_MESSAGE Used for signed, encrypted, or compressed files. */
[...1411 lines suppressed...]
}
pclose($fp);
if ($output) {
$fp = @fopen($output_file, 'r');
$data->output = @fread($fp, filesize($output_file));
@fclose($fp);
unlink($output_file);
if ($stderr) {
$fp = @fopen($stderr_file, 'r');
$data->stderr = @fread($fp, filesize($stderr_file));
@fclose($fp);
unlink($stderr_file);
}
}
return $data;
}
}
--- NEW FILE: smime.php ---
<?php
require_once 'Horde/Crypt.php';
/**
* Horde_Crypt_smime:: provides a framework for Horde applications to
* interact with the OpenSSL library.
*
* $Horde: framework/Crypt/Crypt/smime.php,v 1.36 2004/04/29 20:05:01 slusarz Exp $
*
* Copyright 2002-2004 Mike Cochrane <mike at graftonhall.co.nz>
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Mike Cochrane <mike at graftonhall.co.nz>
* @version $Revision: 1.1 $
* @since Horde 3.0
* @package Horde_Crypt
[...1188 lines suppressed...]
{
return PEAR::raiseError('_decryptSignature() ' . _("not yet implemented"));
}
/**
* Check for the presence of the OpenSSL extension to PHP.
*
* @access public
*
* @return boolean Returns true if the openssl extension is available.
* Returns a PEAR_Error if not.
*/
function checkForOpenSSL()
{
if (!Util::extensionExists('openssl')) {
return PEAR::raiseError(_("The openssl module is required for the Horde_Crypt_smime:: class."));
}
}
}
- Previous message: steffen: server/kolab-horde-framework/kolab-horde-framework/Data/tests csv_importFile_01.phpt, NONE, 1.1 simple_dos.csv, NONE, 1.1 simple_unix.csv, NONE, 1.1
- Next message: steffen: server/kolab-horde-framework/kolab-horde-framework/DataTree DataTree.php, NONE, 1.1 package.xml, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the commits
mailing list