1 diff -Naur ncrypt-0.6.4.orig/ncrypt_bignum.pyx ncrypt-0.6.4/ncrypt_bignum.pyx
2 --- ncrypt-0.6.4.orig/ncrypt_bignum.pyx 2006-10-09 09:36:51.000000000 +0200
3 +++ ncrypt-0.6.4/ncrypt_bignum.pyx 2010-07-29 16:10:06.000632053 +0200
8 - def __new__( self, x=None ) :
9 + def __cinit__( self, x=None ) :
13 diff -Naur ncrypt-0.6.4.orig/ncrypt_cipher.pyx ncrypt-0.6.4/ncrypt_cipher.pyx
14 --- ncrypt-0.6.4.orig/ncrypt_cipher.pyx 2006-10-09 09:36:51.000000000 +0200
15 +++ ncrypt-0.6.4/ncrypt_cipher.pyx 2010-07-29 16:09:08.733881668 +0200
18 cdef object cipherAlgo, cipherMode
20 - def __new__( self, cipherAlgo, cipherMode ) :
21 + def __cinit__( self, cipherAlgo, cipherMode ) :
24 def __dealloc__( self ) :
26 cdef EVP_CIPHER_CTX *ctx
27 cdef int cipherFinalized
29 - def __new__( self, cipherType, key, iv, encryptFlag ) :
30 + def __cinit__( self, cipherType, key, iv, encryptFlag ) :
32 self.outBufferSize = 0
33 self.ctx = AllocCipherContext()
34 diff -Naur ncrypt-0.6.4.orig/ncrypt_dh.pyx ncrypt-0.6.4/ncrypt_dh.pyx
35 --- ncrypt-0.6.4.orig/ncrypt_dh.pyx 2006-10-09 09:36:51.000000000 +0200
36 +++ ncrypt-0.6.4/ncrypt_dh.pyx 2010-07-29 16:09:34.944631842 +0200
38 class DHError( ncrypt_err.BaseLibraryError ) : pass
41 - def __new__( self ) :
42 + def __cinit__( self ) :
45 def __dealloc__( self ) :
46 diff -Naur ncrypt-0.6.4.orig/ncrypt_digest.pyx ncrypt-0.6.4/ncrypt_digest.pyx
47 --- ncrypt-0.6.4.orig/ncrypt_digest.pyx 2006-10-09 09:36:51.000000000 +0200
48 +++ ncrypt-0.6.4/ncrypt_digest.pyx 2010-07-29 16:08:22.175632123 +0200
50 ALGORITHMS = ('MD5','SHA1','SHA224','SHA256','SHA384','SHA512')
52 cdef class DigestType :
53 - def __new__( self, evpMd ) :
54 + def __cinit__( self, evpMd ) :
57 def __dealloc__( self ) :
59 cdef int digestFinalized
60 cdef readonly object digestType
62 - def __new__( self, digestType ) :
63 + def __cinit__( self, digestType ) :
65 self.digestFinalized = 0
67 diff -Naur ncrypt-0.6.4.orig/ncrypt_rsa.pyx ncrypt-0.6.4/ncrypt_rsa.pyx
68 --- ncrypt-0.6.4.orig/ncrypt_rsa.pyx 2006-10-09 09:36:52.000000000 +0200
69 +++ ncrypt-0.6.4/ncrypt_rsa.pyx 2010-07-29 16:09:23.573880691 +0200
71 PADDING_PKCS1_OAEP = 1
74 - def __new__( self ) :
75 + def __cinit__( self ) :
78 def __dealloc__( self ) :
79 diff -Naur ncrypt-0.6.4.orig/ncrypt_ssl.pyx ncrypt-0.6.4/ncrypt_ssl.pyx
80 --- ncrypt-0.6.4.orig/ncrypt_ssl.pyx 2006-10-09 09:36:52.000000000 +0200
81 +++ ncrypt-0.6.4/ncrypt_ssl.pyx 2010-07-29 16:09:54.873632053 +0200
83 cdef class SSLContext :
86 - def __new__( self, sslMethod, sslMethodType=-1 ) :
87 + def __cinit__( self, sslMethod, sslMethodType=-1 ) :
90 def __dealloc__( self ) :
92 cdef object sslContext
93 cdef readonly object sock
95 - def __new__( self, sslContext, sock ) :
96 + def __cinit__( self, sslContext, sock ) :
99 def __dealloc__( self ) :
100 diff -Naur ncrypt-0.6.4.orig/ncrypt_x509.pyx ncrypt-0.6.4/ncrypt_x509.pyx
101 --- ncrypt-0.6.4.orig/ncrypt_x509.pyx 2006-10-09 09:36:52.000000000 +0200
102 +++ ncrypt-0.6.4/ncrypt_x509.pyx 2010-07-29 16:08:47.989640504 +0200
104 cdef class X509Name :
107 - def __new__( self ) :
108 + def __cinit__( self ) :
111 def __dealloc__( self ) :
113 raise X509Error, 'unable to find field name: %s' % fieldName
115 cdef class X509Certificate :
116 - def __new__( self, data=None ) :
117 + def __cinit__( self, data=None ) :
120 def __dealloc__( self ) :