--- nettle-2.0.orig/debian/nettle-dev.info +++ nettle-2.0/debian/nettle-dev.info @@ -0,0 +1 @@ +nettle.info --- nettle-2.0.orig/debian/rules +++ nettle-2.0/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g +LDFLAGS = -Wl,--as-needed + +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +config.status: ${DPATCH_STAMPFN} configure + dh_testdir + # Add here commands to configure the package. + ./configure --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --enable-shared \ + --disable-assembler \ + --disable-dependency-tracking \ + --disable-assembler \ + CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" + + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) MAKEINFO='makeinfo --enable-encoding' +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + $(MAKE) check +endif + + touch build-stamp + +clean: clean-patched unpatch + dh_clean + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + +# Build architecture-independent files here. +binary-indep: +# Nothing to do + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_install -a --sourcedir=debian/tmp + dh_link -a + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_installexamples -a + dh_installinfo -a + dh_installman -a + dh_strip -a --dbg-package=nettle-dbg + dh_compress -a -X.pdf + dh_fixperms -a + dh_makeshlibs #-V 'libnettle2 (>= 1.15)' + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-arch +.PHONY: build clean clean-patched binary-indep binary-arch binary install --- nettle-2.0.orig/debian/libhogweed1.install +++ nettle-2.0/debian/libhogweed1.install @@ -0,0 +1 @@ +usr/lib/libhogweed*.so.* --- nettle-2.0.orig/debian/nettle-dev.doc-base +++ nettle-2.0/debian/nettle-dev.doc-base @@ -0,0 +1,20 @@ +Document: nettle-dev +Title: Debian Nettle Manual +Author: Niels Möller +Abstract: This document describes the nettle low-level + cryptographic library. You can use the library directly + from your C programs, or (recommended) write or use an + object-oriented wrapper for your favorite language or + application. +Section: Programming + +Format: HTML +Files: /usr/share/doc/nettle-dev/nettle.html +Index: /usr/share/doc/nettle-dev/nettle.html + +Format: PDF +Files: /usr/share/doc/nettle-dev/nettle.pdf + +Format: Info +Files: /usr/share/info/nettle.info.gz +Index: /usr/share/info/nettle.info.gz --- nettle-2.0.orig/debian/copyright +++ nettle-2.0/debian/copyright @@ -0,0 +1,247 @@ +This package was debianized by Marek Habersack on +Tue, 4 Nov 2003 18:23:07 +0100. +The current Debian maintainer is Magnus Holmgren . + +It was downloaded from http://www.lysator.liu.se/~nisse/nettle/ + +Upstream Author: Niels Möller + +Copyright © 2001-2006 Niels Möller + +Some parts are Copyright © the Free Software Foundation and various +people. See below and source code comments for details. + + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301, USA. + + +Nettle is distributed under the GNU General Public License. However, +most of the individual files are dual licensed under less restrictive +licenses like the GNU Lesser General Public License (LGPL), or are in +the public domain. This means that if you don't use the parts of +nettle that are GPL-only, you have the option to use the Nettle +library just as if it were licensed under the LGPL. To find the +current status of particular files, you have to read the copyright +notices at the top of the files. + + A list of the supported algorithms, their origins and licenses (from + the manual): + +AES + The implementation of the AES cipher (also known as rijndael) is + written by Rafael Sevilla. Assembler for x86 by Rafael Sevilla and + Niels Möller, Sparc assembler by Niels Möller. Released under the + LGPL. + +ARCFOUR + The implementation of the ARCFOUR (also known as RC4) cipher is + written by Niels Möller. Released under the LGPL. + +ARCTWO + The implementation of the ARCTWO (also known as RC2) cipher is + written by Nikos Mavroyanopoulos and modified by Werner Koch and + Simon Josefsson. Released under the LGPL. + +BLOWFISH + The implementation of the BLOWFISH cipher is written by Werner + Koch, copyright owned by the Free Software Foundation. Also hacked + by Ray Dassen and Niels Möller. Released under the GPL. + +CAST128 + The implementation of the CAST128 cipher is written by Steve Reid. + Released into the public domain. + +DES + The implementation of the DES cipher is written by Dana L. How, and + released under the LGPL. + +MD2 + The implementation of MD2 is written by Andrew Kuchling, and hacked + some by Andreas Sigfridsson and Niels Möller. Python Cryptography + Toolkit license (essentially public domain). + +MD4 + This is almost the same code as for MD5 below, with modifications + by Marcus Comstedt. Released into the public domain. + +MD5 + The implementation of the MD5 message digest is written by Colin + Plumb. It has been hacked some more by Andrew Kuchling and Niels + Möller. Released into the public domain. + +SERPENT + The implementation of the SERPENT cipher is written by Ross + Anderson, Eli Biham, and Lars Knudsen, adapted to LSH by Rafael + Sevilla, and to Nettle by Niels Möller. Released under the GPL. + +SHA1 + The C implementation of the SHA1 message digest is written by Peter + Gutmann, and hacked some more by Andrew Kuchling and Niels Möller. + Released into the public domain. Assembler for x86 by Niels Möller, + released under the LGPL. + +SHA256 + Written by Niels Möller, using Peter Gutmann's SHA1 code as a + model. Released under the LGPL. + +TWOFISH + The implementation of the TWOFISH cipher is written by Ruud de + Rooij. Released under the LGPL. + +RSA + Written by Niels Möller, released under the LGPL. Uses the GMP + library for bignum operations. + +DSA + Written by Niels Möller, released under the LGPL. Uses the GMP + library for bignum operations. + + +On Debian GNU/Linux systems, the complete texts of the GNU General +Public License and the GNU Lesser General Public License can be found +in /usr/share/common-licenses/GPL-2 and /usr/share/common-licenses/LGPL, +respectively. + +Files: * +Copyright: © 2001-2006 Niels Möller +License: LGPL-2.1+ + +Files: aes-set-*, +Copyright: © 2000, 2001, 2002 Rafael R. Sevilla, Niels Möller +License: LGPL-2.1+ + +Files: arctwo* +Copyright: © 2003 Nikos Mavroyanopoulos + © 2004 Simon Josefsson + © 2004 Free Software Foundation, Inc. + © 2002, 2004 Niels Möller +License: LGPL-2.1+ + +Files: blowfish.c +Copyright: © 1998 Free Software Foundation, Inc. + © 2001 Ray Dassen + © 2001 Niels Möller +License: GPL-2+ + +Files: blowfish.h +Copyright: © 1998 Free Software Foundation, Inc. + © 2001 Ray Dassen + © 2001 Niels Möller +License: LGPL-2.1+ + +Files: desCode.h, descode.README, desdata.c, desinfo.c +Copyright: © 2002 Dana L. How +License: LGPL-2+ + +Files: des.c, des.h +Copyright: © 1992 Dana L. How + © 1997, 2001 Niels Möller +License: LGPL-2.1+ + +Files: md2.c +Copyright: © ? Andrew Kuchling + © 2003 Andreas Sigfridsson + © 2003 Niels Möller +License: LGPL-2.1+ + +Files: md4.c +Copyright: © 2003 Marcus Comstedt + © 2003 Niels Möller +License: LGPL-2.1+ + +Files: md5.c, md5-compress.c +Copyright: © Colin Plumb, Andrew Kuchling + © 2001 Niels Möller +License: LGPL-2.1+ + +Files: serpent.c, serpent_sboxes.h +Copyright: © 1998, 2000, 2001 Ross Anderson, Eli Biham, Lars Knudsen, Rafael R. Sevilla, Niels Möller +License: GPL-2+ + +Files: sha* +Copyright: © 2001, 2004 Peter Gutmann, Andrew Kuchling, Niels Möller +License: LGPL-2.1+ + +Files: twofish* +Copyright: © 1999 Ruud de Rooij + © 1999 J.H.M. Dassen (Ray) + © 2001 Niels Möller +License: LGPL-2.1+ + +Files: testsuite/*, examples/*, aesdata.c, sha-example.c +Copyright: © 2001-2006 Niels Möller +License: GPL-2 + +Files: testsuite/des-compat-test.c +Copyright: © 1995-1997 Eric Young (eay@cryptsoft.com) +License: other + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + "This product includes cryptographic software written by + Eric Young (eay@cryptsoft.com)" + The word 'cryptographic' can be left out if the rouines from the library + being used are not cryptographic related :-). + 4. If you include any Windows specific code (or a derivative thereof) from + the apps directory (application code) you must include an acknowledgement: + "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + . + THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +Files: getopt* +Copyright: © 1987-2001 Free Software Foundation, Inc. +License: GPL-2+ + +Files: config.guess, config.sub +Copyright: © 1992-2003 Free Software Foundation, Inc. +License: GPL-2+ + As a special exception to the GNU General Public License, if you + distribute this file as part of a program that contains a + configuration script generated by Autoconf, you may include it under + the same distribution terms that you use for the rest of that program. + +Files: debian/* +License: PD + I believe that most files in debian/ hardly contains any creative + expression eligible for copyright. + +Files: debian/sexp-conv.nettle.1 +Copyright: © 2002 Timshel Knoll + © 2007 Magnus Holmgren +License: GPL-2 + This manpage was copied from the lsh-utils package. Timshel didn't + explicitly select a license for his packaging work, but I think that + it can be considered released under the same license as LSH itself. + +Files: debian/pkcs1-conv.1, debian/nettle-lfib-stream.1 +Copyright: © 2007 Magnus Holmgren +License: GAP --- nettle-2.0.orig/debian/libnettle3.docs +++ nettle-2.0/debian/libnettle3.docs @@ -0,0 +1,2 @@ +NEWS +README --- nettle-2.0.orig/debian/README.source +++ nettle-2.0/debian/README.source @@ -0,0 +1,8 @@ +This package uses dpatch to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. For basic usage +information, see + + /usr/share/doc/dpatch/README.source.gz + +(after installing dpatch). --- nettle-2.0.orig/debian/nettle-bin.install +++ nettle-2.0/debian/nettle-bin.install @@ -0,0 +1 @@ +/usr/bin/* --- nettle-2.0.orig/debian/watch +++ nettle-2.0/debian/watch @@ -0,0 +1,3 @@ +version=3 +ftp://ftp.lysator.liu.se/pub/security/lsh/nettle-(.*)\.tar\.gz +http://www.lysator.liu.se/~nisse/archive/nettle-(.*)\.tar\.gz --- nettle-2.0.orig/debian/nettle-dev.examples +++ nettle-2.0/debian/nettle-dev.examples @@ -0,0 +1,2 @@ +sha-example.c +examples/*.[ch] --- nettle-2.0.orig/debian/libhogweed1.links +++ nettle-2.0/debian/libhogweed1.links @@ -0,0 +1 @@ +usr/share/doc/libnettle3 usr/share/doc/libhogweed1 --- nettle-2.0.orig/debian/compat +++ nettle-2.0/debian/compat @@ -0,0 +1 @@ +5 --- nettle-2.0.orig/debian/sexp-conv.1 +++ nettle-2.0/debian/sexp-conv.1 @@ -0,0 +1,94 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH SEXP\-CONV 1 "June 2007" "nettle 1.15" "Nettle tools" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +sexp\-conv \- convert s-expression to a different encoding +.SH SYNOPSIS +Conversion: +.br +.B sexp-conv +.RI [ OPTION ]... +.RI <\ INPUT-SEXP +.PP +Fingerprinting: +.br +.B sexp-conv --hash\fR[\fB=\fP\fIalgorithm\fP] +.RI [ OPTION ]... +.RI <\ INPUT-SEXP +.SH DESCRIPTION +This manual page documents briefly the +.B sexp\-conv +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +Instead, it has documentation in the GNU Info format; see below. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBsexp\-conv\fP is a program that converts S-expressions. It automatically +detects the s-expression syntax variant of the input. It is primarily +used by the `lsh' packages, which stores keys and most other objects +on disk in that format, but may be of other use as well. +.SH OPTIONS +This program follows the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-\-hash=\fIalgorithm\fP +Output only the hash of the s-expression, using \fIalgorithm\fP (default: sha1). +.TP +.B \-\-raw\-hash +Alias for \-\-hash, for compatibility with lsh 1.x. +.TP +.B \-\-once +Process exactly one s-expression. +.TP +.B \-\-spki\-hash +Output an SPKI hash for the object. \fBNot yet implemented.\fP +.TP +.B \-s, \-\-syntax=\fIformat\fP +Variant of S-expression to output. Valid S-expression formats are: transport, +canonical (binary), advanced, and hex (same as advanced, but numbers in hex +instead of base64). +.TP +.B \-w, \-\-width=\fIwidth\fP +Limit output to lines of \fIwidth\fP characters (has no effect on canonical syntax). Zero means no limit. +.TP +.B \-?, \-\-help +Show summary of options. +.TP +.B \-V, \-\-version +Show version of program. +.SH SEE ALSO +.BR ssh-conv (1), +.BR lsh (1), +.BR lshd (8), +http://theworld.com/~cme/spki.txt. +.br +The programs are documented fully by the +.IR "sexp" +section under the +.IR "Getting Started" +header of the lsh info page, available via the Info system. +.SH BUGS +This program should be documented in the nettle manual, not in the lsh manual. +.SH AUTHOR +This manual page was originally written by Timshel Knoll , +for the Debian GNU/Linux system (but may be used by others). Edited +by Magnus Holmgren . --- nettle-2.0.orig/debian/nettle-bin.manpages +++ nettle-2.0/debian/nettle-bin.manpages @@ -0,0 +1,3 @@ +debian/sexp-conv.1 +debian/pkcs1-conv.1 +debian/nettle-lfib-stream.1 --- nettle-2.0.orig/debian/nettle-dev.docs +++ nettle-2.0/debian/nettle-dev.docs @@ -0,0 +1,6 @@ +README +NEWS +descore.README +TODO +nettle.html +nettle.pdf --- nettle-2.0.orig/debian/changelog +++ nettle-2.0/debian/changelog @@ -0,0 +1,214 @@ +nettle (2.0-2ubuntu1) natty; urgency=low + + * Configure with --disable-assembler for natty to fix a FTBFS. Should + be revisited with 2.1 in the o-series. + + -- Matthias Klose Wed, 30 Mar 2011 18:08:59 +0200 + +nettle (2.0-2) unstable; urgency=low + + * rsa2sexp_algorithm_name.dpatch (new): Use a default algorithm name + that LSH understands in the sexp representation of an RSA key, so that + pkcs1-conv can be used to convert existing OpenSSH private keys. + * debian/control: Add ${misc:Depends} to all packages lacking it. + * debian/control: nettle-dev: Depend on dpkg (>= 1.15.4) | install-info + as recommended for the transition to triggerized install-info. + * Upgraded to Standards-Version 3.8.3 with the previous change. + + -- Magnus Holmgren Sun, 11 Oct 2009 23:27:07 +0200 + +nettle (2.0-1) unstable; urgency=low + + * Merge with experimental branch. + - There was no lsh-utils 2.0.3-2 in Debian, so the conflict is with + lsh-utils < 2.0.4-dfsg-1. + - Drop the transitional libnettle-dev package that was in experimental. + Due to the split, depending packages will need sourceful uploads anyway. + * New upstream version. + - Drop 30_sparc_aes_include.dpatch; incorporated upstream. + * Add debug package. + * nettle-dev.doc-info: Correct Section and Document. + * Bump Standards-Version to 3.8.2. + + -- Magnus Holmgren Sun, 02 Aug 2009 17:20:28 +0200 + +nettle (1.16~cvs20070603-2) experimental; urgency=low + + * 30_sparc_aes_include.dpatch: Patch from upstream CVS, fixes FTBFS on + sparc (Closes: #441265). + * debian/rules: Check for Makefile instead of ignoring all `make + distclean' errors. + + -- Magnus Holmgren Sat, 08 Sep 2007 19:58:29 +0200 + +nettle (1.16~cvs20070603-1) experimental; urgency=low + + * Upstream CVS snapshot splitting off public-key algorithms as + libhogweed1. + - Drop 10_cleanup.dpatch; incorporated upstream. + - Rename libnettle-dev as nettle-dev. + * No longer install sexp-conv as an alternative; conflict with lsh-utils + (<< 2.0.3-2, which is anticipated to stop shipping an identical + sexp-conv and depend on nettle-bin instead). + * Link with --as-needed to avoid unnecessary NEEDED tags. + + -- Magnus Holmgren Mon, 11 Jun 2007 17:36:08 +0200 + +nettle (1.15-6) unstable; urgency=low + + * No longer install sexp-conv as an alternative; conflict with lsh-utils + prior to 2.0.4-dfsg-1, which depends on nettle-bin instead of shipping + a copy of sexp-conv (Closes: #510942). Drop nettle-bin.postinst and + nettle-bin.prerm (nettle-bin.prerm will remove the alternative on + upgrade, which is actually a bug, but works out fine in this case). + * Switch to Debhelper level 5. Remove files that don't exist from install + lists (copied from a template, apparently). + * Upgrade to Standards-Version 3.8.1: + + Add debian/README.source (§ 4.9). + * Add debian/libnettle2.symbols. + + -- Magnus Holmgren Mon, 13 Apr 2009 22:52:44 +0200 + +nettle (1.15-5) unstable; urgency=low + + * New maintainer email address. + * Bring debian/control format up-to-date with Homepage and Vcs fields. + * Add machine-readable copyright information to debian/copyright and + clarify licensing of nettle-lfib-stream.1 and pkcs1-conv.1. The + machine-readable information may not be completely accurate at this + point due to the many different authors and licenses. + * Don't ignore make potential distclean errors. + * debian/libnettle-dev.doc-base: Change section to Programming/C + following the abolishion of the Apps section. + * Bump Standards-Version to 3.7.3 without any changes. + + -- Magnus Holmgren Sun, 20 Apr 2008 00:40:55 +0200 + +nettle (1.15-4) unstable; urgency=low + + * Add manpage for nettle-lfib-stream(1) (Closes: #413293). + * Add manpage for pkcs1-conv(1) (Closes: #413294). + * Correct manpage for sexp-conv(1). + + -- Magnus Holmgren Mon, 11 Jun 2007 13:37:53 +0200 + +nettle (1.15-3) unstable; urgency=low + + * Use dh_install instead of dh_movefiles. + * Run "make check" by default. + * Ship nettle.pdf in libnettle-dev. + * Include PDF and Info formats in doc-base control file. + * Clean up the libnettle-dev examples directory. There should only be + source files. Note that most of the examples aren't made to be + compiled outside of the nettle source tree, except sha-example.c, + which is the example found in the documentation. + * Move descore.README and TODO from libnettle2.docs to + libnettle-dev.docs, and also add README and NEWS to the latter. + * Make debian/copyright more correct. + * Add pkcs1-conv to nettle-bin package description. + + -- Magnus Holmgren Wed, 06 Jun 2007 14:35:13 +0200 + +nettle (1.15-2) unstable; urgency=high + + * Fix serious regression: The -lgmp added in 1.8-1 fell off in 1.15-1 + (Closes: #415034). + * Use dpatch to handle patches. + * Make package binNMUable. + * Add XS-Vcs-* fields to debian/control. + * Make dependencies on libnettle2 versioned. + + -- Magnus Holmgren Tue, 15 May 2007 16:15:19 +0200 + +nettle (1.15-1) unstable; urgency=low + + * New maintainer (Closes: #411677). + * New upstream version. The non-free IETF RFC has been removed by + upstream. + * Updated Standards-Version to 3.7.2 without any changes. + * Converted doc-base and copyright files to UTF-8. + * Added extra cleanup to clean target of debian/rules so that + dpkg-buildpackage can be run more than once. + * debian/watch: updated. + * debian/control: added autotools-dev as a build-dependency. + * debian/rules: don't include config.guess and config.sub in + .diff.gz. + + -- Magnus Holmgren Thu, 1 Mar 2007 19:29:49 +0100 + +nettle (1.14.1-1) unstable; urgency=low + + * Removed non-DFSG file from the archive and disabled the + corresponding test case + * Source package contains non-free IETF RFC/I-D's (Closes: #393400) + * Since there is no upstream release available, a "fake" version number + is added to the version. + + -- Marek Habersack Wed, 18 Oct 2006 09:47:03 +0200 + +nettle (1.14-1) unstable; urgency=low + + * The latest upstream version + + -- Marek Habersack Tue, 9 May 2006 21:41:17 +0200 + +nettle (1.12-3) unstable; urgency=high + + * Force a recompile to match the new libgmp3 package name + + -- Marek Habersack Tue, 19 Jul 2005 12:01:28 +0200 + +nettle (1.12-2) unstable; urgency=high + + * Make libnettle-dev depend on libgmp3-dev + + -- Marek Habersack Tue, 8 Mar 2005 02:19:01 +0100 + +nettle (1.12-1) unstable; urgency=high + + * The latest upstream release + * sexp-conv is installed as sexp-conv.nettle and registered with the + alternatives system now. + * added the sexp-conv mainpage borrowed from the lsh-utils package. + + -- Marek Habersack Tue, 30 Nov 2004 01:45:49 +0100 + +nettle (1.10-1) unstable; urgency=low + + * The latest upstream version + + -- Marek Habersack Tue, 4 May 2004 15:56:02 +0200 + +nettle (1.9-1) unstable; urgency=low + + * The latest upstream release + + -- Marek Habersack Mon, 16 Feb 2004 02:53:34 +0100 + +nettle (1.8-1) unstable; urgency=low + + * The latest upstream release + * libnettle1 links directly against gmp now to avoid problems with + programs linking to libnettle without referencing -lgmp explicitly. + * libnettle1 is gone - upstream changed the SOVERSION to 2 + + -- Marek Habersack Wed, 14 Jan 2004 22:27:19 +0100 + +nettle (1.7-3) unstable; urgency=low + + * Don't drink and drive, or another doc-base fix + + -- Marek Habersack Mon, 10 Nov 2003 19:07:20 -0500 + +nettle (1.7-2) unstable; urgency=low + + * Fixed the doc-base problem with the missing Section field + + -- Marek Habersack Sun, 9 Nov 2003 22:06:09 -0500 + +nettle (1.7-1) unstable; urgency=low + + * Initial Release. + + -- Marek Habersack Tue, 4 Nov 2003 18:23:07 +0100 + --- nettle-2.0.orig/debian/nettle-lfib-stream.1 +++ nettle-2.0/debian/nettle-lfib-stream.1 @@ -0,0 +1,50 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH NETTLE\-LFIB\-STREAM 1 "June 2007" "nettle 1.15" "Nettle tools" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +nettle\-lfib\-stream \- pseudorandom generator +.SH SYNOPSIS +.B nettle\-lfib\-stream +.RI [ seed ] +.SH DESCRIPTION +This manual page documents briefly the +.B nettle\-lfib\-stream +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBnettle\-lfib\-stream\fP outputs a sequence +of pseudorandom (non-cryptographic) bytes, using Knuth's lagged +fibonacci generator, optionally using the integer \fIseed\fR as the +seed. If no seed is given, \fBtime\fR(2) is used. +.PP +\fBWarning:\fP The stream is useful for testing, but should not be used +to generate cryptographic keys or anything else that needs real randomness. +.SH SEE ALSO +http://en.wikipedia.org/wiki/Lagged_Fibonacci_generator +.SH AUTHOR +This manual page was written by Magnus Holmgren , +for the Debian GNU/Linux system (but may be used by others). +.SH COPYRIGHT +Copyright © 2007 Magnus Holmgren. +.P +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. --- nettle-2.0.orig/debian/nettle-dev.install +++ nettle-2.0/debian/nettle-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so --- nettle-2.0.orig/debian/control +++ nettle-2.0/debian/control @@ -0,0 +1,104 @@ +Source: nettle +Section: libs +Priority: optional +Maintainer: Magnus Holmgren +Build-Depends: debhelper (>= 5), libgmp3-dev, m4, autotools-dev, dpatch +Standards-Version: 3.8.3 +Vcs-Svn: svn://svn.kibibyte.se/nettle/trunk +Vcs-Browser: http://svn.kibibyte.se/nettle +Homepage: http://www.lysator.liu.se/~nisse/nettle/ + +Package: libnettle3 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: low level cryptographic library (symmetric and one-way cryptos) + Nettle is a cryptographic library that is designed to fit easily in more or + less any context: In crypto toolkits for object-oriented languages (C++, + Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel + space. + . + It tries to solve a problem of providing a common set of cryptographic + algorithms for higher-level applications by implementing a + context-independent set of cryptographic algorithms. In that light, Nettle + doesn't do any memory allocation or I/O, it simply provides the + cryptographic algorithms for the application to use in any environment and + in any way it needs. + +Package: libhogweed1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: low level cryptographic library (public-key cryptos) + Nettle is a cryptographic library that is designed to fit easily in more or + less any context: In crypto toolkits for object-oriented languages (C++, + Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel + space. + . + It tries to solve a problem of providing a common set of cryptographic + algorithms for higher-level applications by implementing a + context-independent set of cryptographic algorithms. In that light, Nettle + doesn't do any memory allocation or I/O, it simply provides the + cryptographic algorithms for the application to use in any environment and + in any way it needs. + +Package: nettle-dev +Section: libdevel +Architecture: any +Depends: libnettle3 (= ${binary:Version}), libhogweed1 (= ${binary:Version}), + libgmp3-dev, dpkg (>= 1.15.4) | install-info, ${misc:Depends} +Replaces: libnettle-dev +Conflicts: libnettle-dev +Description: low level cryptographic library (development files) + Nettle is a cryptographic library that is designed to fit easily in more or + less any context: In crypto toolkits for object-oriented languages (C++, + Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel + space. + . + It tries to solve a problem of providing a common set of cryptographic + algorithms for higher-level applications by implementing a + context-independent set of cryptographic algorithms. In that light, Nettle + doesn't do any memory allocation or I/O, it simply provides the + cryptographic algorithms for the application to use in any environment and + in any way it needs. + . + This package contains the development files (C headers and static libraries) + +Package: nettle-bin +Section: misc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: libnettle1, lsh-utils (<< 2.0.4-dfsg-1) +Suggests: lsh-utils-doc | lsh-doc +Description: low level cryptographic library (binary tools) + Nettle is a cryptographic library that is designed to fit easily in more or + less any context: In crypto toolkits for object-oriented languages (C++, + Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel + space. + . + It tries to solve a problem of providing a common set of cryptographic + algorithms for higher-level applications by implementing a + context-independent set of cryptographic algorithms. In that light, Nettle + doesn't do any memory allocation or I/O, it simply provides the + cryptographic algorithms for the application to use in any environment and + in any way it needs. + . + This package contains binary utilities that accompany the library: + . + - nettle-lfib-stream - generates a pseudorandom stream, using the Knuth + lfib (non-cryptographic) pseudorandom generator. + - sexp-conv - conversion tool for handling the different flavours of sexp + syntax. + - pkcs1-conv - converts PKCS#1 keys to sexp format. + +Package: nettle-dbg +Section: debug +Priority: extra +Architecture: any +Depends: libnettle3 (= ${binary:Version}) | libhogweed1 (= ${binary:Version}) | nettle-bin (= ${binary:Version}), ${misc:Depends} +Description: low level cryptographic library (debugging symbols) + Nettle is a cryptographic library that is designed to fit easily in more or + less any context: In crypto toolkits for object-oriented languages (C++, + Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel + space. + . + This package contains the debugging symbols for all binary packages. --- nettle-2.0.orig/debian/libnettle3.install +++ nettle-2.0/debian/libnettle3.install @@ -0,0 +1 @@ +usr/lib/libnettle*.so.* --- nettle-2.0.orig/debian/nettle-bin.links +++ nettle-2.0/debian/nettle-bin.links @@ -0,0 +1 @@ +usr/share/doc/libnettle3 usr/share/doc/nettle-bin --- nettle-2.0.orig/debian/pkcs1-conv.1 +++ nettle-2.0/debian/pkcs1-conv.1 @@ -0,0 +1,96 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PKCS1\-CONV 1 "June 2007" "nettle 1.15" "Nettle tools" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +pkcs1\-conv \- convert keys from PKCS#1 format to s-expression format +.SH SYNOPSIS +.B pkcs1-conv +.RB [{ \-\-private-rsa-key | \-\-public-rsa-key | \-\-public-key-info } +.RB [ \-\-base-64 ]] +.RI <\ FILE +.SH DESCRIPTION +This manual page documents briefly the +.B pkcs1\-conv +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBpkcs1\-conv\fP converts private and public RSA keys from PKCS #1 +format to sexp format. +.SH OPTIONS +This program follows the usual GNU command line syntax, with long +options starting with two dashes (`\-'). +.PP +By default pkcs1-conv expects a PEM-encapsulated RSA key on standard input, +and will determine its type from the Pre-Encapsulation Boundary. +To convert a DER-encoded (non PEM-encoded) key, one of the first three +options below must be used: +.TP +.B \-\-private-rsa-key +Specify that a DER-encoded RSAPrivateKey, as defined by PKCS #1 (RFC 3447), +and described in section A.1.2 of its appendix A, is to be expected as input. +.TP +.B \-\-public-rsa-key +Specify that a DER-encoded RSAPublicKey, as defined by PKCS #1 (RFC 3447), +and described in section A.1.1 of its appendix A, is to be expected as input. +.TP +.B \-\-public-key-info +Specify that a DER-encoded SubjectPublicKeyInfo, as defined by PKCS #6, +and described in section A.1 of its appendix A, encapsulating an RSAPublicKey, +is to be expected as input. +.TP +.B \-\-base-64 +Together with \-\-private-rsa-key, \-\-public-rsa-key, or \-\-public-key-info, +specify that base64 encoding is applied on top of the DER encoding. +.TP +.B \-?, \-\-help +Show summary of options (not implemented). +.TP +.B \-V, \-\-version +Show version of program. +.SH DIAGNOSTICS +pkcs1\-conv will complain and exit with a status of 1 +if the input doesn't match expectations. In PEM mode +(when no option is used), if no PEM block is found, pkcs1\-conv +will output nothing but exit with a zero status. +.SH EXAMPLES +.nf +$ openssl genrsa \-out privkey.pem +$ pkcs1\-conv < privkey.pem > privkey.sexp +$ openssl rsa \-in privkey.pem \-outform DER \-out privkey.der +$ openssl rsa \-in privkey.pem \-outform DER \-pubout \-out pubkey.der +$ pkcs1-conv \-\-rsa-private-key < privkey.der > privkey.sexp +$ pkcs1-conv \-\-public-key-info < pubkey.der > pubkey.sexp +.fi +.SH SEE ALSO +.BR ssh\-conv (1), +.BR sexp\-conv (1), +.BR rsa (1SSL), +.BR genrsa (1SSL), +RFC 3447. +.SH AUTHOR +This manual page was written by Magnus Holmgren +for the Debian GNU/Linux system (but may be used by others). +.SH COPYRIGHT +Copyright © 2007 Magnus Holmgren. +.P +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. --- nettle-2.0.orig/debian/patches/00list +++ nettle-2.0/debian/patches/00list @@ -0,0 +1,3 @@ +01_config +20_link_with_gmp +rsa2sexp_algorithm_name.dpatch --- nettle-2.0.orig/debian/patches/01_config.dpatch +++ nettle-2.0/debian/patches/01_config.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh -e +## config.dpatch +## Ralf Treinen +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: replace all config.{guess,sub} by the vesion installed in +## DP: /usr/share/misc + +dpatch_patch () +{ + find . -name config.guess -o -name config.sub \ + | tar cf debian/patched/config.guess+sub.tar -T - + find . -name config.guess \ + -exec ln -sf /usr/share/misc/config.guess '{}' \; + find . -name config.sub \ + -exec ln -sf /usr/share/misc/config.sub '{}' \; +} + +dpatch_unpatch () +{ + tar xf debian/patched/config.guess+sub.tar +} + +DPATCH_LIB_NO_DEFAULT=1 + +. /usr/share/dpatch/dpatch.lib.sh + +# arch-tag: 8a610a57-687b-4395-8ff2-79265c0a4eb3 --- nettle-2.0.orig/debian/patches/20_link_with_gmp.dpatch +++ nettle-2.0/debian/patches/20_link_with_gmp.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_link_with_gmp.dpatch by +## +## DP: Link libhogweed.so.1 with -lgmp + +@DPATCH@ +diff -urNad nettle-1.15~/config.make.in nettle-1.15/config.make.in +--- nettle-1.15~/config.make.in 2006-11-28 16:30:24.000000000 +0100 ++++ nettle-1.15/config.make.in 2007-05-15 12:53:54.000000000 +0200 +@@ -39,7 +39,7 @@ + LIBHOGWEED_SONAME = @LIBHOGWEED_SONAME@ + LIBHOGWEED_FILE = @LIBHOGWEED_FILE@ + LIBHOGWEED_FORLINK = @LIBHOGWEED_FORLINK@ +-LIBHOGWEED_LIBS = @LIBHOGWEED_LIBS@ ++LIBHOGWEED_LIBS = @LIBHOGWEED_LIBS@ -lgmp -L. -lnettle + LIBHOGWEED_LINK = @LIBHOGWEED_LINK@ + + AR = ar --- nettle-2.0.orig/debian/patches/rsa2sexp_algorithm_name.dpatch +++ nettle-2.0/debian/patches/rsa2sexp_algorithm_name.dpatch @@ -0,0 +1,42 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## rsa2sexp_algorithm_name.dpatch by Magnus Holmgren +## +## DP: Use a default algorithm name that LSH understands. + +@DPATCH@ +diff -urNad trunk~/rsa2sexp.c trunk/rsa2sexp.c +--- trunk~/rsa2sexp.c 2009-06-08 20:27:10.000000000 +0200 ++++ trunk/rsa2sexp.c 2009-10-11 23:11:28.000000000 +0200 +@@ -37,7 +37,7 @@ + const struct rsa_private_key *priv) + { + if (!algorithm_name) +- algorithm_name = "rsa"; ++ algorithm_name = "rsa-pkcs1"; + + if (priv) + return sexp_format(buffer, +diff -urNad trunk~/testsuite/rsa2sexp-test.c trunk/testsuite/rsa2sexp-test.c +--- trunk~/testsuite/rsa2sexp-test.c 2009-06-08 20:27:12.000000000 +0200 ++++ trunk/testsuite/rsa2sexp-test.c 2009-10-11 23:11:56.000000000 +0200 +@@ -92,13 +92,13 @@ + print_hex(buffer.size, buffer.contents); + } + ASSERT(MEMEQH(buffer.size, buffer.contents, +- "2831303a7075626c69632d6b65792833" +- "3a72736128313a6e36333a085c340898" +- "9acae4faec3cbbad91c90d34c1d259cd" +- "74121a36f38b0b51424a9b2be514a043" +- "77113a6cdafe79dd7d5f2ecc8b5e9661" +- "189b86a7b22239907c252928313a6534" +- "3a36ad4b1d292929")); ++ "2831303a7075626c69632d6b65792839" ++ "3a7273612d706b63733128313a6e3633" ++ "3a085c3408989acae4faec3cbbad91c9" ++ "0d34c1d259cd74121a36f38b0b51424a" ++ "9b2be514a04377113a6cdafe79dd7d5f" ++ "2ecc8b5e9661189b86a7b22239907c25" ++ "2928313a65343a36ad4b1d292929")); + + rsa_public_key_clear(&pub); + rsa_private_key_clear(&priv);