Skip to content

Commit

Permalink
Merge branch '1.11' into 1.11bis
Browse files Browse the repository at this point in the history
Conflicts:
	Changes
	PerlCryptLib.pm
	README

1.11  Sun Oct 24 18:45:21 2010
        - Added compatibility for deprecated functions removed from cryptlib starting from version 3.4.0
  • Loading branch information
alivraghi committed Oct 9, 2016
2 parents 0a60c55 + 81f21cd commit 51450ed
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 19 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Revision history for Perl extension PerlCryptLib
================================================

1.11 Sun Oct 24 18:45:21 2010
- Added compatibility for deprecated functions removed from cryptlib starting from version 3.4.0

1.10 Sun Apr 18 00:25:33 2010
- Done some optimizations in XS code for gcc4 ISO C90 compatibility

Expand Down
9 changes: 6 additions & 3 deletions PerlCryptLib.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use Carp;
require Exporter;
use AutoLoader;

our $VERSION = '1.10';
our $VERSION = '1.11';


#############################################################################
Expand Down Expand Up @@ -114,7 +114,7 @@ our $VERSION = '1.10';
cryptInit cryptEnd
cryptQueryCapability
cryptCreateContext cryptDestroyContext cryptDestroyObject
cryptGenerateKey cryptGenerateKeyAsync cryptAsyncQuery cryptAsyncCancel
cryptGenerateKey
cryptEncrypt cryptDecrypt
cryptSetAttribute cryptSetAttributeString cryptGetAttribute cryptGetAttributeString cryptDeleteAttribute
cryptAddRandom
Expand All @@ -130,7 +130,8 @@ our $VERSION = '1.10';
cryptDeviceOpen cryptDeviceClose cryptDeviceQueryCapability cryptDeviceCreateContext
cryptLogin cryptLogout
);

# Add deprecated functions when CRYPTLIB_VERSION prior 3.4.0
push @FUNCTIONS, qw(cryptGenerateKeyAsync cryptAsyncQuery cryptAsyncCancel) if &CRYPTLIB_VERSION < 3400;

# Esportazione costanti e funzioni
our @ISA = qw(Exporter);
Expand Down Expand Up @@ -168,6 +169,8 @@ sub AUTOLOAD {

require XSLoader;
XSLoader::load('PerlCryptLib', $VERSION);
## Add deprecated functions if CRYPTLIB_VERSION is less than 3.4.0
#XSLoader::load('PerlCryptLib-deprecated-340', $VERSION) if &CRYPTLIB_VERSION < 3400;

if ( __FILE__ eq "$0" ) {
# TEST PACKAGE SPACE
Expand Down
30 changes: 17 additions & 13 deletions PerlCryptLib.xs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Perl extesione interface (XS) to 'cryptlib' library (PerlCryptLib)
Copyright (C) 2006-2009 Alvaro Livraghi. All Rights Reserved.
Copyright (C) 2006-2010 Alvaro Livraghi. All Rights Reserved.
Alvaro Livraghi, <perlcryptlib@gmail.com>
*******************************************************************************/
Expand Down Expand Up @@ -335,14 +335,6 @@ int cryptAddRandom(randomData, randomDataLength)
const int randomDataLength;


int cryptAsyncCancel(cryptObject)
const int cryptObject;


int cryptAsyncQuery(cryptObject)
const int cryptObject;


int cryptCAAddItem(keyset, certificate)
const int keyset;
const int certificate;
Expand Down Expand Up @@ -549,10 +541,6 @@ int cryptExportKeyEx(encryptedKey, encryptedKeyMaxLength, encryptedKeyLength, fo
encryptedKeyLength


int cryptGenerateKeyAsync(cryptContext)
const int cryptContext;


int cryptGetCertExtension(certificate, oid, criticalFlag, extension, extensionMaxLength, extensionLength)
const int certificate;
const char * oid;
Expand Down Expand Up @@ -605,3 +593,19 @@ int cryptQueryObject(objectData, objectDataLength, cryptObjectInfo)
}
OUTPUT:
RETVAL

# Add deprecated functions when CRYPTLIB_VERSION prior 3.4.0
#if CRYPTLIB_VERSION < 3400

int cryptAsyncCancel(cryptObject)
const int cryptObject;


int cryptAsyncQuery(cryptObject)
const int cryptObject;


int cryptGenerateKeyAsync(cryptContext)
const int cryptContext;

#endif
4 changes: 1 addition & 3 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
============================
PerlCryptLib v.1.10 - README
============================
PerlCryptLib v.1.11 - README


What is cryptlib?
Expand Down

0 comments on commit 51450ed

Please sign in to comment.