--- ncrypt-0.6.4.orig/ncrypt_x509.pxd +++ ncrypt-0.6.4/ncrypt_x509.pxd @@ -1,6 +1,11 @@ cdef extern from "openssl/x509.h" : ctypedef struct X509 +cimport ncrypt_rsa +cimport ncrypt_digest + +cdef class X509Name + cdef class X509Certificate : cdef X509 *x cdef int fromX509( self, X509 *xptr ) --- ncrypt-0.6.4.orig/ncrypt_ssl.pyx +++ ncrypt-0.6.4/ncrypt_ssl.pyx @@ -25,9 +25,6 @@ cdef extern from "openssl/ssl.h" : ctypedef struct SSL_METHOD - SSL_METHOD *SSLv2_method() - SSL_METHOD *SSLv2_client_method() - SSL_METHOD *SSLv2_server_method() SSL_METHOD *SSLv3_method() SSL_METHOD *SSLv3_client_method() SSL_METHOD *SSLv3_server_method() @@ -94,7 +91,7 @@ int _PyString_Resize( PyObject **s, int newsize ) char *PyString_AsString( PyObject *s ) -SSL_METHOD_SSLv2 = 0 +# SSL_METHOD_SSLv2 = 0 # no longer supported SSL_METHOD_SSLv3 = 1 SSL_METHOD_TLSv1 = 2 SSL_METHOD_SSLv23 = 3 @@ -131,14 +128,7 @@ cdef SSL_METHOD *getSSLMethod( int method, int methodType ) : m, t = method, methodType - if m == SSL_METHOD_SSLv2 : - if t == SSL_METHOD_TYPE_CLIENT : - return SSLv2_client_method() - elif t == SSL_METHOD_TYPE_SERVER : - return SSLv2_server_method() - elif t == SSL_METHOD_TYPE_GENERIC : - return SSLv2_method() - elif m == SSL_METHOD_SSLv3 : + if m == SSL_METHOD_SSLv3 : if t == SSL_METHOD_TYPE_CLIENT : return SSLv3_client_method() elif t == SSL_METHOD_TYPE_SERVER : @@ -180,7 +170,7 @@ SSL_CTX_free( self.c ) def __init__( self, int sslMethod, int sslMethodType=-1 ) : - if (sslMethod < 0) or (sslMethod >= SSL_METHOD_MAX) : + if (sslMethod < 1) or (sslMethod >= SSL_METHOD_MAX) : raise ValueError, 'invalid ssl method' if sslMethodType == -1 : sslMethodType = SSL_METHOD_TYPE_GENERIC --- ncrypt-0.6.4.orig/debian/changelog +++ ncrypt-0.6.4/debian/changelog @@ -0,0 +1,53 @@ +ncrypt (0.6.4-0ubuntu8) precise; urgency=low + + * Rebuild to drop python2.6 dependencies and provides. + + -- Matthias Klose Sat, 14 Apr 2012 13:43:05 +0000 + +ncrypt (0.6.4-0ubuntu7) oneiric; urgency=low + + * Disable SSLv2 support, since OpenSSL 1.0.0 no longer exposes it. + Attempts to create SSLContext(SSL_METHOD_SSLV2) will now raise + ValueError. + + -- Colin Watson Fri, 20 May 2011 14:15:21 +0100 + +ncrypt (0.6.4-0ubuntu6) oneiric; urgency=low + + * Rebuild for OpenSSL 1.0.0. + + -- Colin Watson Thu, 19 May 2011 11:57:24 +0100 + +ncrypt (0.6.4-0ubuntu5) natty; urgency=low + + * Rebuild to add support for python 2.7. + + -- Matthias Klose Fri, 03 Dec 2010 00:05:02 +0000 + +ncrypt (0.6.4-0ubuntu4) maverick; urgency=low + + * ncrypt-0.6.4/ncrypt_x509.pxd: + + fix "#error Do not use this file, it is the result of a failed + Pyrex compilation." compile error Thanks to Felix Dreher for the + patch (LP: #601893) can be SRU'ed into lucid hopefully. + + -- Bhavani Shankar Mon, 05 Jul 2010 14:48:10 +0530 + +ncrypt (0.6.4-0ubuntu3) jaunty; urgency=low + + * No-change rebuild to fix lpia shared library dependencies. + + -- Colin Watson Thu, 19 Mar 2009 13:07:22 +0000 + +ncrypt (0.6.4-0ubuntu2) jaunty; urgency=low + + * No-change rebuild to build with Python 2.6. + + -- Alessio Treglia Sun, 15 Mar 2009 12:26:36 +0100 + +ncrypt (0.6.4-0ubuntu1) gutsy; urgency=low + + * Initial release + * LICENSE.txt added to source package. + + -- Frank Sievertsen Sat, 30 Apr 2007 10:11:02 +0200 --- ncrypt-0.6.4.orig/debian/rules +++ ncrypt-0.6.4/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pysupport + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +DEB_DESTDIR := debian/python-ncrypt + +clean:: + if [ -e ncrypt.egg-info ] ; then rm -f ncrypt.egg-info/* ; fi --- ncrypt-0.6.4.orig/debian/control +++ ncrypt-0.6.4/debian/control @@ -0,0 +1,23 @@ +Source: ncrypt +Section: python +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Frank Sievertsen +Build-Depends: debhelper (>= 5.0.38), cdbs (>= 0.4.43), dh-buildinfo, python-all-dev (>= 2.3.5-11), python-support (>= 0.5.3), libssl-dev, python-pyrex +Standards-Version: 3.7.2 + +Package: python-ncrypt +Architecture: any +Depends: ${python:Depends}, ${shlibs:Depends} +Provides: ${python:Provides} +Description: python wrapper for OpenSSL + Features: + * hash algorithms (md5, sha1, sha256, sha512 etc.) + * symmetric encryption algorithms (aes256, aes128, 3des, blowfish etc.) + * public key crypto with RSA + * diffie-hellman key exchange + * create/manipulate X.509 certificates + * SSL/TLS network protocol + * MIT License + . + Homepage: http://tachyon.in/ncrypt/ --- ncrypt-0.6.4.orig/debian/copyright +++ ncrypt-0.6.4/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Frank Sievertsen on +Sat, 28 Apr 2007 12:20:25 +0200. + +It was downloaded from http://tachyon.in/ncrypt/ + +Copyright (c) 2005,2006,2007 Tachyon Technologies Pvt. Ltd. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + --- ncrypt-0.6.4.orig/debian/pycompat +++ ncrypt-0.6.4/debian/pycompat @@ -0,0 +1 @@ +2 --- ncrypt-0.6.4.orig/debian/watch +++ ncrypt-0.6.4/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://tachyon.in/ncrypt/ ncrypt-(.*)\.tar\.gz --- ncrypt-0.6.4.orig/debian/compat +++ ncrypt-0.6.4/debian/compat @@ -0,0 +1 @@ +5